86d939ae0dbf6cf0341a90fa9b8b9f3f9b43c123
[gnulib.git] / ChangeLog
1 2010-11-24  Bruno Haible  <bruno@clisp.org>
2
3         doc: Corrections regarding MacOS X 10.4 and 10.5.
4         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5         MacOS X.
6         Reported by Simon Josefsson.
7
8 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9
10         Uninstall ".bin" files installed by relocwrapper.
11         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13         unless it is already there.
14
15 2010-11-21  Bruno Haible  <bruno@clisp.org>
16
17         Update for NetBSD 5.0.
18         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19         NetBSD; the test fails on NetBSD 5.0.
20         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21         about NetBSD.
22
23 2010-11-21  Bruno Haible  <bruno@clisp.org>
24
25         Update for HP-UX 11.23 and HP-UX 11.31.
26         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27         HP-UX.
28
29 2010-11-21  Bruno Haible  <bruno@clisp.org>
30
31         Update for MacOS X 10.5.
32         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
33         MacOS X; the test fails on MacOS X 10.5.8.
34         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
35         about MacOS X.
36
37 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
38
39         bootstrap: add bootstrap_sync option.
40         See discussion at
41         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
42         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
43         * build-aux/bootstrap: Accept --bootstrap-sync to update
44         bootstrap if it is not identical to the local gnulib's
45         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
46         enable this by default.  Accept --no-bootstrap-sync to disable
47         it.
48
49 2010-11-20  Bruno Haible  <bruno@clisp.org>
50
51         Ensure that <features.h> is included before __GLIBC__ is tested.
52         * lib/printf-parse.h: Include <features.h>.
53         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
54         Reported by Mike Frysinger <vapier@gentoo.org>.
55
56         Ensure that <features.h> is included before __GLIBC__ is tested.
57         * lib/wchar.in.h: Include <features.h>.
58         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
60         Reported by Mike Frysinger <vapier@gentoo.org>.
61
62         Ensure that <features.h> is included before __GLIBC__ is tested.
63         * lib/arpa_inet.in.h: Include <features.h>.
64         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
65         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
66         Reported by Mike Frysinger <vapier@gentoo.org>.
67
68         Ensure that <features.h> is included before __GLIBC__ is tested.
69         * build-aux/link-warning.h: Include <features.h>.
70         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
71         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
72         Reported by Mike Frysinger <vapier@gentoo.org>.
73
74         Ensure that <features.h> is included before __GLIBC__ is tested.
75         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
76         Reported by Mike Frysinger <vapier@gentoo.org>.
77
78 2010-11-20  Bruno Haible  <bruno@clisp.org>
79
80         memmem: Fix autoconf test.
81         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
82
83 2010-11-20  Bruno Haible  <bruno@clisp.org>
84
85         Port to uClibc.
86         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
87         * lib/fcntl.in.h: Likewise.
88         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
89         * lib/mbrtowc.c (mbrtowc): Likewise.
90         * lib/relocatable.c (find_shared_library_fullname): Likewise.
91         * lib/strerror_r.c: Likewise.
92         * lib/unistr/u8-strnlen.c: Likewise.
93         * lib/vasnprintf.c (decimal_point_char): Likewise.
94         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
95         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
96         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
97         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
98         * tests/test-sigaction.c (handler, main): Likewise.
99         * lib/freading.h: Treat uClibc like a non-glibc platform.
100         * lib/freading.c: Likewise.
101         * lib/gettext.h: Likewise.
102         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
103         Likewise.
104         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
105         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
106         * lib/propername.c (proper_name_utf8): Likewise.
107         * lib/spawn.in.h: Likewise.
108         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
109         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
110         mem_cd_iconveh_internal): Likewise.
111         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
112         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
113         strstr, strcasestr): Likewise.
114         * lib/unicodeio.c (unicode_to_mb): Likewise.
115         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
116         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
117         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
118         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
119         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
120         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
121         * lib/unistr/u8-stpncpy.c: Likewise.
122         * lib/vasnprintf.c (VASNPRINTF): Likewise.
123         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
124         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
125         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
126         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
127         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
128         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
131         Likewise.
132         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
133         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
134         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
135         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
136         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
137         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
138         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
139         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
140         * tests/test-getopt.h (OPTIND_MIN): Likewise.
141         * tests/test-striconveha.c (main): Likewise.
142         * tests/test-vasnprintf-posix.c (test_function): Likewise.
143         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
144         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
145         * doc/posix-functions/getline.texi: Likewise.
146         Reported by Mike Frysinger <vapier@gentoo.org>.
147
148 2010-11-20  Bruno Haible  <bruno@clisp.org>
149
150         nproc: Fix condition.
151         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
152         HAVE_PTHREAD_AFFINITY_NP.
153
154 2010-11-20  Bruno Haible  <bruno@clisp.org>
155
156         Fix a comment.
157         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
158
159 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
160
161         ftoastr: don't assume snprintf
162         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
163         Implement a subset of snprintf here, by using sprintf safely.
164         * modules/ftoastr (Depends-on): Remove snprintf.
165
166 2010-11-19  Jim Meyering  <meyering@redhat.com>
167
168         test-rename.h: fix compilation failure
169         * tests/test-rename.h (test_rename): Add omitted "}".
170
171 2010-11-17  Jim Meyering  <meyering@redhat.com>
172
173         maint.mk: add a URL discussing the no-@acronym policy
174         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
175
176 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
177
178         ftoastr: depend on snprintf, improve comments
179         * lib/ftoastr.c: Also mention Loitsch's draft.
180         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
181         needed in the current implementation, but it might simplify
182         speeding up the code later.
183         * modules/ftoastr: Depend on snprintf; this improves portability.
184         Suggested by Bruno Haible in the same email.
185
186         ftoastr: port to hosts lacking strtof and strtold
187         Problem reported by Bruno Haible in
188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
189         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
190         environment and strtold (and presumably strtof) are not available.
191         * modules/ftoastr (Files): Add m4/c-strtod.m4.
192         (configure.ac): Require gl_C99_STRTOLD.
193
194 2010-11-18  Bruno Haible  <bruno@clisp.org>
195
196         c-strtold: Avoid link error on AIX 7.
197         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
198         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
199         (gl_C_STRTOLD): Test whether strtold_l exists.
200         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
201
202 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
203
204         intprops: new macro INT_BITS_STRLEN_BOUND
205         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
206         ftoastr.h.  This exposes an internal of intprops.h that was formerly
207         not exposed.  Also, it uses a slightly tighter bound than before;
208         though this makes no practical difference, we might as well be as
209         tight as we easily can.
210
211         ftoastr: new module, for lossless conversion of floats to short strings
212         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
213         * modules/ftoastr: New files.
214
215 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
216
217         bootstrap: port to Solaris sed
218         * build-aux/bootstrap (get_version): Port to Solaris sed.
219         See Ralf Wildenhues's note in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
221
222 2010-11-14  Jim Meyering  <meyering@redhat.com>
223
224         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
225         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
226         and move definition closer to sole use.
227
228 2010-11-13  Jim Meyering  <meyering@redhat.com>
229
230         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
231         Now we require at least autoconf-2.59, which means the work-around
232         is no longer needed.
233         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
234         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
235         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
236         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
237         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
238
239 2010-11-13  Bruno Haible  <bruno@clisp.org>
240
241         rename, renameat: Avoid test failures at NFS mounted locations.
242         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
243         functions.
244         (test_rename): Use assert_nonexistent.
245         * tests/test-rename.c: Include <dirent.h>.
246         * tests/test-renameat.c: Likewise.
247         Reported by Gary V. Vaughan <gary@gnu.org>.
248
249         rename, renameat: Document Linux bug with NFS
250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
251         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
252         * doc/posix-functions/renameat.texi: Likewise.
253         Suggested by Eric Blake.
254
255 2010-11-13  Bruno Haible  <bruno@clisp.org>
256
257         rename test: Add comments.
258         * tests/test-rename.h (test_rename): Add structure and comments.
259
260 2010-11-13  Eric Blake  <eblake@redhat.com>
261
262         maintainer-makefile: cover a few more files
263         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
264         scripts generated within C files, for libvirt.
265
266 2010-11-13  Bruno Haible  <bruno@clisp.org>
267
268         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
269         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
270         character, return the number of bytes that belong together, not always
271         1.
272         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
273         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
274         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
275         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
276         number of bytes of an invalid character.
277         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
278         (main): Invoke it.
279         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
280         results.
281         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
282         malformed byte sequences.
283         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
284         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
285         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
286         Reported by Ben Pfaff and Paolo Bonzini.
287
288 2010-11-13  Bruno Haible  <bruno@clisp.org>
289
290         openat: Work around glibc bug with fchownat() and empty file names.
291         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
292         (gl_FUNC_FCHOWNAT): Invoke it.
293         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
294         * doc/posix-functions/fchownat.texi: Document the glibc bug.
295         Reported by Gary V. Vaughan <gary@gnu.org>.
296
297 2010-11-13  Bruno Haible  <bruno@clisp.org>
298
299         openat: Ensure autoconf macro ordering.
300         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
301         gl_USE_SYSTEM_EXTENSIONS.
302         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
303
304 2010-11-13  Bruno Haible  <bruno@clisp.org>
305
306         Update comments.
307         * lib/unistr/u8-check.c: Update file name in comments.
308         * lib/unistr/u8-mblen.c: Likewise.
309         * lib/unistr/u8-prev.c: Likewise.
310         * lib/unistr/u8-strmblen.c: Likewise.
311         * lib/unistr/u8-strmbtouc.c: Likewise.
312
313 2010-11-13  Jim Meyering  <meyering@redhat.com>
314
315         tests: avoid test failure on Solaris 10 due to lack of PATH export
316         * tests/test-update-copyright.sh: Don't forget to export PATH.
317
318         init.sh: ensure that IFS is defined, just in case...
319         * tests/init.sh (setup_): Ensure that IFS is defined,
320         so that saving and restoring it works as expected.  This
321         appears to be useful at least for an old version of dash
322         from a long time ago (RH 6).  See here for details:
323         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
324
325         maint.mk: tighten "test a == b" check
326         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
327         test to files that contain something like #!/bin/sh.
328         Without this, coreutils would get two false positives in
329         the comments of C source files.
330
331 2010-11-12  Eric Blake  <eblake@redhat.com>
332
333         bootstrap: fix typo in previous attempt
334         * build-aux/bootstrap (buildreq): Correct the grouping.
335         Reported by Paul Eggert.
336
337         maintainer-makefile: prohibit test x == x
338         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
339         Based on a report by Matthias Bolte.
340
341         bootstrap: allow FreeBSD gzip
342         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
343         which has no '.' and goes to stderr.
344         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
345         Reported by Matthias Bolte.
346
347         maintainer-makefile: check for i18n setup
348         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
349         will likely work.
350
351 2010-11-12  Bruno Haible  <bruno@clisp.org>
352
353         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
354         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
355         * lib/nanosleep.c (nanosleep): Likewise.
356
357 2010-11-11  Bruno Haible  <bruno@clisp.org>
358
359         fcntl-h: Fix for use of C++ on glibc systems.
360         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
361         also on glibc systems in C++ mode.
362         Reported by Gary V. Vaughan <gary@gnu.org>.
363
364 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
365
366         mknod: avoid false failure with dash
367         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
368
369 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
370
371         unlink: Fix "is it should" typo in diagnostic.
372         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
374
375 2010-11-11  Bruno Haible  <bruno@clisp.org>
376
377         Tests for module 'strerror_r-posix'.
378         * modules/strerror_r-posix-tests: New file.
379         * tests/test-strerror_r.c: New file.
380         * tests/test-string-c++.cc: Check the signature of strerror_r.
381
382         New module 'strerror_r-posix'.
383         * lib/string.in.h (strerror_r): New declaration.
384         * lib/strerror_r.c: New file.
385         * m4/strerror_r.m4: New file.
386         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
387         of strerror_r.
388         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
389         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
390         * modules/strerror_r-posix: New file.
391         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
392         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
393         * doc/posix-functions/strerror_r.texi: Mention the new module and the
394         portability problems.
395
396 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
397
398         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
399         line is also considered for output. Quoted function name in shell
400         command, so temporary files for functions like MyClass::operator()
401         are removed correctly without errors.
402
403 2010-11-09  Bruno Haible  <bruno@clisp.org>
404
405         * doc/posix-functions/strerror.texi: List more failing platforms.
406
407         * doc/posix-functions/strerror.texi: Add a comment.
408
409 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
410
411         fdopendir: fix bug on MacOS X when low on file descriptors
412
413         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
414         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
415         All callers changed.
416         (fdopendir): Invoke save_cwd at the top level, not after using
417         multiple dup() calls to use up file descriptors.  Then retry
418         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
419         less than the maximum number of open file descriptors, because
420         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
421         on Mac OS X 10.6.4 for tar 1.24
422         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
423         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
424         and for tar 1.25
425         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
426
427 2010-11-07  Bruno Haible  <bruno@clisp.org>
428
429         vasnprintf: Support I flag on glibc systems.
430         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
431         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
432         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
433         snprintf function.
434         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
435         glibc systems.
436         * tests/test-vasnprintf-posix3.c: New file.
437         * modules/vasnprintf-posix-tests (Files): Add it.
438         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
439
440 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
441
442         [html] Fix copy/paste bug: Use unique name for compiler warnings.
443         * MODULES.html.sh: For compiler warnings, use name
444         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
445
446 2010-11-05  Eric Blake  <eblake@redhat.com>
447
448         ceil, floor: avoid spurious failure with icc
449         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
450         [denormals-as-zero] when optimizing without -mieee-fp option.
451         * tests/test-floorf2.c (floorf_reference): Likewise.
452         * tests/test-ceilf1.c (dummy): New function.
453         (main): Use it to outsmart icc's optimization.
454         * tests/test-floorf1.c (dummy, main): Likewise.
455
456         tests: require working signbit
457         * modules/ceilf-tests (Depends-on): Add signbit.
458         * modules/ceill-tests (Depends-on): Likewise.
459         * modules/floorf-tests (Depends-on): Likewise.
460         * modules/floorl-tests (Depends-on): Likewise.
461         * modules/round-tests (Depends-on): Likewise.
462         * modules/roundf-tests (Depends-on): Likewise.
463         * modules/roundl-tests (Depends-on): Likewise.
464         * modules/trunc-tests (Depends-on): Likewise.
465         * modules/truncf-tests (Depends-on): Likewise.
466         * modules/truncl-tests (Depends-on): Likewise.
467
468         strtod: work around icc bug
469         * lib/strtod.c (minus_zero): Define to working value.
470         (strtod): Use it to avoid icc bug.
471
472         copysign: enhance tests
473         * modules/copysign-tests (Files): Add minus-zero.h.
474         * tests/test-copysign.c (main): Also test zeros.
475
476 2010-11-04  Eric Blake  <eblake@redhat.com>
477
478         ceil, floor, round, trunc: enhance tests of -0
479         * tests/test-ceilf1.c (main): Ensure correct sign of result.
480         * tests/test-ceill.c (main): Likewise.
481         * tests/test-floorf1.c (main): Likewise.
482         * tests/test-floorl.c (main): Likewise.
483         * tests/test-round1.c (main): Likewise.
484         * tests/test-roundf1.c (main): Likewise.
485         * tests/test-roundl.c (main): Likewise.
486         * tests/test-trunc1.c (main): Likewise.
487         * tests/test-truncf1.c (main): Likewise.
488         * tests/test-truncl.c (main): Likewise.
489
490 2010-11-04  Eric Blake  <eblake@redhat.com>
491
492         frexp, tests: work around ICC bug with -zero
493         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
494         works with more compilers.
495         * tests/minus-zero.h: New file.
496         * modules/ceilf-tests (Files): Include it.
497         * modules/ceill-tests (Files): Likewise.
498         * modules/floorf-tests (Files): Likewise.
499         * modules/floorl-tests (Files): Likewise.
500         * modules/frexp-nolibm-tests (Files): Likewise.
501         * modules/frexp-tests (Files): Likewise.
502         * modules/frexpl-nolibm-tests (Files): Likewise.
503         * modules/frexpl-tests (Files): Likewise.
504         * modules/isnan-tests (Files): Likewise.
505         * modules/isnand-nolibm-tests (Files): Likewise.
506         * modules/isnand-tests (Files): Likewise.
507         * modules/isnanf-nolibm-tests (Files): Likewise.
508         * modules/isnanf-tests (Files): Likewise.
509         * modules/isnanl-nolibm-tests (Files): Likewise.
510         * modules/isnanl-tests (Files): Likewise.
511         * modules/round-tests (Files): Likewise.
512         * modules/roundf-tests (Files): Likewise.
513         * modules/roundl-tests (Files): Likewise.
514         * modules/ldexpl-tests (Files): Likewise.
515         * modules/signbit-tests (Files): Likewise.
516         * modules/snprintf-posix-tests (Files): Likewise.
517         * modules/sprintf-posix-tests (Files): Likewise.
518         * modules/strtod-tests (Files): Likewise.
519         * modules/trunc-tests (Files): Likewise.
520         * modules/truncf-tests (Files): Likewise.
521         * modules/truncl-tests (Files): Likewise.
522         * modules/vsnprintf-posix-tests (Files): Likewise.
523         * modules/vsprintf-posix-tests (Files): Likewise.
524         * modules/vasnprintf-posix-tests (Files): Likewise.
525         * modules/vasprintf-posix-tests (Files): Likewise.
526         * tests/test-ceilf1.c (main): Use it.
527         * tests/test-ceill.c (main): Likewise.
528         * tests/test-floorf1.c (main): Likewise.
529         * tests/test-floorl.c (main): Likewise.
530         * tests/test-frexp.c (main): Likewise.
531         * tests/test-frexpl.c (main): Likewise.
532         * tests/test-isnan.c (main): Likewise.
533         * tests/test-isnand.h (main): Likewise.
534         * tests/test-isnanf.h (main): Likewise.
535         * tests/test-isnanl.h (main): Likewise.
536         * tests/test-ldexpl.c (main): Likewise.
537         * tests/test-round.c (main): Likewise.
538         * tests/test-roundf.c (main): Likewise.
539         * tests/test-roundl.c (main): Likewise.
540         * tests/test-signbit.c (test_signbitf, test_signbitd)
541         (test_signbitl): Likewise.
542         * tests/test-snprintf-posix.h (test_function): Likewise.
543         * tests/test-sprintf-posix.h (test_function): Likewise.
544         * tests/test-strtod.c (main): Likewise.
545         * tests/test-trunc1.c (main): Likewise.
546         * tests/test-truncf1.c (main): Likewise.
547         * tests/test-truncl.c (main): Likewise.
548
549         isnanl: work around icc bug
550         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
551
552 2010-11-03  Eric Blake  <eblake@redhat.com>
553
554         tests: fix compiler warnings
555         * tests/test-getopt.h (test_getopt): Fix condition.
556         * tests/test-getopt_long.h (test_getopt_long): Likewise.
557         * tests/test-pipe2.c (main): Likewise.
558         * tests/test-quotearg-simple.c (main): Avoid icc warning.
559
560         utimens: fix broken m4 test
561         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
562
563 2010-10-28  Bruno Haible  <bruno@clisp.org>
564
565         posix_spawn*, getdtablesize: Relax license.
566         * modules/posix_spawn (License): Change to LGPLv2+.
567         * modules/posix_spawnp (License): Likewise.
568         * modules/posix_spawn-internal (License): Likewise.
569         * modules/posix_spawnattr_init (License): Likewise.
570         * modules/posix_spawnattr_getflags (License): Likewise.
571         * modules/posix_spawnattr_setflags (License): Likewise.
572         * modules/posix_spawnattr_getpgroup (License): Likewise.
573         * modules/posix_spawnattr_setpgroup (License): Likewise.
574         * modules/posix_spawnattr_getschedparam (License): Likewise.
575         * modules/posix_spawnattr_setschedparam (License): Likewise.
576         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
577         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
578         * modules/posix_spawnattr_getsigdefault (License): Likewise.
579         * modules/posix_spawnattr_setsigdefault (License): Likewise.
580         * modules/posix_spawnattr_getsigmask (License): Likewise.
581         * modules/posix_spawnattr_setsigmask (License): Likewise.
582         * modules/posix_spawnattr_destroy (License): Likewise.
583         * modules/posix_spawn_file_actions_init (License): Likewise.
584         * modules/posix_spawn_file_actions_addclose (License): Likewise.
585         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
586         * modules/posix_spawn_file_actions_addopen (License): Likewise.
587         * modules/posix_spawn_file_actions_destroy (License): Likewise.
588         * modules/getdtablesize (License): Likewise.
589         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
590
591 2010-10-26  Bruno Haible  <bruno@clisp.org>
592
593         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
594         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
595         Cygwin and mingw.
596         Suggested by Eric Blake.
597
598 2010-10-26  Bruno Haible  <bruno@clisp.org>
599
600         stdio: Work around compilation error due to renameat() on Solaris 10.
601         * lib/stdio.in.h: Include <unistd.h> on Solaris.
602         * lib/renameat.c: Don't include <unistd.h> here.
603         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
604         Reported by Paul Eggert and Eric Blake.
605
606 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
607
608         renameat: port to Solaris 10, which declares renameat in unistd.h
609
610         * lib/renameat.c: Include unistd.h before stdio.h, because
611         Solaris 10 declares renameat in unistd.h.  Problem encountered
612         when building GNU tar 1.24 on Solaris 10.
613
614 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
615
616         fdopendir: fix C89 compilation
617         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
618         compilers.
619
620 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
621
622         inttostr: simplify by removing unnecessary redundancy
623         * lib/anytostr.c: Don't include verify.h.
624         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
625         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
626         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
627         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
628         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
629         Likewise.
630         * modules/inttostr (Depends-on): Remove 'verify'.
631
632 2010-10-23  Bruno Haible  <bruno@clisp.org>
633
634         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
635         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
636         Reported by Eric Blake.
637
638 2010-10-23  Bruno Haible  <bruno@clisp.org>
639
640         Tests: Fix LOCALE_JA on MirBSD 10.
641         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
642         to an UTF-8 locale.
643         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
645         Reported by Eric Blake.
646
647 2010-10-21  Bruno Haible  <bruno@clisp.org>
648
649         nl_langinfo test: Avoid test failure on NetBSD 5.
650         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
651         Reported by Eric Blake.
652
653 2010-10-21  Eric Blake  <eblake@redhat.com>
654
655         c-stack: work around libsigsegv 2.8 bug
656         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
657         overflow on at least PowerPC64.
658
659 2010-10-17  Bruno Haible  <bruno@clisp.org>
660
661         userspec: Drop redundant file.
662         * modules/userspec (Files): Remove lib/inttostr.h.
663
664 2010-10-17  Bruno Haible  <bruno@clisp.org>
665
666         nl_langinfo tests: Silence some warnings.
667         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
668         Reported by Jim Meyering.
669
670 2010-10-17  Bruno Haible  <bruno@clisp.org>
671
672         Make use of GCC's attribute __alloc_size__.
673         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
674         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
675         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
676         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
677         __alloc_size__.
678         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
679         Suggested by Jim Meyering.
680
681 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
682
683         bootstrap: anchor .gitignore entries.
684         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
685         with...
686         (insert_vc_ignore): ... this new function, which prepends `/' to
687         all .gitignore entries before passing them to
688         insert_sorted_if_absent.
689
690 2010-10-16  Bruno Haible  <bruno@clisp.org>
691
692         nextafter: Fix configure check.
693         * modules/nextafter (configure.ac): Correct expected prototype.
694
695 2010-10-16  Bruno Haible  <bruno@clisp.org>
696
697         termios: Update documentation.
698         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
699
700 2010-10-16  Bruno Haible  <bruno@clisp.org>
701
702         tests: Make them compile with TinyCC.
703         * tests/test-strstr.c (main): Remove parentheses around array
704         initializer.
705
706 2010-10-15  Eric Blake  <eblake@redhat.com>
707
708         ignore-value: make header idempotent
709         * lib/ignore-value.h: Add double-inclusion guards.
710         Reported by Stefan Berger.
711
712 2010-10-15  Jim Meyering  <meyering@redhat.com>
713
714         GNUmakefile: handle "stable" target, not "major"
715         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
716         lists in maint.mk and announce-gen.  Without this, "make stable"
717         would fail to ensure that $(VERSION) is up to date.
718
719 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
720
721         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
722         & co.
723
724 2010-10-14  Bruno Haible  <bruno@clisp.org>
725
726         vasnprintf: Don't set errno to 0.
727         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
728         block that sets it to 0.
729         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
730
731 2010-10-14  Bruno Haible  <bruno@clisp.org>
732
733         socketlib: Fix.
734         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
735         gl_PREREQ_SYS_H_WINSOCK2.
736         Reported by Ian Beckwith <ianb@erislabs.net>.
737
738 2010-10-13  Jim Meyering  <meyering@redhat.com>
739
740         test-select-stdin.c: avoid warn_unused_result warnings
741         * tests/test-select-stdin.c: Include "macros.h".
742         ASSERT that read and fflush succeed.
743
744 2010-10-13  Jim Meyering  <meyering@redhat.com>
745
746         git-version-gen: do require git-VC'd files in cwd
747         * build-aux/git-version-gen: Reject a git version string
748         if there are no commits associated with the current directory.
749         This avoids an unlikely false-positive (unrelated dir whose parent
750         repository also contains a tag matching v*), as pointed out
751         by Giuseppe Scrivano in
752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
753
754 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
755
756         argv-iter: omit nonconforming declaration
757         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
758         enum arg_iter_err declaration, which doesn't conform to C99.
759         Solaris 10 cc warns about this.
760
761 2010-10-13  Eric Blake  <eblake@redhat.com>
762
763         termios: fix compilation on mingw
764         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
765         (gl_TERMIOS_H): Adjust it on mingw.
766         * modules/termios (Makefile.am): Substitute new key.
767         * lib/termios.in.h (includes): Make include_next conditional.
768         * doc/posix-headers/termios.texi (termios.h): Update
769         documentation.
770         Reported by Daniel P. Berrange.
771
772 2010-10-13  Jim Meyering  <meyering@redhat.com>
773
774         git-version-gen: don't require that .git/ be in the current dir
775         * build-aux/git-version-gen: Adjust this script so that it works
776         when run from any working directory beneath the top-level .git/-
777         containing directory.  Inspired by a patch from Giuseppe Scrivano,
778         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
779
780         test-select: avoid warn_unused_result warnings
781         * tests/test-select.c: Include "macros.h".
782         ASSERT that each call to read, write, and pipe succeeds.
783         While not technically required, also check each "close".
784         * modules/select-tests (Files): Add tests/macros.h.
785
786         test-symlinkat: remove declaration of unused local
787         * tests/test-symlinkat.c (main): Remove unused local, "buf".
788
789         test-inttostr: avoid shadowing warnings
790         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
791         and use malloc rather than the stack for the same reason as
792         mentioned in the comment justifying the other allocation.
793
794 2010-10-11  Bruno Haible  <bruno@clisp.org>
795
796         stdlib: Allow multiple gnulib generated replacements to coexist.
797         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
798         Reported by Sam Steingold <sds@gnu.org>.
799
800 2010-10-11  Jim Meyering  <meyering@redhat.com>
801
802         fix a documentation typo
803         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
804
805 2010-10-11  Eric Blake  <eblake@redhat.com>
806
807         futimens: work around Solaris 11 bug
808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
809         * tests/test-futimens.h (test_futimens): Enhance, rather than
810         weaken test.
811         * doc/posix-functions/futimens.texi (futimens): Document the bug.
812
813 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
814
815         Indentation.
816         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
817         higher-level operators more to the left.
818
819 2010-10-11  Jim Meyering  <meyering@redhat.com>
820
821         test-futimens: avoid unwarranted test failure on Solaris 5.11
822         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
823         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
824         because it tries to dereference the NULL name argument.
825
826 2010-10-11  Bruno Haible  <bruno@clisp.org>
827
828         Indentation.
829         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
830         indentation.
831
832 2010-10-11  Jim Meyering  <meyering@redhat.com>
833
834         spawn.in.h: make indentation consistent with parentheses
835         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
836         Make indentation consistent with parentheses.
837
838 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
839
840         Fix mismatched parens in previous commit
841         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
842         parens.
843
844 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
845
846         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
847
848         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
849         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
850         * lib/malloca.c: Include "verify.h".
851         (verify1): Remove, replacing with a verify call.
852         * lib/relocwrapper.c (verify1): Likewise.
853         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
854         Likewise.
855         * modules/malloca (Depends-on): Add 'verify'.
856         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
857         * modules/vasnprintf (Depends-on): Add 'verify'.
858         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
859         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
860         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
861         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
862         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
863         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
864         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
865
866         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
867
868         Formerly the style was sometimes 2*X - 1, because the C standard
869         was wrongly thought to disallow ?: in integral constant expressions.
870         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
871         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
872         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
873         * lib/stdint.in.h (_verify_intmax_size): Likewise.
874         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
875         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
876         verify that time_t cannot be floating.
877
878 2010-10-08  Eric Blake  <eblake@redhat.com>
879
880         time: enforce recent POSIX ruling that time_t is integral
881         * lib/time.in.h (__time_t_must_be_integral): Detect any
882         problematic systems, allowing the rest of gnulib to assume POSIX.
883
884 2010-10-08  Jim Meyering  <meyering@redhat.com>
885
886         fdopendir: fix a bug on systems lacking openat and /proc support
887         OpenBSD 4.7 is one such system.  The most noticeable effect was
888         failure of any application making nontrivial use of fts: rm, du,
889         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
890           ./rm: traversal failed: `a': Bad file descriptor
891         Debugging that, you see that even though FD 6 was closed just
892         prior to the opendir call in fd_clone_opendir, its resulting
893         dir->dd_fd was 8, rather than the expected value of 6:
894
895         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
896         93                close (fd);
897         (gdb) n
898         94                dir = fd_clone_opendir (dupfd);
899         (gdb) n
900         95                saved_errno = errno;
901         (gdb) p dir->dd_fd
902         $11 = 8
903
904         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
905         The problem is that on OpenBSD, fd_clone_opendir has to resort
906         to using the old-style save/restore CWD mechanism, due to its
907         lack of openat/proc support, and *that* would steal the FD (6)
908         that opendir was supposed to use.
909
910         The fix is to squirrel away the desired FD so that save_cwd uses a
911         different one, and then free the dest FD right before calling opendir.
912         That guarantees opendir will use the required file descriptor.
913
914         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
915
916 2010-10-08  Bruno Haible  <bruno@clisp.org>
917
918         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
919         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
920
921 2010-10-08  Bruno Haible  <bruno@clisp.org>
922
923         nanosleep: Make replacement POSIX compliant.
924         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
925         is out of range.
926         Reported by Jim Meyering.
927
928 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
929
930         bootstrap: add hook for altering gnulib.mk, for Bison
931         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
932         the Bison bootstrapping process can rewrite file names and variables
933         in this file before later parts of 'bootstrap' use the file.
934         Bison wants to include lib/gnulib.mk from the top-level makefile,
935         so it needs the file names in this file to be relative to the top
936         level, not relative to lib; plus it needs variable names to be
937         rewritten.
938         (slurp): Use the new function.
939
940         bootstrap: reformat for readability
941         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
942
943 2010-10-08  Eric Blake  <eblake@redhat.com>
944
945         docs: update cygwin progress
946         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
947         1.7.7.
948         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
949         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
950         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
951         * doc/posix-functions/carg.texi (carg): Likewise.
952         * doc/posix-functions/cargf.texi (cargf): Likewise.
953         * doc/posix-functions/casin.texi (casin): Likewise.
954         * doc/posix-functions/casinf.texi (casinf): Likewise.
955         * doc/posix-functions/casinh.texi (casinh): Likewise.
956         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
957         * doc/posix-functions/catan.texi (catan): Likewise.
958         * doc/posix-functions/catanf.texi (catanf): Likewise.
959         * doc/posix-functions/catanh.texi (catanh): Likewise.
960         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
961         * doc/posix-functions/ccos.texi (ccos): Likewise.
962         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
963         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
964         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
965         * doc/posix-functions/cexp.texi (cexp): Likewise.
966         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
967         * doc/posix-functions/cimag.texi (cimag): Likewise.
968         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
969         * doc/posix-functions/clog.texi (clog): Likewise.
970         * doc/posix-functions/clogf.texi (clogf): Likewise.
971         * doc/posix-functions/conj.texi (conj): Likewise.
972         * doc/posix-functions/conjf.texi (conjf): Likewise.
973         * doc/posix-functions/cpow.texi (cpow): Likewise.
974         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
975         * doc/posix-functions/cproj.texi (cproj): Likewise.
976         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
977         * doc/posix-functions/creal.texi (creal): Likewise.
978         * doc/posix-functions/crealf.texi (crealf): Likewise.
979         * doc/posix-functions/csin.texi (csin): Likewise.
980         * doc/posix-functions/csinf.texi (csinf): Likewise.
981         * doc/posix-functions/csinh.texi (csinh): Likewise.
982         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
983         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
984         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
985         * doc/posix-functions/ctan.texi (ctan): Likewise.
986         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
987         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
988         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
989         * doc/posix-headers/complex.texi (complex.h): Likewise.
990
991 2010-10-07  Jim Meyering  <meyering@redhat.com>
992
993         parse-datetime: avoid compilation failure on OpenBSD 4.7
994         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
995         This works around a compilation failure on OpenBSD 4.7:
996         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
997
998 2010-10-07  Eric Blake  <eblake@redhat.com>
999
1000         docs: update cygwin progress
1001         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1002         1.7.6.
1003         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1004         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1005         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1006         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1007         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1008         Likewise.
1009         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1010         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1011         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1012         Likewise.
1013         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1014         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1015         Likewise.
1016         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1017         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1018         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1019         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1020         Likewise.
1021         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1022         Likewise.
1023         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1024
1025         docs: update parse-datetime history
1026         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1027         documentation of this function's history and alternatives.
1028
1029         cygwin: use more robust version check
1030         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1031         exclude an eventual cygwin 1.9.1.
1032         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1034         (gl_FUNC_STRCASESTR): Likewise.
1035         Reported by Bruno Haible.
1036
1037 2010-10-06  Bruno Haible  <bruno@clisp.org>
1038
1039         string, sys_select: Avoid #including large headers unless necessary.
1040         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1041         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1042         OSF/1, BeOS, Haiku.
1043         Reported by Jim Meyering.
1044
1045 2010-10-05  Eric Blake  <eblake@redhat.com>
1046
1047         memmem, strstr, strcasestr: fix bug with long periodic needle
1048         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1049         periodic needle having false positive.
1050         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1051         and cygwin 1.7.7.
1052         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1054         (gl_FUNC_STRCASESTR): Likewise.
1055         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1056         * tests/test-memmem.c (main): Expose the bug.
1057         * tests/test-strcasestr.c (main): Likewise.
1058         * tests/test-strstr.c (main): Likewise.
1059         * tests/test-c-strcasestr.c (main): Likewise.
1060         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1061         * doc/posix-functions/strstr.texi (strstr): Likewise.
1062         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1063         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1064
1065 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         parse-datetime: do some more renaming
1068         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1069         parse_datetime, not get_date.  Mention the renaming.
1070         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1071         in comments.
1072         * m4/bison.m4: Likewise.
1073
1074 2010-10-05  Eric Blake  <eblake@redhat.com>
1075
1076         parse-datetime: better name than get_date
1077         * NEWS: Reword the deprecation notice.
1078         * modules/get_date: Rename to modules/parse-datetime.
1079         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1080         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1081         * lib/get_date.y: Rename to lib/parse-datetime.y.
1082         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1083         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1084         * doc/getdate.texi: Provide fallback wrapper.
1085         * lib/getdate.h: Move guts, and wrap...
1086         * lib/parse-datetime.h: ...new file.
1087         * lib/parse-datetime.y (get_date): Rename...
1088         (parse_datetime): ...to this.
1089         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1090         (gl_PARSE_DATETIME): ...to this.
1091         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1092         documentation.
1093         * modules/getdate (Files): Provide fallback docs and header.
1094         (Notice, Depends-on): Update references.
1095         * tests/test-parse-datetime.c: Likewise.
1096         * DEPENDENCIES: Likewise.
1097         * MODULES.html.sh (Date and time <time.h>): Likewise.
1098         * doc/parse-datetime.texi (Date input formats)
1099         (Authors of parse_datetime): Likewise.
1100         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1101         (Include): Likewise.
1102         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1103         * gnulib-tool: Likewise.
1104         * m4/bison.m4 (gl_BISON): Likewise.
1105         Suggested by Bruno Haible.
1106
1107 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         more ports to Solaris tr, which needs [] around ranges
1110         * gnulib-tool: Solaris tr needs [] around ranges.
1111         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1112         * tests/test-pipe-filter-gi1.c (main): Likewise.
1113         * tests/test-pipe-filter-ii1.c (main): Likewise.
1114
1115 2010-10-05  Eric Blake  <eblake@redhat.com>
1116
1117         bootstrap: fix Solaris regression
1118         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1119         around ranges.
1120         Reported by Pádraig Brady.
1121
1122         bootstrap: work with pkg-config
1123         * build-aux/bootstrap (check_versions): Also transliterate - in
1124         prerequisite name.
1125         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1126         prerequisites that were already found, to avoid confusion.
1127         Reported by Justin Clift.
1128
1129         faccessat: remove unused wrappers
1130         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1131         presence of these wrappers dragged in -lgen on Solaris.
1132         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1133
1134 2010-10-05  Jim Meyering  <meyering@redhat.com>
1135
1136         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1137         * Makefile (sc_pragma_columns): New syntax-check rule.
1138
1139 2010-10-04  Bruno Haible  <bruno@clisp.org>
1140
1141         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1142         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1143         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1144         Reported by Bruce Korb and Eric Blake.
1145
1146 2010-10-04  Bruno Haible  <bruno@clisp.org>
1147
1148         threadlib: Make option --with-libpth-prefix work.
1149         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1150         use $LIBPTH, not just -lpth.
1151
1152 2010-10-04  Bruno Haible  <bruno@clisp.org>
1153
1154         Avoid line length limitation from HP NonStop system header files.
1155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1156         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1157         * lib/ctype.in.h: Likewise.
1158         * lib/dirent.in.h: Likewise.
1159         * lib/errno.in.h: Likewise.
1160         * lib/fcntl.in.h: Likewise.
1161         * lib/float.in.h: Likewise.
1162         * lib/getopt.in.h: Likewise.
1163         * lib/iconv.in.h: Likewise.
1164         * lib/inttypes.in.h: Likewise.
1165         * lib/langinfo.in.h: Likewise.
1166         * lib/locale.in.h: Likewise.
1167         * lib/math.in.h: Likewise.
1168         * lib/netdb.in.h: Likewise.
1169         * lib/netinet_in.in.h: Likewise.
1170         * lib/poll.in.h: Likewise.
1171         * lib/pthread.in.h: Likewise.
1172         * lib/pty.in.h: Likewise.
1173         * lib/sched.in.h: Likewise.
1174         * lib/se-selinux.in.h: Likewise.
1175         * lib/search.in.h: Likewise.
1176         * lib/signal.in.h: Likewise.
1177         * lib/spawn.in.h: Likewise.
1178         * lib/stdarg.in.h: Likewise.
1179         * lib/stddef.in.h: Likewise.
1180         * lib/stdint.in.h: Likewise.
1181         * lib/stdio.in.h: Likewise.
1182         * lib/stdlib.in.h: Likewise.
1183         * lib/string.in.h: Likewise.
1184         * lib/strings.in.h: Likewise.
1185         * lib/sys_file.in.h: Likewise.
1186         * lib/sys_ioctl.in.h: Likewise.
1187         * lib/sys_select.in.h: Likewise.
1188         * lib/sys_socket.in.h: Likewise.
1189         * lib/sys_stat.in.h: Likewise.
1190         * lib/sys_time.in.h: Likewise.
1191         * lib/sys_times.in.h: Likewise.
1192         * lib/sys_utsname.in.h: Likewise.
1193         * lib/sys_wait.in.h: Likewise.
1194         * lib/sysexits.in.h: Likewise.
1195         * lib/termios.in.h: Likewise.
1196         * lib/time.in.h: Likewise.
1197         * lib/unistd.in.h: Likewise.
1198         * lib/wchar.in.h: Likewise.
1199         * lib/wctype.in.h: Likewise.
1200         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1201         * modules/ctype (Makefile.am): Likewise.
1202         * modules/dirent (Makefile.am): Likewise.
1203         * modules/errno (Makefile.am): Likewise.
1204         * modules/fcntl-h (Makefile.am): Likewise.
1205         * modules/float (Makefile.am): Likewise.
1206         * modules/getopt-posix (Makefile.am): Likewise.
1207         * modules/iconv-h (Makefile.am): Likewise.
1208         * modules/inttypes (Makefile.am): Likewise.
1209         * modules/langinfo (Makefile.am): Likewise.
1210         * modules/locale (Makefile.am): Likewise.
1211         * modules/math (Makefile.am): Likewise.
1212         * modules/netdb (Makefile.am): Likewise.
1213         * modules/netinet_in (Makefile.am): Likewise.
1214         * modules/poll-h (Makefile.am): Likewise.
1215         * modules/pthread (Makefile.am): Likewise.
1216         * modules/pty (Makefile.am): Likewise.
1217         * modules/sched (Makefile.am): Likewise.
1218         * modules/search (Makefile.am): Likewise.
1219         * modules/selinux-h (Makefile.am): Likewise.
1220         * modules/signal (Makefile.am): Likewise.
1221         * modules/spawn (Makefile.am): Likewise.
1222         * modules/stdarg (Makefile.am): Likewise.
1223         * modules/stddef (Makefile.am): Likewise.
1224         * modules/stdint (Makefile.am): Likewise.
1225         * modules/stdio (Makefile.am): Likewise.
1226         * modules/stdlib (Makefile.am): Likewise.
1227         * modules/string (Makefile.am): Likewise.
1228         * modules/strings (Makefile.am): Likewise.
1229         * modules/sys_file (Makefile.am): Likewise.
1230         * modules/sys_ioctl (Makefile.am): Likewise.
1231         * modules/sys_select (Makefile.am): Likewise.
1232         * modules/sys_socket (Makefile.am): Likewise.
1233         * modules/sys_stat (Makefile.am): Likewise.
1234         * modules/sys_time (Makefile.am): Likewise.
1235         * modules/sys_times (Makefile.am): Likewise.
1236         * modules/sys_utsname (Makefile.am): Likewise.
1237         * modules/sys_wait (Makefile.am): Likewise.
1238         * modules/sysexits (Makefile.am): Likewise.
1239         * modules/termios (Makefile.am): Likewise.
1240         * modules/time (Makefile.am): Likewise.
1241         * modules/unistd (Makefile.am): Likewise.
1242         * modules/wchar (Makefile.am): Likewise.
1243         * modules/wctype (Makefile.am): Likewise.
1244
1245 2010-10-04  Bruno Haible  <bruno@clisp.org>
1246
1247         read-file tests: Avoid a test failure on NonStop Kernel.
1248         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1249         a regular file.
1250         Reported by Joachim Schmitz <schmitz@hp.com>.
1251
1252 2010-10-03  Bruno Haible  <bruno@clisp.org>
1253
1254         gnulib-tool: Fixes for --create-testdir with --libtool.
1255         * gnulib-tool (func_get_automake_snippet): Don't augment
1256         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1257         an executable.
1258         (func_create_testdir): Handle module 'alloca' like func_import.
1259         Reported by Bruce Korb <bruce.korb@gmail.com>.
1260
1261 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1262
1263         Avoid some lines longer than 80 characters.
1264         * lib/stdint.in.h: Break long comment lines.
1265         * lib/math.in.h: Likewise.
1266         (_GL_NUM_UINT_WORDS): New macro, for readability.
1267         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1268         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1269         * lib/stdlib.in.h: Likewise.
1270         * lib/spawn.in.h: Likewise.
1271         * lib/sys_socket.in.h: Update an URL.
1272         * lib/sys_stat.in.h: Break long line.
1273
1274 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1275
1276         Improve pmccabe2html.
1277         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1278         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1279         when the sources change. Remove the line in the HTML about "Used
1280         ranges" (which implied that there might be other unused ranges),
1281         rename "Resume" to "Summary" (easier to understand for more users).
1282         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1283         styles, and some unnecessary blank lines.
1284
1285 2010-10-03  Bruno Haible  <bruno@clisp.org>
1286             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1287
1288         acl: Add support for ACLs on NonStop Kernel.
1289         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1290         Check whether the function aclsort() exists.
1291         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1292         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1293         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1294         (acl_nontrivial [HAVE_ACLSORT]: New function.
1295         (file_has_acl): Implement for NonStop Kernel.
1296         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1297         (qset_acl): Implement for NonStop Kernel.
1298         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1299         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1300         (main): Implement for NonStop Kernel.
1301         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1302         Kernel. Handle this flavor.
1303         * tests/test-set-mode-acl.sh: Likewise.
1304         * tests/test-copy-acl.sh: Likewise.
1305         * tests/test-copy-file.sh: Likewise.
1306
1307 2010-10-03  Bruno Haible  <bruno@clisp.org>
1308
1309         Info about ACLs on NonStop Kernel.
1310         * doc/acl-resources.txt: Add info about NonStop Kernel.
1311         References by Joachim Schmitz <schmitz@hp.com>.
1312
1313 2010-10-02  Bruno Haible  <bruno@clisp.org>
1314
1315         Define missing EDQUOT on NonStop Kernel.
1316         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1317         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1318         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1319         missing.
1320         * doc/posix-headers/errno.texi: Mention the NSK bug.
1321         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1322         Reported by Joachim Schmitz <schmitz@hp.com>.
1323
1324 2010-10-02  Bruno Haible  <bruno@clisp.org>
1325
1326         Update doc for POSIX:2008.
1327         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1328         Update URL of POSIX specification.
1329
1330 2010-10-02  Bruno Haible  <bruno@clisp.org>
1331
1332         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1333         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1334         from gnulib, not from Automake.
1335
1336 2010-10-02  Bruno Haible  <bruno@clisp.org>
1337
1338         New module 'system-posix'.
1339         * modules/system-posix: New file.
1340         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1341         module is present.
1342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1343         GNULIB_SYSTEM_POSIX.
1344         * modules/stdlib (Depends-on): Remove sys_wait.
1345         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1346         * doc/posix-functions/system.texi: Mention the new module.
1347         * doc/posix-headers/stdlib.texi: Likewise.
1348         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1349         define test_sys_wait_macros to a no-op.
1350         Reported by Sam Steingold <sds@gnu.org>.
1351
1352 2010-09-30  Bruno Haible  <bruno@clisp.org>
1353
1354         More renaming from 'getdate' to 'get_date'.
1355         * doc/get_date.texi: Renamed from doc/getdate.texi.
1356         * modules/get_date (Files): Update.
1357         * MODULES.html.sh (Date and time <time.h>): Update.
1358         * DEPENDENCIES: Update.
1359         * gnulib-tool: Update comment.
1360         * m4/bison.m4 (gl_BISON): Likewise.
1361         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1362
1363 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1364
1365         bootstrap: support ACLOCAL_FLAGS during aclocal
1366         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1367         can add additional -I dir for third-party .m4 files.
1368
1369 2010-09-30  Eric Blake  <eblake@redhat.com>
1370
1371         bootstrap: use glibtoolize on MacOS
1372         * build-aux/bootstrap (check_versions): Convert libtool into
1373         libtoolize.
1374         (tool search): Move libtool check earlier, and look for
1375         glibtoolize for MacOS.
1376         (gnulib_tool_options): Auto-add --libtool when appropriate.
1377         Reported by Justin Clift.
1378
1379         poll: fix typo that broke test on MacOS
1380         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1381         Reported by Justin Clift.
1382
1383         getdate: rename to get_date
1384         Note: getdate.h is not renamed, to minimize client impact.
1385         * modules/getdate: Mark obsolete.  Move old contents...
1386         * modules/get_date: ...to new module name.
1387         * modules/getdate-tests: Move...
1388         * modules/get_date-tests: ...here.
1389         * m4/getdate.m4: Move...
1390         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1391         * lib/getdate.y: Move...
1392         * lib/get_date.y: ...here.
1393         * tests/test-getdate.c: Move...
1394         * tests/test-get_date.c: ...here.
1395         * doc/posix-functions/getdate.texi (getdate): Update name.
1396         * NEWS: Mention the change.
1397
1398 2010-09-29  Bruno Haible  <bruno@clisp.org>
1399
1400         Separate the module 'waitpid' from the module 'sys_wait'.
1401         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1402         present.
1403         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1404         gl_MODULE_INDICATOR_FOR_TESTS.
1405         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1406         * modules/sys_wait (Depends-on): Remove waitpid.
1407         (Makefile.am): Substitute GNULIB_WAITPID.
1408         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1409         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1410         signature only if the 'waitpid' module is present.
1411         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1412         * NEWS: Mention the change.
1413         * modules/grantpt (Depends-on): Add waitpid.
1414         * modules/wait-process (Depends-on): Likewise.
1415
1416 2010-09-29  Bruno Haible  <bruno@clisp.org>
1417
1418         More tests for module 'sys_wait'.
1419         * modules/sys_wait-c++-tests: New file.
1420         * tests/test-sys_wait-c++.cc: New file.
1421         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1422         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1423
1424 2010-09-29  Bruno Haible  <bruno@clisp.org>
1425
1426         New module 'waitpid'.
1427         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1428         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1429         Don't include <process.h>.
1430         (waitpid): Declare only, using modern idiom.
1431         * m4/waitpid.m4: New file.
1432         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1433         * modules/waitpid: New file.
1434         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1435         (Makefile.am): Update.
1436         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1437
1438 2010-09-28  Bruno Haible  <bruno@clisp.org>
1439
1440         poll: Assume ANSI C.
1441         * lib/poll.c (poll): Use an ANSI C declaration.
1442
1443 2010-09-28  Bruno Haible  <bruno@clisp.org>
1444
1445         poll-h: Create poll.h on all platforms.
1446         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1447         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1448         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1449         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1450         (gl_REPLACE_POLL_H): Don't set POLL_H.
1451         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1452         * modules/poll-h (Depends-on): Add include_next.
1453         (Makefile.am): Create poll.h unconditionally. Substitute also
1454         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1455
1456 2010-09-28  Bruno Haible  <bruno@clisp.org>
1457
1458         Tests for module 'poll-h'.
1459         * modules/poll-h-c++-tests: New file.
1460         * tests/test-poll-h-c++.cc: New file.
1461
1462         Tests for module 'poll-h'.
1463         * modules/poll-h-tests: New file.
1464         * tests/test-poll-h.c: New file.
1465
1466 2010-09-28  Bruno Haible  <bruno@clisp.org>
1467
1468         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1469         * modules/poll-h (Depends-on): Add 'extensions'.
1470
1471 2010-09-28  Bruno Haible  <bruno@clisp.org>
1472
1473         New module 'poll-h'.
1474         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1475         (poll): Use modern idiom.
1476         * modules/poll-h: New file.
1477         * modules/poll (Files): Remove lib/poll.in.h.
1478         (Depends-on): Add poll-h.
1479         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1480         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1481         * m4/poll_h.m4: New file.
1482         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1483         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1484         and invoke gl_REPLACE_POLL_H.
1485         * lib/poll.c: Use common idiom.
1486         * tests/test-poll.c: Likewise.
1487         * doc/posix-headers/poll.texi: Mention the poll-h module.
1488         Suggested by Eric Blake.
1489
1490 2010-09-26  Bruno Haible  <bruno@clisp.org>
1491
1492         sys_wait: Implement WSTOPSIG.
1493         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1494         Reported by Simon Josefsson.
1495
1496 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1497
1498         stdlib, sys_wait: Avoid compilation error on mingw.
1499         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1500
1501 2010-09-26  Bruno Haible  <bruno@clisp.org>
1502
1503         stdlib tests: Avoid code duplication.
1504         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1505         * modules/sys_wait-tests (Files): Likewise.
1506         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1507         * tests/test-stdlib.c: Include test-sys_wait.h.
1508         (main): Invoke test_sys_wait_macros.
1509         * tests/test-sys_wait.c: Include test-sys_wait.h.
1510         (main): Invoke test_sys_wait_macros.
1511
1512 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1513
1514         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1515         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1516         sure Windows sockets are working before calling getaddrinfo.
1517         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1518         * doc/gnulib.texi (Windows sockets): Fix typo.
1519
1520 2010-09-25  Bruno Haible  <bruno@clisp.org>
1521
1522         Tests for module 'regex-quote'.
1523         * modules/regex-quote-tests: New file.
1524         * tests/test-regex-quote.c: New file.
1525
1526         New module 'regex-quote'.
1527         * lib/regex-quote.h: New file.
1528         * lib/regex-quote.c: New file.
1529         * modules/regex-quote: New file.
1530         Suggested by Reuben Thomas <rrt@sc3d.org>.
1531
1532 2010-09-24  Bruno Haible  <bruno@clisp.org>
1533
1534         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1535         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1536
1537 2010-09-23  Bruno Haible  <bruno@clisp.org>
1538
1539         setenv: Relax license.
1540         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1541         Blake.
1542         Requested by Eric Blake.
1543
1544 2010-09-22  Bruno Haible  <bruno@clisp.org>
1545
1546         termios: Relax license.
1547         * modules/termios (License): Change to LGPLv2+.
1548         Requested by Eric Blake.
1549
1550 2010-09-22  Bruno Haible  <bruno@clisp.org>
1551
1552         threadlib: Allow the package to change the default to 'no'.
1553         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1554         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1555         Reported by Paul Eggert.
1556
1557 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1558             Bruno Haible  <bruno@clisp.org>
1559
1560         Fix endless loop in mbmemcasecoll.
1561         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1562         byte.
1563         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1564
1565 2010-09-22  Bruno Haible  <bruno@clisp.org>
1566
1567         Tests for module 'memcoll'.
1568         * modules/memcoll-tests: New file.
1569         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1570
1571         memcoll, xmemcoll: Clarify size vs. length.
1572         * modules/memcoll.c (memcoll0): Clarify specification.
1573         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1574         passed to collate_error.
1575
1576 2010-09-22  Bruno Haible  <bruno@clisp.org>
1577
1578         Tests for module 'memcasecmp'.
1579         * modules/memcasecmp-tests: New file.
1580         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1581
1582 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1583
1584         * lib/pthread.in.h: Add split double-inclusion guard, and include
1585         system <pthread.h> if there is one.  Use @@-style as in other
1586         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1587         pthread.h doesn't.
1588         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1589         (pthread_mutexattr_settype, pthread_mutex_trylock):
1590         New static inline functions, if there's no system <pthread.h>.
1591         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1592         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1593         Approximate with mutexes if the system lacks spinlocks, as in
1594         MacOS.
1595         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1596         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1597         @@-style.  Check for spinlocks separately.
1598         (gl_PTHREAD_DEFAULTS): New macro.
1599         * modules/pthread: Redo to use a more typical style for in.h files.
1600
1601 2010-09-21  Eric Blake  <eblake@redhat.com>
1602
1603         net_if: enhance tests
1604         * tests/test-net_if.c (main): Move signature checks earlier.
1605         Print failures to stderr.
1606         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1607         Document the bug that we do not yet fix.
1608
1609 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1610
1611         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1612         about gnulib, not GSS.
1613
1614 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1615
1616         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1617         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1618         for Emacs.
1619         * build-aux/pmccabe2html: Make Makefile.am example code more
1620         cut-and-paste friendly.
1621
1622 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1623
1624         * tests/test-net_if.c: New file.
1625         * modules/net_if-tests: New file.
1626
1627 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1628
1629         pthread: add pthread_spin_destroy
1630         * lib/pthread.in.h (pthread_spin_destroy): New function.
1631
1632 2010-09-19  Bruno Haible  <bruno@clisp.org>
1633
1634         gnulib-tool: Fix --help output.
1635         * gnulib-tool (func_usage): Fix help message.
1636         Reported by Reuben Thomas <rrt@sc3d.org>.
1637
1638 2010-09-18  Jim Meyering  <meyering@redhat.com>
1639
1640         maint.mk: avoid unexpanded \n in two diagnostics
1641         * top/maint.mk (sc_prohibit_always_true_header_tests):
1642         Don't use a literal \n in a halt=... assignment.  It would not be
1643         expanded, and the two \n bytes would appear in the diagnostic output
1644         rather than the desired newline.  Use halt=$$(printf ... instead.
1645         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1646
1647 2010-09-18  Bruno Haible  <bruno@clisp.org>
1648
1649         netinet_in: Doc tweak.
1650         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1651         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1652
1653 2010-09-18  Jim Meyering  <meyering@redhat.com>
1654
1655         init.sh: correct an outdated comment
1656         * tests/init.sh (create_exe_shims_):  s/function/alias/
1657
1658         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1659         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1660         a file named "*.exe" is removed between the glob expansion and the
1661         processing of that oddly named file.
1662
1663 2010-09-17  Eric Blake  <eblake@redhat.com>
1664
1665         mirbsd: add some more support
1666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1667         in BSD family.
1668         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1669         devices as OpenBSD.
1670         * m4/host-os.m4 (mirbsd): Add MirBSD.
1671
1672         tests: fix unportable assumption on sys/wait.h
1673         * tests/test-sys_wait.c (main): Relax test.
1674         * tests/test-stdlib.c (main): Likewise.
1675
1676         init.sh: accomodate directory with no .exes
1677         * tests/init.sh: Accomodate directory containing only scripts.
1678
1679         tests: avoid compiler warning
1680         * tests/test-stdlib.c (main): Use the variable.
1681
1682         fdutimens, fdutimensat: update signature, again
1683         * lib/utimens.h (gl_futimens): Delete, and move signature...
1684         (fdutimens): ...here.
1685         (fdutimensat): Rearrange signature.
1686         (lutimensat): Rename variable for clarity.
1687         * lib/fdutimensat.c (fdutimensat): Update signature.
1688         * lib/utimens.c (fdutimens): Likewise.
1689         (gl_futimens): Delete.
1690         (utimens, lutimens): Update callers.
1691         * lib/futimens.c (futimens): Likewise.
1692         * tests/test-fdutimensat.c: Likewise.
1693         * tests/test-utimens.c: Likewise.
1694         * tests/test-futimens.h: Update comment.
1695         * NEWS: Mention this.
1696         Suggested by Paul Eggert.
1697
1698 2010-09-17  Bruno Haible  <bruno@clisp.org>
1699
1700         Take over the maintenance of some older macros from Autoconf.
1701         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1702         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1703         GNU Autoconf.
1704         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1705         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1706
1707 2010-09-17  Eric Blake  <eblake@redhat.com>
1708
1709         fdutimensat: drop atflag validation
1710         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1711         with valid fd, to close a race scenario where futimens is
1712         unsupported and FILE was replaced by a symlink.
1713         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1714         accordingly.
1715         Suggested by Paul Eggert.
1716
1717 2010-09-16  Bruno Haible  <bruno@clisp.org>
1718
1719         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1720         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1721
1722 2010-09-16  Bruno Haible  <bruno@clisp.org>
1723
1724         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1725         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1726         login_tty exists.
1727         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1728
1729 2010-09-16  Bruno Haible  <bruno@clisp.org>
1730
1731         login_tty: Make the replacement code work on BSD systems.
1732         * lib/login_tty.c: Include <sys/ioctl.h>.
1733         (login_tty): Use ioctl TIOCSCTTY when available.
1734         * modules/login_tty (Depends-on): Add sys_ioctl.
1735         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1736
1737 2010-09-16  Bruno Haible  <bruno@clisp.org>
1738
1739         login_tty: Stricter unit test.
1740         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1741         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1742         and tcgetsid() after login_tty.
1743         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1744
1745 2010-09-16  Bruno Haible  <bruno@clisp.org>
1746
1747         New module 'tcgetsid'.
1748         * lib/tcgetsid.c: New file.
1749         * m4/tcgetsid.m4: New file.
1750         * modules/tcgetsid: New file.
1751         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1752         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1753         GNULIB_TCGETSID, HAVE_TCGETSID.
1754         * lib/termios.in.h: Include <sys/types.h>.
1755         (tcgetsid): New declaration.
1756         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1757         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1758         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1759         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1760
1761 2010-09-16  Bruno Haible  <bruno@clisp.org>
1762
1763         Tests for module 'termios'.
1764         * modules/termios-c++-tests: New file.
1765         * modules/termios-tests: New file.
1766         * tests/test-termios-c++.cc: New file.
1767         * tests/test-termios.c: New file.
1768
1769         New module 'termios'.
1770         * modules/termios: New file.
1771         * lib/termios.in.h: New file.
1772         * m4/termios_h.m4: New file.
1773         * doc/posix-headers/termios.texi: Mention the new module.
1774
1775 2010-09-16  Eric Blake  <eblake@redhat.com>
1776
1777         fdutimensat: add an atflag parameter
1778         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1779         * lib/utimens.h (fdutimensat): Update prototype.
1780         * tests/test-fdutimensat.c: Adjust test to match.
1781         * NEWS: Document the change.
1782         Suggested by Paul Eggert.
1783
1784 2010-09-16  Bruno Haible  <bruno@clisp.org>
1785
1786         Fix typos in comments.
1787         * lib/striconveh.h: Fix typo in comment.
1788         * lib/login_tty.c (login_tty): Likewise.
1789
1790 2010-09-15  Bruno Haible  <bruno@clisp.org>
1791
1792         stdlib: clarify MirBSD WEXITSTATUS bug
1793         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1794         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1795
1796 2010-09-15  Eric Blake  <eblake@redhat.com>
1797
1798         stdlib: work around MirBSD WEXITSTATUS bug
1799         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1800         * modules/stdlib (Depends-on): Add sys_wait.
1801         * tests/test-sys_wait.c (main): Enhance test.
1802         * tests/test-stdlib.c (main): Likewise.
1803         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1804
1805         docs: mention MacOS issue with WEXITSTATUS(constant)
1806         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1807         issue.
1808         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1809
1810         strnlen: add tests
1811         * modules/strnlen-tests: New file.
1812         * tests/test-strnlen.c: Likewise.
1813
1814 2010-09-14  Bruno Haible  <bruno@clisp.org>
1815
1816         unistr/base: Avoid link errors when module 'libunistring' is also used.
1817         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1818         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1819         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1820         Declare also when HAVE_LIBUNISTRING is set.
1821         Reported by Pádraig Brady <P@draigbrady.com>.
1822
1823 2010-09-14  Eric Blake  <eblake@redhat.com>
1824
1825         test-rawmemchr: make more robust
1826         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1827         (Depends-on, configure.ac): Add needed prerequisites to use it.
1828         * modules/memchr-tests (Files, Depends-on, configure.ac):
1829         Likewise, to avoid implicit reliance on memchr module prereqs.
1830         * tests/test-memchr.c (main): Ensure proper masking.
1831         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1832         reads.
1833
1834         memchr: detect glibc Alpha bug
1835         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1836         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1837         Alpha.
1838         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1839         * tests/test-memchr.c (main): Enhance test.
1840         Reported by Nelson H. F. Beebe.
1841
1842 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         fts, getcwd, glob: audit for dirfd returning -1
1845         * lib/fts.c (opendir): Remove #define; no longer used.
1846         (opendirat): New arg PDIR_FD.  All callers changed.
1847         (fts_build, _opendir2): Use new opendirat to avoid the need for
1848         dirfd, or for checking whether dirfd returns a negative value.
1849         Don't use opendir; always use openat followed by fdopendir.
1850         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1851         it.
1852         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1853         returns -1 here.
1854         * modules/fts (Depends-on): Remove dirfd.
1855         * modules/getcwd (Depends-on): Likewise.
1856
1857 2010-09-13  Eric Blake  <eblake@redhat.com>
1858
1859         float: fix broken MirBSD header
1860         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1861         * doc/posix-headers/float.texi (float.h): Document it.
1862
1863 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1864
1865         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1866         * lib/fts.c (opendirat): New arg extra_flags.
1867         (__opendir2): Use it to avoid following symlinks when opening
1868         a directory, if symlinks are not supposed to be followed.  See
1869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1870
1871         fdopendir: preserve argument fd before returning
1872         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1873         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1874         (fdopendir): Use them, arranging for FD to be open to the same
1875         directory that it was when it started.  (It might be temporarily
1876         closed while fdopendir is running, so this not thread- or
1877         signal-safe.)  Be careful to do the right thing even when file
1878         descriptors are scarce and dup fails with errno == EMFILE.  See
1879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1880
1881 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1882
1883         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1884         * NEWS: Document change.
1885         * m4/regex.m4: Disable test for regoff_t size.
1886
1887 2010-09-13  Jim Meyering  <meyering@redhat.com>
1888
1889         fts: don't operate on an invalid file descriptor after failed dup
1890         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1891         negative file descriptor.
1892
1893 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         savedir: add streamsavedir, deprecate fdsavedir
1896         * NEWS: Mention deprecation of fdsavedir.
1897         * lib/savedir.c (streamsavedir): New extern function, whose name
1898         ends in "savedir" to be consistent with the others.  This differs
1899         from savedirstream in that it doesn't close its argument.  The
1900         next version of GNU tar will use this instead of fdsavedir, to
1901         avoid some race conditions and conserve file descriptors.
1902         (savedirstream): Reimplement as a wrapper around streamsavedir.
1903         (fdsavedir): Add a comment deprecating this function.  As far as
1904         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1905         * lib/savedir.h (streamsavedir): New decl.
1906         (fdsavedir): Add a comment deprecating this.
1907
1908 2010-09-10  Bruno Haible  <bruno@clisp.org>
1909
1910         langinfo: Fix last commit.
1911         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1912         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1914
1915 2010-09-10  Bruno Haible  <bruno@clisp.org>
1916
1917         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1918         * lib/progreloc.c (O_EXEC): Define fallback.
1919
1920 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1923         * NEWS: Document recent changes to fcntl-h.
1924         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1925         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1926         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1927         Similarly for O_SEARCH; this last was already true, but not documented.
1928         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1929         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1930         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1931         Likewise.
1932         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1933         is zero, not whether it is defined.
1934         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1935         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1936         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1937
1938 2010-09-10  Bruno Haible  <bruno@clisp.org>
1939
1940         langinfo, nl_langinfo: Fix for IRIX 5.3.
1941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1942         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1943         HAVE_LANGINFO_YESEXPR.
1944         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1945         HAVE_LANGINFO_YESEXPR.
1946         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1947         HAVE_LANGINFO_T_FMT_AMPM is 0.
1948         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1949         HAVE_LANGINFO_YESEXPR is 0.
1950         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1951         NOEXPR.
1952         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1953         * doc/posix-functions/nl_langinfo.texi: Likewise.
1954         Reported by Eric Blake.
1955
1956 2010-09-10  Bruno Haible  <bruno@clisp.org>
1957
1958         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1959         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1960         on FreeBSD 8.0 and OpenBSD 4.6.
1961         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1962         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1963         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1964         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1965         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1966         ac_includes_default.
1967         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1968
1969 2010-09-09  Eric Blake  <eblake@redhat.com>
1970
1971         strsignal: work around NetBSD bug
1972         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1973         * lib/string.in.h (includes): Likewise.
1974         * doc/posix-functions/strsignal.texi (strsignal): Document the
1975         bug.
1976         Reported by Nelson H. F. Beebe.
1977
1978         gnulib-tool: work with NetBSD /bin/sh
1979         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1980         (func_get_description, func_get_comment, func_get_status)
1981         (func_get_notice, func_get_applicability, func_get_filelist)
1982         (func_get_dependencies, func_get_autoconf_early_snippet)
1983         (func_get_autoconf_snippet, func_get_automake_snippet)
1984         (func_get_include_directive, func_get_link_directive)
1985         (func_get_license, func_get_maintainer, func_import): Avoid
1986         shell syntax errors from parsing syntax extensions.
1987
1988 2010-09-09  Bruno Haible  <bruno@clisp.org>
1989
1990         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1991         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1992         a reliable way to determine whether the 'alias' command works.
1993
1994 2010-09-08  Jim Meyering  <meyering@redhat.com>
1995
1996         init.sh: penalize a set-x-impaired shell; don't disqualify it
1997         * tests/init.sh: Too many shells corrupt application stderr when
1998         you set -x, so we can't afford to disqualify them, since at least
1999         on Irix-6.5, that would disqualify all bourne shells.
2000         Instead, use a two-pass approach.
2001         On the first pass, try to find a shell that meets the stricter
2002         condition that set -x does not corrupt stderr.
2003         If no shell meets the stricter condition, retest each candidate
2004         shell, but without that extra condition.  Finally, when
2005         VERBOSE=yes is requested and set -x might cause trouble, simply
2006         issue a warning and refrain from enabling debug output.
2007
2008 2010-09-08  Eric Blake  <eblake@redhat.com>
2009
2010         unsetenv: fix OpenBSD bug
2011         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2012         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2013         documentation.
2014         Reported by Jim Meyering.
2015
2016         strtod: work around IRIX 6.5 bug
2017         * lib/strtod.c (strtod): Reparse number on shorter string if
2018         exponent parse was invalid.
2019         * tests/test-strtod.c (main): Add check for "0x1p 2".
2020         Reported by Tom G. Christensen.
2021
2022         getopt: optimize previous patch
2023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2024         empty variable.  Speed up awk script.
2025         Reported by Paolo Bonzini.
2026
2027 2010-09-08  Jim Meyering  <meyering@redhat.com>
2028
2029         test.sh: disqualify shells for which set -x corrupts stderr
2030         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2031         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2032         appear in stderr output.  For example, this command:
2033             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2034         prints "P=1" on those two systems:
2035
2036 2010-09-08  Bruno Haible  <bruno@clisp.org>
2037
2038         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2039         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2040         commands, because some shells ignore redirections when there is an
2041         error in the command lookup.
2042         Reported by Eric Blake.
2043
2044 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2045
2046         * lib/regex.h: Fix a mention of `regex_compile' (should be
2047         `re_compile_pattern').
2048         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2049         (re_set_registers): Correct name of parameter in comment.
2050
2051         * doc/regex.texi: Add documentation for missing syntax flags.
2052         Remove commented-out documentation of defunct syntax option
2053         RE_NO_EMPTY_ALTS.
2054         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2055         Add documentation of re_set_registers.
2056         Document trick to re-use a pattern buffer by setting fastmap manually.
2057         Update documentation of struct re_pattern_buffer per public members.
2058         Uncomment documentation of equivalence class operators and
2059         collating symbol operators, since they are now implemented,
2060         Explain leftmost-longest matching in relation to alternatives.
2061         Tidy documentation of substring matching.
2062         Remove POSIX documentation, which is done better in
2063         glibc, and refer the reader there. Keep BSD API documentation, as
2064         that is not readily available elsewhere.
2065
2066 2010-09-07  Eric Blake  <eblake@redhat.com>
2067
2068         getopt: handle POSIXLY_CORRECT set but not exported
2069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2070         export state of POSIXLY_CORRECT, due to bash set -o posix.
2071         Reported by Dustin J. Mitchell.
2072
2073 2010-09-05  Bruno Haible  <bruno@clisp.org>
2074
2075         gnulib-tool: Highlight the changed options.
2076         * gnulib-tool (func_usage): Display the --import, --add-import,
2077         --remove-import explanations in bold font.
2078
2079 2010-09-06  Karl Berry  <karl@gnu.org>
2080
2081         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2082
2083 2010-09-05  Bruno Haible  <bruno@clisp.org>
2084
2085         uniwidth/width: Update comment.
2086         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2087         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2088
2089 2010-09-05  Bruno Haible  <bruno@clisp.org>
2090
2091         isinf, isnan: Relax license.
2092         * modules/isinf (License): Change from GPL to LGPL, with consent from
2093         Ben Pfaff.
2094         * modules/isnan (License): Likewise.
2095         Requested by Ludovic Courtès.
2096
2097 2010-09-04  Bruno Haible  <bruno@clisp.org>
2098
2099         gnulib-tool: Help migration from --import to --add-import or --update.
2100         * gnulib-tool: Emit a verbose error message when --import is used
2101         without any module name.
2102
2103 2010-09-04  Bruno Haible  <bruno@clisp.org>
2104
2105         Update doc about gnulib-tool.
2106         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2107         'gnulib-tool --update' in more detail.
2108         Reported by Eric Blake.
2109
2110 2010-09-04  Bruno Haible  <bruno@clisp.org>
2111
2112         gnulib-tool: Change --import. New options --add/remove-import.
2113         * gnulib-tool: New options --add-import, --remove-import.
2114         (func_usage): Document them.
2115         (have_associative): Define always.
2116         (func_import): In import mode, don't merge the specified settings with
2117         the cached settings. Implement remove-import mode.
2118         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2119         Explain when to use them versus --import.
2120         (Simple update): Use --add-import instead of --import.
2121         * NEWS: Mention the change.
2122
2123 2010-09-04  Bruno Haible  <bruno@clisp.org>
2124
2125         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2126         separate gnulib.mk.
2127
2128 2010-09-04  Bruno Haible  <bruno@clisp.org>
2129
2130         gnulib-tool: Don't talk about CVS any more.
2131         * gnulib-tool (func_usage, func_import): Write "version control"
2132         instead of CVS.
2133
2134 2010-09-04  Jim Meyering  <meyering@redhat.com>
2135
2136         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2137         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2138         false positives (whose names may be ill-chosen) when searching
2139         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2140         would cause a false-positive.
2141
2142         avoid coreutils "make distcheck" failure
2143         Coreutils tests with an absolute build directory name that contains
2144         a space.  Not quoting this directory name caused a failure.
2145         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2146         * tests/test-vc-list-files-cvs.sh: Likewise.
2147
2148 2010-09-04  Bruno Haible  <bruno@clisp.org>
2149
2150         gnulib-tool: Avoid error when run in a package without Makefile.am.
2151         * gnulib-tool: When collecting the m4dirs in a package that does not
2152         have a Makefile.am, eliminate those directories that contain no
2153         gnulib-cache.m4. Fix expression that counts these directories.
2154
2155 2010-09-04  Bruno Haible  <bruno@clisp.org>
2156
2157         update-copyright test: Improve output when perl is missing or too old.
2158         * tests/test-update-copyright.sh: Move test of Perl version down after
2159         the test whether Perl exists. Provide an explanation relating Perl's
2160         error message to Automake's SKIP: message.
2161
2162 2010-09-04  Bruno Haible  <bruno@clisp.org>
2163
2164         Don't augment PATH in TESTS_ENVIRONMENT.
2165         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2166         set abs_aux_dir instead of augmenting PATH.
2167         * modules/vc-list-files-tests (Makefile.am): Likewise.
2168         * tests/test-update-copyright.sh: Augment PATH here.
2169         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2170         path_prepend_.
2171         * tests/test-vc-list-files-git.sh: Likewise.
2172
2173 2010-09-04  Jim Meyering  <meyering@redhat.com>
2174
2175         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2176         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2177
2178 2010-09-04  Bruno Haible  <bruno@clisp.org>
2179
2180         strdup: Fix compilation error in C++ mode.
2181         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2182         the macro.
2183
2184 2010-09-04  Bruno Haible  <bruno@clisp.org>
2185
2186         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2187         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2188         macro into a function.
2189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2190
2191 2010-09-04  Bruno Haible  <bruno@clisp.org>
2192
2193         Set PATH_SEPARATOR the same way autoconf does.
2194         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2195         the value of PATH_SEPARATOR the same way autoconf-generated configure
2196         scripts do.
2197         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2198         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2199
2200 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2201
2202         Set PATH_SEPARATOR the same way autoconf does.
2203         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2204         the same way autoconf-generated configure scripts do.
2205         * posix-modules: Likewise.
2206
2207 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         hash: fix safe_hasher const typo
2210         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2211         const; otherwise, there is a type error later.
2212
2213 2010-09-02  Jim Meyering  <meyering@redhat.com>
2214
2215         test-update-copyright.sh: require perl 5.8.0
2216         * tests/test-update-copyright.sh: Require 5.8.0,
2217         which Tom G. Christensen has confirmed is adequate,
2218         while 5.6.1 is not.
2219
2220 2010-09-02  Eric Blake  <eblake@redhat.com>
2221
2222         tests: init.sh improvements for re-exec'ing with zsh
2223         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2224         -vx through shell re-exec.
2225         Reported by Tom G. Christensen.
2226
2227         wctype: fix typo in previous commit
2228         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2229         Reported by Ludovic Courtès.
2230
2231 2010-09-02  Jim Meyering  <meyering@redhat.com>
2232
2233         test-update-copyright.sh: skip test if Perl is too old
2234         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2235         Reported by Tom G. Christensen.
2236
2237 2010-09-02  Bruno Haible  <bruno@clisp.org>
2238
2239         wctype: Avoid compilation error on IRIX 6.5.30.
2240         * lib/wctype.in.h (iswblank): Declare with a replacement if
2241         REPLACE_ISWBLANK is set.
2242         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2243         declared. Set REPLACE_ISWBLANK.
2244         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2245         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2246         * doc/posix-headers/wctype.texi: Likewise.
2247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2248
2249 2010-09-01  Bruno Haible  <bruno@clisp.org>
2250
2251         New module 'socketlib'.
2252         * modules/socketlib: New file.
2253         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2254         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2255         * modules/sockets (Depends-on): Add socketlib.
2256         Suggested by Sam Steingold <sds@gnu.org>.
2257
2258 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2261
2262         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2263         when one needs search access to a directory but not read access.
2264         On systems where it is available, it works in some cases where
2265         O_RDONLY does not, namely on directories that are searchable but
2266         not readable, and which need only to be searchable.  If O_SEARCH
2267         is not available, fall back to the traditional method of using
2268         O_RDONLY.
2269
2270         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2271         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2272         when opening a directory that needs only to be searchable.
2273         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2274         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2275         * lib/openat-proc.c (openat_proc_name): Likewise.
2276         * lib/openat.c (openat_needs_fchdir): Likewise.
2277         * lib/save-cwd.c (save_cwd): Likewise.
2278         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2279
2280 2010-08-28  Bruno Haible  <bruno@clisp.org>
2281
2282         New module 'host-cpu-c-abi'.
2283         * modules/host-cpu-c-abi: New file.
2284         * m4/host-cpu-c-abi.m4: New file, based on part of
2285         clisp/src/m4/general.m4.
2286         Requested by Sam Steingold <sds@gnu.org>.
2287
2288 2010-08-31  Eric Blake  <eblake@redhat.com>
2289         and Jim Meyering  <meyering@redhat.com>
2290
2291         hash: factor, and guard against misbehaving hasher function
2292         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2293         of table->hasher's return value.  Also protect against a hash value
2294         so large that adding it to table->bucket results in a NULL pointer.
2295         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2296         Use it in place of open-coded check-and-abort.
2297
2298 2010-08-30  Bruno Haible  <bruno@clisp.org>
2299
2300         hash: silence spurious clang warning
2301         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2302         Reported by Eric Blake.
2303
2304 2010-08-30  Eric Blake  <eblake@redhat.com>
2305
2306         strstr, memmem, strcasestr: avoid leaked shell message
2307         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2308         FreeBSD.
2309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2311
2312         tests: silence clang warning
2313         * tests/test-malloca.c (do_allocation): Avoid dead store.
2314
2315 2010-08-29  Bruno Haible  <bruno@clisp.org>
2316
2317         gettext: Fix recent mistake.
2318         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2319
2320 2010-08-29  Bruno Haible  <bruno@clisp.org>
2321
2322         selinux-h: Offer a --without-selinux option.
2323         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2324         --without-selinux was specified, skip all tests and define
2325         HAVE_SELINUX_SELINUX_H to 0.
2326         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2327         set LIB_SELINUX to empty.
2328         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2329         gl_LIBSELINUX. If --without-selinux was specified, replace
2330         selinux/context.h.
2331         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2332
2333 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2334             Bruno Haible  <bruno@clisp.org>
2335
2336         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2337         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2338         of HAVE_REALLOC.
2339         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2340         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2341         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2342         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2343
2344 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2345             Bruno Haible  <bruno@clisp.org>
2346
2347         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2348         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2349         HAVE_CALLOC.
2350         * lib/xmalloc.c: Update accordingly.
2351         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2352         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2353         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2354
2355 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2356             Bruno Haible  <bruno@clisp.org>
2357
2358         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2359         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2360         HAVE_MALLOC.
2361         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2362         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2363         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2364
2365 2010-08-29  Bruno Haible  <bruno@clisp.org>
2366
2367         Update modules list.
2368         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2369         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2370         (String handling <string.h>): Add astrxfrm.
2371         (File system functions): Add readlinkat.
2372
2373 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2374
2375         Tests for module 'realloc-gnu'.
2376         * modules/realloc-gnu-tests: New file.
2377         * tests/test-realloc-gnu.c: New file.
2378
2379         Tests for module 'calloc-gnu'.
2380         * modules/calloc-gnu-tests: New file.
2381         * tests/test-calloc-gnu.c: New file.
2382
2383         Tests for module 'malloc-gnu'.
2384         * modules/malloc-gnu-tests: New file.
2385         * tests/test-malloc-gnu.c: New file.
2386
2387 2010-08-28  Bruno Haible  <bruno@clisp.org>
2388
2389         Rename module 'realloc' -> 'realloc-gnu'.
2390         * modules/realloc-gnu: New file, copied from modules/realloc.
2391         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2392         obsolete.
2393         * modules/mgetgroups (Depends-on): Update.
2394         * doc/posix-functions/realloc.texi: Update.
2395         * NEWS: Mention the change.
2396
2397         Rename module 'calloc' -> 'calloc-gnu'.
2398         * modules/calloc-gnu: New file, copied from modules/calloc.
2399         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2400         obsolete.
2401         * doc/posix-functions/calloc.texi: Update.
2402         * NEWS: Mention the change.
2403
2404         Rename module 'malloc' -> 'malloc-gnu'.
2405         * modules/malloc-gnu: New file, copied from modules/malloc.
2406         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2407         obsolete.
2408         * modules/argp (Depends-on): Update.
2409         * modules/regex (Depends-on): Update.
2410         * doc/posix-functions/malloc.texi: Update.
2411         * NEWS: Mention the change.
2412
2413 2010-08-28  Eric Blake  <eblake@redhat.com>
2414
2415         pread, pwrite: add missing dependency
2416         * modules/pread (Depends-on): Add extensions.
2417         * modules/pwrite (Depends-on): Likewise.
2418
2419 2010-08-28  Bruno Haible  <bruno@clisp.org>
2420
2421         unistr/u*-strchr: Fix tests dependencies.
2422         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2423         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2424         Reported by Ian Beckwith <ianb@erislabs.net>.
2425
2426 2010-08-28  Bruno Haible  <bruno@clisp.org>
2427
2428         read-file: Don't occupy too much unused memory.
2429         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2430
2431 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2432             Eric Blake  <eblake@redhat.com>
2433             Bruno Haible  <bruno@clisp.org>
2434
2435         read-file: Avoid memory reallocations with regular files.
2436         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2437         (fread_file): With regular files, use the remaining length as the
2438         initial buffer size.  Check against overflow.
2439         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2440         sys_stat.
2441
2442 2010-08-28  Bruno Haible  <bruno@clisp.org>
2443
2444         ftello: Relax license.
2445         * modules/ftello (License): Relax to LGPLv2+.
2446         Reported by Eric Blake.
2447
2448 2010-08-28  Bruno Haible  <bruno@clisp.org>
2449
2450         Avoid relocwrapper link errors due to gnulib replacement functions.
2451         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2452         function.
2453         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2454
2455 2010-08-28  Bruno Haible  <bruno@clisp.org>
2456
2457         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2458         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2459         defined.
2460         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2461         Suggested by Eric Blake.
2462
2463 2010-08-28  Bruno Haible  <bruno@clisp.org>
2464
2465         sys_socket, netdb: Ensure socklen_t gets defined.
2466         * modules/sys_socket (Depends-on): Add socklen.
2467         * modules/netdb (Depends-on): Likewise.
2468         * modules/getaddrinfo (Depends-on): Remove socklen.
2469         * modules/getsockopt (Depends-on): Likewise.
2470         * modules/setsockopt (Depends-on): Likewise.
2471         * tests/test-sys_socket.c: Check that socklen_t is defined.
2472         * tests/test-netdb.c: Likewise.
2473         * m4/socklen.m4: Update comments.
2474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2475
2476 2010-08-27  Eric Blake  <eblake@redhat.com>
2477
2478         login_tty: add missing dependency
2479         * modules/login_tty (Depends-on): Add pty.
2480
2481 2010-08-26  Eric Blake  <eblake@redhat.com>
2482
2483         lib-symbol-versions: fix m4 quoting
2484         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2485         format for AC_LINK_IFELSE.
2486
2487         glob: fix compile test
2488         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2489
2490         btowc: fix missing file
2491         * modules/btowc (Files): Also ship locale-fr.m4.
2492
2493         lseek: fix link test
2494         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2495         AC_LINK_IFELSE.
2496
2497         include_next: silence autoconf 2.68 warning
2498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2499         AC_COMPILE_IFELSE as special.
2500         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2501         autoconf < 2.68.
2502
2503         acl: fix compilation test
2504         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2505         AC_COMPILE_IFELSE.
2506
2507 2010-08-26  Bruno Haible  <bruno@clisp.org>
2508
2509         Modernize AC_TRY_RUN invocations.
2510         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2511         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2512         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2513         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2514         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2515         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2518         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2519         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2520         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2521         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2522         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2523         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2525         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2526         gl_MBRLEN_NUL_RETVAL): Likewise.
2527         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2528         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2529         Likewise.
2530         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2531         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2532         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2533         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2534         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2535         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2536         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2537         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2538         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2539         Likewise.
2540         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2541         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2543         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2544         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2545         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2547         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2548         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2550
2551 2010-08-26  Bruno Haible  <bruno@clisp.org>
2552
2553         Modernize AC_TRY_LINK invocations.
2554         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2555         AC_TRY_LINK.
2556         * m4/argp.m4 (gl_ARGP): Likewise.
2557         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2558         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2559         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2560         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2561         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2562         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2563         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2564         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2565         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2566         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2567         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2568         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2569         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2570         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2571         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2572         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2573         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2574         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2575         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2576         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2577         Likewise.
2578         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2579         Likewise.
2580         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2581         Likewise.
2582         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2583         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2584         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2585         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2586         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2587         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2588         * m4/servent.m4 (gl_SERVENT): Likewise.
2589         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2590         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2591         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2592         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2593         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2594         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2595         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2596         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2597         * modules/tsearch-tests (configure.ac): Likewise.
2598
2599 2010-08-26  Bruno Haible  <bruno@clisp.org>
2600
2601         Modernize AC_TRY_COMPILE invocations.
2602         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2603         AC_TRY_COMPILE.
2604         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2605         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2606         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2607         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2608         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2609         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2610         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2611         * m4/lock.m4 (gl_LOCK): Likewise.
2612         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2613         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2614         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2615         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2616         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2617         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2618         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2620         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2621         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2622         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2623         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2624         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2625         extraneous semicolon.
2626
2627 2010-08-26  Jim Meyering  <meyering@redhat.com>
2628
2629         stat-time: relax license LGPL
2630         * modules/stat-time (License): Change from GPL to LGPL,
2631         with consent from all contributors, for use in libguile.
2632         Requested by Ludovic Courtès.
2633
2634 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2635
2636         poll: return immediately on POLLHUP.
2637         * lib/poll.c (poll): Always set timeout before wait_timeout is
2638         computed.
2639
2640 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2641
2642         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2643         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2644         rmdir ("dir/.//"), unlinkat.
2645
2646 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2647
2648         stdbool: avoid spurious failure with modern xlc
2649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2650
2651 2010-08-24  Bruno Haible  <bruno@clisp.org>
2652
2653         getloadavg: simplify code
2654         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2655         gl_have_func. Update comments.
2656
2657 2010-08-24  Eric Blake  <eblake@redhat.com>
2658
2659         getloadavg: don't define SVR4 on cygwin
2660         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2661         only define SVR4 when -lkvm is required.
2662         Reported by Yaakov Selkowitz.
2663
2664 2010-08-24  Bruno Haible  <bruno@clisp.org>
2665
2666         priv-set: fix comment
2667         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2668
2669 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         priv-set: fix comments
2672         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2673         to match code, as suggested by David Bartley in:
2674         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2675
2676 2010-08-23  Eric Blake  <eblake@redhat.com>
2677
2678         stdbool: avoid rejecting clang
2679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2680         * tests/test-stdbool.c: Enable more tests if using the system
2681         <stdbool.h> instead of the gnulib replacement.
2682         (main): Move xlc bug test to a runtime test for all compilers.
2683         Reported by Anders Kaseorg.
2684
2685         argz: fix shell quoting issue
2686         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2687         Reported by Charles Wilson.
2688
2689 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2690             Erik Faye-Lund <kusmabite@gmail.com>
2691
2692         poll, select: handle ERROR_BROKEN_PIPE.
2693         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2694         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2695         * lib/select.c (win32_compute_revents): Do not mark a pipe
2696         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2697
2698 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2699
2700         fts: allow compilation with C++
2701         * lib/fts_.h: Specify extern "C" linkage with C++.
2702
2703 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2704
2705         Fix gnulib-tool sed script de-commentation for AIX sed.
2706         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2707         sed.
2708
2709 2010-08-17  Eric Blake  <eblake@redhat.com>
2710
2711         test-stddef: test for (some) offsetof bugs
2712         * tests/test-stddef.c: Enhance test to ensure correct type of
2713         offsetof.
2714         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2715         that we are not fixing at this time.
2716
2717 2010-08-15  Bruno Haible  <bruno@clisp.org>
2718
2719         stpncpy: Allow stpncpy to be defined as a macro.
2720         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2721         if it's already correctly declared.
2722         * lib/string.in.h (stpncpy): Undefine before redefining.
2723         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2724
2725 2010-08-14  Bruno Haible  <bruno@clisp.org>
2726
2727         Rename module 'memxfrm' to 'amemxfrm'.
2728         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2729         (amemxfrm): Renamed from memxfrm.
2730         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2731         (amemxfrm): Renamed from memxfrm.
2732         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2733         * NEWS: Mention the change.
2734         * MODULES.html.sh (String handling <string.h>): Update.
2735         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2736         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2737         * lib/unicase/u16-casexfrm.c: Likewise.
2738         * lib/unicase/u32-casexfrm.c: Likewise.
2739         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2740         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2741         * lib/uninorm/u16-normxfrm.c: Likewise.
2742         * lib/uninorm/u32-normxfrm.c: Likewise.
2743         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2744         memxfrm.
2745         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2746         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2747         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2748         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2749         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2750         Suggested by Paul Eggert.
2751
2752 2010-08-14  Bruno Haible  <bruno@clisp.org>
2753
2754         Tests for module 'astrxfrm'.
2755         * modules/astrxfrm-tests: New file.
2756         * tests/test-astrxfrm.c: New file.
2757
2758         New module 'astrxfrm'.
2759         * lib/astrxfrm.h: New file.
2760         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2761         * modules/astrxfrm: New file.
2762
2763 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2764
2765         regex: Tweak doc.
2766         * doc/regex.texi (Overview): Don't mention regex.c.
2767         (GNU Regular Expression Compiling): Likewise.
2768         (Match-end-of-line Operator): Mention 'not_eol'.
2769
2770 2010-08-14  Brian Gough  <bjg@gnu.org>
2771             Bruno Haible  <bruno@clisp.org>
2772
2773         git-merge-changelog: add doc relating to use with bzr and hg.
2774         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2775
2776 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2777
2778         pthread: fix pthread.h creation for srcdir != builddir
2779         * modules/pthread (Makefile.am): Fix the rule to work also in a
2780         non-srcdir build.
2781
2782 2010-08-13  Karl Berry  <karl@gnu.org>
2783
2784         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2785         * doc/posix-*/*: force line break before @url of POSIX
2786         specifications.
2787         Suggested by Werner Lemberg.
2788
2789 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         strtod: fix const diagnostic
2792         * lib/strtod.c (strtod): Don't assign const char * to char *,
2793         as this elicits a warning from GCC when warnings are enabled.
2794
2795 2010-08-10  Pádraig Brady <P@draigbrady.com>
2796         and Eric Blake  <eblake@redhat.com>
2797
2798         copy-acl: ignore ENOTSUP on HP-UX
2799         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2800         so that it is available for HP-UX.
2801         * lib/copy-acl.c (qcopy_acl): Use it.
2802         Reported by Patrick M. Callahan.
2803
2804 2010-08-10  Eric Blake  <eblake@redhat.com>
2805
2806         open, chown: relax license
2807         * modules/open (License): Change to LGPLv2+, with consent by all
2808         authors, for use in augeas.
2809         * modules/chown (License): Likewise.
2810         * modules/lchown (Likewise): Likewise.
2811         Requested by Adam Stokes.
2812
2813 2010-08-09  Karl Berry  <karl@gnu.org>
2814
2815         * build-aux/ar-lib: new file, import from Automake.
2816         * config/srclist.txt: autocheck for updates.
2817
2818 2010-08-09  Eric Blake  <eblake@redhat.com>
2819
2820         readlinkat: adjust client modules
2821         * modules/areadlinkat (Depends-on): Use readlinkat, not
2822         symlinkat.
2823         * modules/areadlinkat-with-size (Depends-on): Likewise.
2824
2825         mknod: be more vocal about danger of running tests as root
2826         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2827         root, since that is just asking for problems.
2828         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2829
2830         readlinkat: split into its own module
2831         * modules/symlinkat: Split readlinkat...
2832         * modules/readlinkat: ...into separate module.
2833         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2834         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2835         * lib/symlinkat.c (readlinkat): Move...
2836         * lib/readlinkat.c: ...into new file.
2837         * modules/symlinkat-tests: Split readlinkat test...
2838         * modules/readlinkat-tests: ...into separate module.
2839         * tests/test-symlinkat.c: Split...
2840         * tests/test-readlinkat.c: ...into new file.
2841         * NEWS: Document the split.
2842         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2843         * lib/unistd.in.h (readlinkat): Likewise.
2844         Suggested by Bruno Haible.
2845
2846 2010-08-08  Bruno Haible  <bruno@clisp.org>
2847
2848         memxfrm: Speed up.
2849         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2850         that usually only one call to strxfrm is necessary for each string
2851         part.
2852         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2853
2854 2010-08-07  Karl Berry  <karl@gnu.org>
2855
2856         * doc/posix-headers/limits.texi,
2857         * doc/posix-functions/malloc.texi,
2858         * doc/posix-functions/strsignal.texi: missing @item.
2859         * doc/ld-version-script.texi: spurious leading i.
2860         * doc/regex.texi (Interval Operators): no commas inside @var.
2861
2862 2010-08-01  Bruno Haible  <bruno@clisp.org>
2863
2864         Integrate the regex documentation.
2865         * doc/gnulib.texi: Define 'cn' index.
2866         (Regular expressions): New a chapter that includes regex.texi and
2867         regexprops-generic.texi.
2868         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2869         syntax.
2870
2871         Whitespace cleanup.
2872         * doc/regex.texi: Remove trailing spaces.
2873
2874         Add regex documentation.
2875         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2876         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2877         Written by Kathy A. Hargreaves and Karl Berry.
2878
2879 2010-08-01  Bruno Haible  <bruno@clisp.org>
2880
2881         link: Update documentation.
2882         * doc/posix-functions/link.texi: Update regarding Solaris.
2883
2884 2010-07-31  Bruno Haible  <bruno@clisp.org>
2885
2886         Update modules list.
2887         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2888         (String handling <string.h>): Add memcmp2, memxfrm.
2889         (Container data structures): Add xlist, xsublist, xoset.
2890         (Core language properties): Add alignof, unused-parameter.
2891         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2892         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2893         (Unibyte characters <ctype.h>): New section.
2894         (String handling <string.h>): New section.
2895         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2896         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2897         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2898         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2899         tan, tanh, tanl, y0, y1, yn.
2900         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2901         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2902         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2903         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2904         unlockpt, vdprintf, vdprintf-posix.
2905         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2906         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2907         xconcat-filename.
2908         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2909         getdtablesize, pipe2, pipe2-safer.
2910         (Security): New section.
2911         (Networking functions): Add accept4.
2912         (Signal handling): Add sigpipe.
2913         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2914         mbmemcasecoll.
2915         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2916         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2917         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2918         pipe-filter-ii.
2919         (Misc): Add argp-version-etc, login_tty, parse-duration.
2920
2921 2010-07-31  Bruno Haible  <bruno@clisp.org>
2922
2923         Improve doc in MODULES.html.
2924         * modules/linkat (Description): Add the word "function".
2925         * modules/mkfifo (Description): Likewise.
2926         * modules/mknod (Description): Likewise.
2927         * modules/remove (Description): Likewise.
2928         * modules/renameat (Description): Likewise.
2929         * modules/stat (Description): Likewise.
2930         * modules/symlink (Description): Likewise.
2931         * modules/unlink (Description): Likewise.
2932
2933 2010-07-31  Bruno Haible  <bruno@clisp.org>
2934
2935         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2936         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2937         option --enable/disable-c++ instead of --enable/disable-cxx.
2938         * NEWS: Mention the change.
2939
2940 2010-07-31  Bruno Haible  <bruno@clisp.org>
2941
2942         readlink, areadlink: Relax test a bit.
2943         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2944         alternative to ENOTDIR.
2945         * tests/test-areadlink.h (test_areadlink): Likewise.
2946         Reported by Rainer Tammer.
2947
2948 2010-07-31  Bruno Haible  <bruno@clisp.org>
2949
2950         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2951         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2952         character, perform the search using U_STRCHR.
2953         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2954         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2955         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2956         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2957         Suggested by Paolo Bonzini.
2958
2959 2010-07-31  Bruno Haible  <bruno@clisp.org>
2960
2961         unistr/u*-strstr: Fix dependencies.
2962         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2963         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2964         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2965
2966 2010-07-31  Bruno Haible  <bruno@clisp.org>
2967
2968         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2969         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2970         the beginning of the loop.
2971         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2972         cases in 'switch' statement.
2973
2974         unistr/u8-strchr: Fix several bugs.
2975         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2976         the string. When not found, return NULL, not a pointer near the end.
2977
2978         More tests for unistr/u8-strchr.
2979         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2980         that the function does not read past the first occurrence of the byte
2981         being searched.
2982         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2983         * tests/unistr/test-u16-strchr.c (main): New function.
2984         * tests/unistr/test-u32-strchr.c (main): New function.
2985
2986 2010-07-31  Bruno Haible  <bruno@clisp.org>
2987
2988         posix-modules: Ignore backup files of documentation files.
2989         * posix-modules: grep only through files named *.texi.
2990
2991 2010-07-31  Bruno Haible  <bruno@clisp.org>
2992
2993         symlinkat: Fix documentation.
2994         * doc/posix-functions/readlinkat.texi: Fix module name.
2995
2996 2010-07-31  Bruno Haible  <bruno@clisp.org>
2997
2998         fchownat: Replace also when chown has the trailing slash bug.
2999         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3000         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3001         introduced on 2010-04-10.
3002         Reported by Rainer Tammer.
3003
3004 2010-07-31  Bruno Haible  <bruno@clisp.org>
3005
3006         linkat: Work around AIX 7.1 bug.
3007         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3008         whether linkat handles trailing slash correctly. If not, replace linkat
3009         and define LINKAT_TRAILING_SLASH_BUG.
3010         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3011         check whether (fd1,file1) points to a directory if file1 or file2 ends
3012         in a slash. Code taken from lib/link.c.
3013         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3014         Reported by Rainer Tammer.
3015
3016 2010-07-31  Bruno Haible  <bruno@clisp.org>
3017
3018         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3019         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3020         This disables an xlc optimization that was causing wrong test results.
3021         Reported by Rainer Tammer.
3022
3023 2010-07-31  Bruno Haible  <bruno@clisp.org>
3024
3025         iconv: Work around AIX 6.1..7.1 bug.
3026         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3027         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3028         cross-compiling, guess no on all versions of AIX.
3029         Reported by Rainer Tammer.
3030
3031 2010-07-31  Bruno Haible  <bruno@clisp.org>
3032
3033         readlink: Relax test a bit.
3034         * tests/test-readlink.h (test_readlink): Allow different errno value
3035         when readlink is called with a file name that ends in / and refers to
3036         a file.
3037         Suggested by Eric Blake.
3038         Reported by Rainer Tammer.
3039
3040 2010-07-31  Bruno Haible  <bruno@clisp.org>
3041
3042         copysign: Does not require -lm on glibc systems.
3043         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3044         gl_COMMON_DOUBLE_MATHFUNC.
3045         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3046
3047 2010-07-31  Bruno Haible  <bruno@clisp.org>
3048
3049         duplocale: Work around AIX 7.1 bug.
3050         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3051         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3052         * lib/duplocale.c (rpl_duplocale): Update comment.
3053         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3054         Reported by Rainer Tammer.
3055
3056 2010-07-30  Bruno Haible  <bruno@clisp.org>
3057
3058         dirfd: Avoid link error on AIX 7.1.
3059         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3060         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3061         exist, set REPLACE_DIRFD.
3062         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3063         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3064         * doc/posix-functions/dirfd.texi: Update.
3065         Reported by Rainer Tammer.
3066
3067 2010-07-30  Eric Blake  <eblake@redhat.com>
3068
3069         strtod: next round of AIX fixes
3070         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3071         exponent.
3072         * tests/test-strtod.c (main): Enhance tests.
3073         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3074         Reported by Rainer Tammer.
3075
3076         futimens: fix configure check
3077         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3078         Reported by Bruno Haible.
3079
3080 2010-07-30  Bruno Haible  <bruno@clisp.org>
3081
3082         getline: Update regarding AIX.
3083         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3084         Reported by Rainer Tammer.
3085
3086 2010-07-30  Bruno Haible  <bruno@clisp.org>
3087
3088         wcwidth: Drop replacement on AIX 7.
3089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3090         AIX 7.
3091         Reported by Rainer Tammer.
3092
3093 2010-07-30  Bruno Haible  <bruno@clisp.org>
3094
3095         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3096         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3097         a 'char *'.
3098         Reported by Rainer Tammer.
3099
3100 2010-07-30  Bruno Haible  <bruno@clisp.org>
3101
3102         unlink: Update regarding AIX.
3103         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3104         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3105         Reported by Rainer Tammer.
3106
3107 2010-07-30  Bruno Haible  <bruno@clisp.org>
3108
3109         symlink: Update regarding AIX.
3110         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3111         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3112         Reported by Rainer Tammer.
3113
3114 2010-07-30  Bruno Haible  <bruno@clisp.org>
3115
3116         strndup: Update regarding AIX.
3117         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3118         AIX 7.
3119         Reported by Rainer Tammer.
3120
3121 2010-07-30  Bruno Haible  <bruno@clisp.org>
3122
3123         stat: Update regarding AIX.
3124         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3125         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3126         Reported by Rainer Tammer.
3127
3128 2010-07-30  Bruno Haible  <bruno@clisp.org>
3129
3130         truncl: Fix autoconf test.
3131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3132         whether truncl works.
3133         Reported by Rainer Tammer.
3134
3135 2010-07-30  Bruno Haible  <bruno@clisp.org>
3136
3137         round: Update regarding AIX.
3138         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3139         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3140         Reported by Rainer Tammer.
3141
3142 2010-07-30  Bruno Haible  <bruno@clisp.org>
3143
3144         rename: Update regarding AIX.
3145         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3146         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3147         Reported by Rainer Tammer.
3148
3149 2010-07-30  Bruno Haible  <bruno@clisp.org>
3150
3151         printf.m4: Update regarding AIX.
3152         * m4/printf.m4: Update comments regarding AIX.
3153         Reported by Rainer Tammer.
3154
3155 2010-07-30  Bruno Haible  <bruno@clisp.org>
3156
3157         iconv: Update regarding AIX.
3158         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3159         AIX 7.
3160         Reported by Rainer Tammer.
3161
3162 2010-07-30  Bruno Haible  <bruno@clisp.org>
3163
3164         getopt: Update regarding AIX.
3165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3166         no on AIX.
3167         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3168         Reported by Rainer Tammer.
3169
3170 2010-07-30  Bruno Haible  <bruno@clisp.org>
3171
3172         ldexpl; Update regarding AIX.
3173         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3174         on AIX 7.
3175         Reported by Rainer Tammer.
3176
3177 2010-07-30  Bruno Haible  <bruno@clisp.org>
3178
3179         frexpl: Update regarding AIX.
3180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3181         on AIX 7.
3182         Reported by Rainer Tammer.
3183
3184 2010-07-30  Bruno Haible  <bruno@clisp.org>
3185
3186         open, fopen: Update regarding AIX.
3187         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3188         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3189         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3190         * doc/posix-functions/fopen.texi: Likewise.
3191         Reported by Rainer Tammer.
3192
3193 2010-07-30  Bruno Haible  <bruno@clisp.org>
3194
3195         chown: Update doc regarding AIX.
3196         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3197         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3198         Reported by Rainer Tammer.
3199
3200 2010-07-30  Eric Blake  <eblake@redhat.com>
3201
3202         strtod: fix bug in replacement function on AIX
3203         * lib/strtod.c (strtod): Special case broken "0x" parse in
3204         underlying strtod.
3205         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3206         * doc/posix-functions/strtod.texi (strtod): Likewise.
3207         Reported by Rainer Tammer.
3208
3209 2010-07-30  Bruno Haible  <bruno@clisp.org>
3210
3211         mbrlen: Fix cross-compilation guess for AIX.
3212         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3213         guess. Leftover from 2008-12-22.
3214
3215 2010-07-30  Bruno Haible  <bruno@clisp.org>
3216
3217         mbrtowc: Fix cross-compilation guess for AIX.
3218         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3219         guess. Leftover from 2008-12-21.
3220
3221 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3222
3223         init.sh: work around trap limitation of some shells
3224         * tests/init.sh (setup_): Move exit trap outside of shell function.
3225
3226 2010-07-29  Eric Blake  <eblake@redhat.com>
3227
3228         strtod: aid debugging
3229         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3230         understanding why strtod is rejected.
3231
3232 2010-07-28  Bruno Haible  <bruno@clisp.org>
3233
3234         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3235         * lib/unistr/u8-chr.c: Include <string.h>.
3236         * tests/unistr/test-u8-chr.c: Likewise.
3237         * tests/unistr/test-u16-chr.c: Likewise.
3238         * tests/unistr/test-u32-chr.c: Likewise.
3239         * tests/unistr/test-u8-strchr.c: Likewise.
3240         * tests/unistr/test-u16-strchr.c: Likewise.
3241         * tests/unistr/test-u32-strchr.c: Likewise.
3242         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3243         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3244         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3245         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3246
3247 2010-07-28  Bruno Haible  <bruno@clisp.org>
3248
3249         Use spaces for indentation, not tabs.
3250         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3251
3252 2010-07-27  Bruno Haible  <bruno@clisp.org>
3253
3254         mbspcasecmp: Fix function specification.
3255         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3256         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3257         Reported by Eric Blake <eblake@redhat.com>.
3258
3259 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3260
3261         timespec: use cast and not conditional, as truncation isn't possible
3262         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3263         instead of a conditional.  Comment about the situation in more detail.
3264         This undoes most of the 2009-10-29 patch.
3265
3266 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3267
3268         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3269         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3270         * lib/unistr/u8-strchr.c: Likewise.
3271         * modules/unistr/u8-chr: Depend on memchr.
3272
3273         unistr/u*-strchr: add tests
3274         * modules/unistr/u8-strchr-tests: New file.
3275         * modules/unistr/u16-strchr-tests: New file.
3276         * modules/unistr/u32-strchr-tests: New file.
3277         * tests/unistr/test-strchr.h: New file.
3278         * tests/unistr/test-u8-strchr.c: New file.
3279         * tests/unistr/test-u16-strchr.c: New file.
3280         * tests/unistr/test-u32-strchr.c: New file.
3281
3282         unistr/u*-chr: test multibyte sequences more
3283         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3284         test vector.
3285         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3286         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3287         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3288
3289         unistr/u*-chr: test multibyte sequences
3290         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3291
3292         unistr/u*-chr: prepare for multibyte tests
3293         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3294         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3295         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3296         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3297         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3298         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3299
3300 2010-07-18  Bruno Haible  <bruno@clisp.org>
3301
3302         unistr/u8-strchr: Optimize non-ASCII argument case.
3303         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3304         because the first byte often matches anyway.
3305         Reported by Pádraig Brady <P@draigbrady.com>.
3306
3307 2010-07-15  Karl Berry  <karl@gnu.org>
3308
3309         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3310
3311 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3312
3313         getcwd: on Solaris, work better if ancestors are inaccessible
3314         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3315         buffer and size, try again with a large buffer.  This works better
3316         on Solaris, since its getcwd succeeds even if the path to the root
3317         is inaccessible, and this is helpful in common cases such as .zfs
3318         hidden directories.  Problem reported by J Chapman Flack in
3319         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3320         Use system getcwd if it's declared, not merely if it's partly
3321         working; use the partly-working test only to avoid needless effort
3322         if the system getcwd fails.
3323         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3324         comment that was already obsolete and is now even more obsolete.
3325         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3326         now might call strdup.
3327
3328 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3329
3330         pthread: Add enough so that coreutils/src/sort.c compiles.
3331         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3332         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3333         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3334         Include <sys/types.h>, in case it defines pthread_t.
3335         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3336         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3337         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3338         (pthread_rwlockattr_t, pthread_spinlock_t):
3339         New typedefs, if HAVE_PTHREAD_T is not defined.
3340         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3341         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3342         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3343         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3344         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3345         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3346         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3347         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3348         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3349         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3350         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3351         New macros.
3352         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3353         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3354         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3355         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3356         (pthread_spin_unlock): New dummy functions.
3357         (pthread_create): Return EAGAIN; don't set errno.
3358         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3359         require AC_C_INLINE.
3360         * modules/pthread (Depends-on): Add sched, time.
3361         (pthread.h): Use AM_V_GEN.
3362
3363 2010-07-13  Bruno Haible  <bruno@clisp.org>
3364
3365         striconveh: Don't malloc memory if the result buffer is sufficient.
3366         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3367         buffer if its size is sufficient.
3368         Reported by Ludovic Courtès <ludo@gnu.org>.
3369
3370 2010-07-13  Bruno Haible  <bruno@clisp.org>
3371
3372         strtod: Add safety check.
3373         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3374
3375 2010-07-12  Bruno Haible  <bruno@clisp.org>
3376
3377         Unify tests that set gl_cv_func_ldexpl_no_libm.
3378         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3379         gl_FUNC_LDEXPL.
3380         (gl_FUNC_LDEXPL): Invoke it.
3381         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3382
3383 2010-07-12  Bruno Haible  <bruno@clisp.org>
3384
3385         Unify tests that set gl_cv_func_ldexp_no_libm.
3386         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3387         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3388         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3389         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3390         * modules/strtod (Files): Add m4/ldexp.m4.
3391
3392 2010-07-12  Bruno Haible  <bruno@clisp.org>
3393
3394         Unify tests that set gl_cv_func_frexpl_no_libm.
3395         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3396         gl_FUNC_FREXPL_NO_LIBM.
3397         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3399
3400 2010-07-12  Bruno Haible  <bruno@clisp.org>
3401
3402         Unify tests that set gl_cv_func_frexp_no_libm.
3403         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3404         gl_FUNC_FREXP_NO_LIBM.
3405         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3406         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3407
3408 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3409
3410         memcoll: clarify sizes versus lengths, document better, and tweak perf
3411         * lib/memcoll.c (strcoll_loop, memcoll0):
3412         Improve quality of descriptive comments.  Name variables
3413         consistently as to whether they are lengths (which do not include
3414         terminating null) versus sizes (which do).
3415         * lib/xmemcoll.c (xmemcoll0): Likewise.
3416         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3417         returned when s1size == 0; this is easier to compile and saves
3418         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3419
3420 2010-07-12  Bruno Haible  <bruno@clisp.org>
3421
3422         Tests for module '_Exit'.
3423         * modules/_Exit-tests: New file.
3424         * tests/test-_Exit.sh: New file.
3425         * tests/test-_Exit.c: New file.
3426
3427         New module '_Exit'.
3428         * lib/stdlib.in.h (__attribute__): New macro.
3429         (_Exit): New declaration.
3430         * lib/_Exit.c: New file.
3431         * m4/_Exit.m4: New file.
3432         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3433         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3434         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3435         * modules/_Exit: New file.
3436         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3437         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3438
3439 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3440
3441         strtod: make it more-accurate typically, and don't require libm
3442         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3443         Include limits.h.  Don't include string.h.
3444         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3445         (locale_isspace): New function, so that no casts are needed to
3446         check whether *s is a space.
3447         (ldexp): Provide an unused dummy if not available.
3448         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3449         (strtod): Use them.  This implementation prefers to use the
3450         underlying strtod if available, falling back on our own code
3451         only to fix known bugs.  This is more likely to produce an
3452         accurate result.  Also, it avoids the use of libm functions.
3453         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3454         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3455         was absent, but it caused a test failure with coreutils.
3456         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3457         with libm.
3458         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3459         * modules/strtod-tests (Makefile.am): Likewise.
3460
3461 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3462             Bruno Haible  <bruno@clisp.org>
3463
3464         unistr/u8-strchr: Optimize ASCII argument case.
3465         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3466
3467 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3468
3469         (x)memcoll: minor tweaks
3470         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3471         is after the type that it qualifies.
3472         (memcoll0): Likewise.
3473         * lib/memcoll.h (memcoll0): Likewise.
3474         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3475         * lib/xmemcoll.h (xmemcoll0): Likewise.
3476         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3477         differs from memcoll in that the NUL byte is part of the argument.
3478         Omit the abort-checks, as performance is a real issue here.  Plus,
3479         the checks were wrong anyway (an off-by-one error).  Omit local
3480         variable 'diff', as it's a bit clearer that way.
3481         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3482         no longer needed.
3483
3484 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3485
3486         (x)memcoll: speedup when input is known to be NUL delimited
3487         * lib/memcoll.c: Include stdlib.
3488         (memcoll0) New function.
3489         (strcoll_loop) New function, refactored for use in both memcoll
3490         and memcoll0.
3491         * lib/memcoll.h: Add prototype for memcoll0.
3492         * lib/xmemcoll.c: (xmemcoll0) New function.
3493         (collate_error) New function, refactored for use in both xmemcoll
3494         and xmemcoll0.
3495         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3496         * m4/memcoll.m4: add inline invocation.
3497
3498 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3499
3500         * build-aux/bootstrap: Remove any local translations
3501         from the translation project synchronization directory,
3502         so that local only translations are not distributed.
3503
3504 2010-07-04  Bruno Haible  <bruno@clisp.org>
3505
3506         fsusage: Clarify which code applies to which platforms.
3507         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3508         platform.
3509         * lib/fsusage.c (get_fs_usage): Likewise.
3510
3511 2010-07-04  Bruno Haible  <bruno@clisp.org>
3512
3513         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3514         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3515         Reported by Martin Lambers <marlam@marlam.de>.
3516
3517 2010-07-04  Jim Meyering  <meyering@redhat.com>
3518
3519         hash: once again explicitly disallow insertion of NULL
3520         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3521         inserting a NULL pointer cannot work with these functions.
3522         Add a comment with details.
3523         This reverts part of the 2010-07-01 commit, 5bef1a35
3524         "hash: extend module to deal with non-pointer keys".
3525
3526 2010-07-01  Bruno Haible  <bruno@clisp.org>
3527
3528         stdbool: Update doc.
3529         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3530         Info from Christian Weisgerber <naddy@mips.inka.de>.
3531
3532 2010-07-01  Jim Meyering  <meyering@redhat.com>
3533
3534         hash: extend module to deal with non-pointer keys
3535         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3536         but that allows insertion of non-pointer entries.
3537         Do not disallow an ENTRY value of NULL.
3538         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3539         * lib/hash.h (hash_insert0): Declare.
3540
3541 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3542
3543         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3544         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3545         not present (i.e. with autoconf 2.59 and when using gettextize, not
3546         gnulib), require AC_GNU_SOURCE instead.
3547
3548 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3549
3550         idpriv-drop: Fix tests.
3551         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3552         not to the test-idpriv-droptemp program.
3553
3554 2010-06-29  Bruno Haible  <bruno@clisp.org>
3555
3556         string: Fix syntax error with g++ 2.96.
3557         * lib/string.in.h (__pure__): Remove definition.
3558         (_GL_ATTRIBUTE_PURE): New macro.
3559         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3560         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3561         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3562
3563 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3564
3565         unitypes: Fix bug introduced on 2010-05-18.
3566         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3567
3568 2010-06-22  Eric Blake  <eblake@redhat.com>
3569
3570         memmem: slight optimization
3571         * lib/str-two-way.h (critical_factorization): Update comments.
3572         Reduce work during factorization phase.
3573         Reported by Carlos Bueno <carlos@bueno.org>.
3574
3575 2010-06-21  Bruno Haible  <bruno@clisp.org>
3576
3577         Fix HAVE_CALLOC_POSIX misnomer.
3578         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3579         !HAVE_CALLOC_POSIX.
3580         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3581         HAVE_CALLOC_POSIX.
3582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3583         instead of HAVE_CALLOC_POSIX.
3584         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3585         HAVE_CALLOC_POSIX.
3586
3587         Use modern idiom for calloc() replacement.
3588         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3589         AC_FUNC_CALLOC.
3590         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3591         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3592         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3593         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3594         (gl_REPLACE_CALLOC): New macro.
3595
3596 2010-06-21  Bruno Haible  <bruno@clisp.org>
3597
3598         Fix HAVE_REALLOC_POSIX misnomer.
3599         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3600         !HAVE_REALLOC_POSIX.
3601         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3602         HAVE_REALLOC_POSIX.
3603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3604         instead of HAVE_REALLOC_POSIX.
3605         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3606         HAVE_REALLOC_POSIX.
3607
3608         Use modern idiom for realloc() replacement.
3609         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3610         AC_FUNC_REALLOC.
3611         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3612         Autoconf's AC_FUNC_REALLOC.
3613         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3614         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3615         (gl_REPLACE_REALLOC): New macro.
3616         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3617
3618 2010-06-21  Bruno Haible  <bruno@clisp.org>
3619
3620         Fix HAVE_MALLOC_POSIX misnomer.
3621         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3622         !HAVE_MALLOC_POSIX.
3623         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3624         HAVE_MALLOC_POSIX.
3625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3626         instead of HAVE_MALLOC_POSIX.
3627         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3628         HAVE_MALLOC_POSIX.
3629
3630         Use modern idiom for malloc() replacement.
3631         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3632         AC_FUNC_MALLOC.
3633         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3634         Autoconf's AC_FUNC_MALLOC.
3635         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3636         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3637         (gl_REPLACE_MALLOC): New macro.
3638         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3639
3640 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3641
3642         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3643         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3644         This macro takes 3 arguments, not 4.
3645
3646 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3647
3648         ipv6: fix detection under mingw
3649         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3650         in6_addr.
3651
3652 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3653
3654         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3655         that strtod() works when cross-compiling to a glibc version known
3656         to work.
3657
3658 2010-06-15  Bruno Haible  <bruno@clisp.org>
3659
3660         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3661
3662 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3663
3664         select: Correct timeout.
3665         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3666
3667 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3668
3669         git-version-gen: init shell var to avoid env var influence
3670         * build-aux/git-version-gen (v): Init shell var to empty.
3671
3672 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         priv-set: Don't assume that priv.h exists merely because getppriv does.
3675         See Jan Andersen's bug report about AIX 5L in
3676         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3677         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3678         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3679         * lib/priv-set.h: Likewise.
3680         * tests/test-priv-set.c: Likewise.
3681
3682 2010-06-13  Bruno Haible  <bruno@clisp.org>
3683
3684         relocatable: Make it easier to test whether to install wrappers.
3685         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3686         RELOCATABLE_VIA_WRAPPER.
3687
3688 2010-06-13  Bruno Haible  <bruno@clisp.org>
3689
3690         gnulib-tool: Display specified modules and dependencies differently.
3691         * gnulib-tool (func_show_module_list): New function.
3692         (func_import, func_create_testdir): Invoke it.
3693         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3694
3695 2010-06-13  Bruno Haible  <bruno@clisp.org>
3696
3697         gnulib-tool: Align code of func_import and func_create_testdir.
3698         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3699         specified_modules.
3700
3701 2010-06-12  Jim Meyering  <meyering@redhat.com>
3702
3703         test-inttostr: avoid spurious failure on Solaris 9
3704         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3705         to accept "%ju".  Reported by Bruno Haible.
3706
3707 2010-06-11  Jim Meyering  <meyering@redhat.com>
3708
3709         test-sys_socket: mark variables as used more readably
3710         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3711         as "used" explicitly via (void) statement casts.  This is more
3712         readable than using them in an artificial return expression.
3713         Suggestion from Bruno Haible.
3714
3715 2010-06-11  Bruno Haible  <bruno@clisp.org>
3716
3717         Avoid some more warnings from "gcc -Wwrite-strings".
3718         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3719         to 'const char *'.
3720         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3721         * tests/test-c-strcasestr.c (main): Likewise.
3722         * tests/test-mbscasestr1.c (main): Likewise.
3723         * tests/test-mbscasestr2.c (main): Likewise.
3724         * tests/test-memmem.c (main): Likewise.
3725         * tests/test-strstr.c (main): Likewise.
3726         * tests/test-strcasestr.c (main): Likewise.
3727
3728 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3729
3730         init.sh: change framework_failure_ to fail with status 99, not 1
3731         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3732         automake's parallel-tests rule that this is an unexpected failure,
3733         even if the test is listed in XFAIL_TESTS.
3734
3735 2010-06-11  Jim Meyering  <meyering@redhat.com>
3736
3737         test-inttostr: avoid warnings about 4-6KB literal strings
3738         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3739         Include "macros.h", for its definition of ASSERT.
3740         (CK): s/assert/ASSERT/
3741         * modules/inttostr-tests (Files): Add macros.h.
3742
3743         init.sh: don't use $ME_ or skip_ before they are defined
3744         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3745         their first uses.  Also hoist their companions: warn_, fail_,
3746         framework_failure_, $stderr_fileno.  Prompted by a patch from
3747         Stefano Lattarini.
3748
3749         test-sys_socket: avoid set-but-not-used warnings from gcc
3750         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3751         avoid warning about set-but-not-used variables.
3752
3753         test-xvasprintf: avoid 'const' discard warnings
3754         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3755         "const" when assigning from literal strings.
3756         (test_xasprintf): Add "void" in function argument list to placate
3757         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3758
3759         tests: avoid compilation warnings in argmatch and exclude tests...
3760         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3761         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3762         Since it always exits, declare with the "noreturn" attribute.
3763         * tests/test-argmatch.c: Likewise.
3764
3765         tests: avoid 'const' discard warnings in mbsstr tests
3766         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3767         * tests/test-mbsstr2.c (main): Likewise.
3768
3769         test-verify: avoid warning from gcc's -Wmissing-declarations
3770         * tests/test-verify.c (function): Declare to be static.
3771
3772         test-inttostr.c: include <string.h> for use of strcmp
3773         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3774
3775         test-linkat: avoid failed assertion on "other" architectures
3776         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3777         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3778         sparc: https://bugs.launchpad.net/bugs/591968
3779
3780 2010-06-11  Jim Meyering  <meyering@redhat.com>
3781
3782         printf.m4: avoid autoconf's "Expanded Before Required" warning
3783         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3784         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3785         autoconf warning.
3786
3787 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3788
3789         Replacement header templates are now named with ".in", not "_".
3790         * doc/gnulib-intro.texi: Correct.
3791
3792 2010-06-10  Jim Meyering  <meyering@redhat.com>
3793
3794         inttostr-tests: depend on snprintf, not snprintf-posix
3795         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3796         snprintf-posix, to avoid this aclocal failure:
3797           missing file gnulib-tests/vasnprintf.c
3798           configure.ac:45: error: expected source file, required through \
3799           AC_LIBSOURCES, not found
3800
3801 2010-06-10  Jim Meyering  <meyering@redhat.com>
3802
3803         inttostr: add a new function, inttostr, and tests
3804         The namesake function was not available.  The existence of the
3805         template file, inttostr.c makes its addition nontrivial.
3806         * lib/anytostr.c: Rename from inttostr.c.
3807         (anytostr): Rename from inttostr.
3808         * lib/inttostr.c: New file.
3809         * modules/inttostr (Files): Add anytostr.c.
3810         (Makefile.am): Set lib_SOURCES instead of ...
3811         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3812         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3813         * lib/offtostr.c: Likewise.
3814         * lib/uinttostr.c: Likewise.
3815         * lib/umaxtostr.c: Likewise.
3816         * modules/inttostr-tests: New file.
3817         * tests/test-inttostr.c: New file.  Test these functions.
3818
3819 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3820             Bruno Haible  <bruno@clisp.org>
3821
3822         Add "Extending Gnulib" chapter to manual.
3823         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3824         chapter.
3825         (Extending Gnulib): New chapter.
3826         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3827         chapter.
3828
3829 2010-06-09  Bruno Haible  <bruno@clisp.org>
3830
3831         Avoid relocwrapper link errors due to gnulib replacement functions.
3832         * lib/areadlink.c: Use the system's malloc, realloc functions.
3833         (areadlink): Set errno to ENOMEM explicitly.
3834         * modules/areadlink (Depends-on): Remove malloc-posix.
3835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3836
3837 2010-06-09  Bruno Haible  <bruno@clisp.org>
3838
3839         Avoid relocwrapper link errors due to gnulib replacement functions.
3840         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3841         * lib/malloca.c: Likewise.
3842         * lib/relocatable.c: Likewise.
3843         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3844         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3845         * lib/setenv.c: Use the system's malloc, realloc functions.
3846         * lib/strerror.c: Use the system's sprintf function.
3847         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3848
3849 2010-06-04  Bruno Haible  <bruno@clisp.org>
3850
3851         Prefer documented low-level autoconf macro names.
3852         * m4/lib-link.m4: Use m4_translit instead of translit.
3853         * m4/environ.m4: Likewise.
3854         * m4/mathfunc.m4: Likewise.
3855         * m4/onceonly.m4: Likewise.
3856         * m4/stdint.m4: Likewise.
3857         Suggested by Eric Blake.
3858
3859 2010-06-04  Martin Lambers  <marlam@marlam.de>
3860             Bruno Haible  <bruno@clisp.org>
3861
3862         havelib: Allow library names with '+' characters.
3863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3864         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3865
3866 2010-06-09  Bruno Haible  <bruno@clisp.org>
3867
3868         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3869         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3870         realloc failed.
3871
3872 2010-06-08  Peter Simons  <simons@cryp.to>
3873
3874         maint.mk: make the news-check rule more configurable
3875         * top/maint.mk (news-check-lines-spec) New variable.
3876         (news-check): Use "sed -n 1,10p" in place of "head".
3877
3878 2010-06-07  Jim Meyering  <meyering@redhat.com>
3879
3880         do-release-commit-and-tag: fix typo in --help
3881         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3882
3883         regex: avoid new dead-code warning with gcc-4.6.0
3884         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3885         if-block containing a while-loop.  It's been unused for at least
3886         5 years.
3887
3888 2010-06-05  Bruno Haible  <bruno@clisp.org>
3889
3890         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3891         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3892
3893 2010-06-04  Bruno Haible  <bruno@clisp.org>
3894
3895         Update to GNU gettext 0.18.1.
3896         * modules/gettext (configure.ac): Require gettext infrastructure from
3897         version 0.18.1.
3898
3899 2010-06-03  Bruno Haible  <bruno@clisp.org>
3900
3901         Don't use AC_LIBOBJ with file names in subdirectories.
3902         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3903         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3904         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3905         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3906         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3907         gl_LIBUNISTRING_LIBSOURCE.
3908         (Makefile.am): Augment lib_SOURCES here, conditionally.
3909         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3910
3911 2010-06-03  Bruno Haible  <bruno@clisp.org>
3912
3913         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3914         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3915         expansion does not end with a newline.
3916         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3917         unnecessary newline.
3918
3919 2010-06-03  Bruno Haible  <bruno@clisp.org>
3920
3921         Reduce dependencies.
3922         * tests/test-quotearg.h: New file, extracted from
3923         tests/test-quotearg.c.
3924         * tests/test-quotearg-simple.c: New file, extracted from
3925         tests/test-quotearg.c.
3926         * tests/test-quotearg.c: Don't include <ctype.h>.
3927         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3928         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3929         use_quote_double_quotes, use_quotearg_colon): Moved to
3930         tests/test-quotearg.h.
3931         (results_g, flag_results, custom_quotes, custom_results): Moved
3932         to tests/test-quotearg-simple.c.
3933         (main): Moved the part that does not depend on gettext to
3934         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3935         performed.
3936         * modules/quotearg-simple: New file.
3937         * modules/quotearg-simple-tests: New file.
3938         * modules/quotearg (Depends-on): Add quotearg-simple.
3939         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3940         (Files): Add tests/test-quotearg.h.
3941         Reported by Paolo Bonzini.
3942
3943 2010-06-03  Bruno Haible  <bruno@clisp.org>
3944
3945         Reduce dependencies.
3946         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3947
3948 2010-06-03  Bruno Haible  <bruno@clisp.org>
3949
3950         time: Undefine more broken macros.
3951         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3952         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3953         Reported by Eric Blake.
3954
3955 2010-06-03  Bruno Haible  <bruno@clisp.org>
3956
3957         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3958         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3959         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3960         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3961         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3962         Reported by Ludovic Courtès <ludo@gnu.org>.
3963
3964 2010-06-02  Eric Blake  <eblake@redhat.com>
3965
3966         time: work with mingw + pthreads-win32 library
3967         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3968         if timespec is defined only in pthread.h.
3969         * modules/time (Makefile.am): Substitute it.
3970         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3971         <pthread.h>, when needed.
3972         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3973         from the library.
3974
3975 2010-05-31  Bruno Haible  <bruno@clisp.org>
3976
3977         Avoid expanding two macros in the wrong order.
3978         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3979         gl_LIBUNISTRING if it is defined.
3980         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3981         autoconf >= 2.64.
3982         Reported by Ludovic Courtès <ludo@gnu.org>.
3983
3984 2010-05-27  Jim Meyering  <meyering@redhat.com>
3985
3986         maint.mk: also prohibit "#undef" of always-defined symbols
3987         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3988         Allow more than one space before the symbol name.
3989         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3990         the regexp uses alternation.
3991
3992 2010-05-26  Eric Blake  <eblake@redhat.com>
3993
3994         maint.mk: avoid echo -e
3995         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3996         Convert all uses of echo -* to printf.
3997         Reported by Matthias Bolte.
3998
3999 2010-05-25  Bruno Haible  <bruno@clisp.org>
4000
4001         Update to GNU gettext 0.18, part 2.
4002         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4003         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4004
4005 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4006
4007         Add missing include in test-pwrite.c.
4008         * tests/test-pwrite.c: Include string.h, for strcmp.
4009
4010 2010-05-24  Bruno Haible  <bruno@clisp.org>
4011
4012         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4013
4014 2010-05-24  Bruno Haible  <bruno@clisp.org>
4015
4016         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4017         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4018         iconveh_error argument.
4019         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4020         U_STRCONV_TO_LOCALE.
4021         * lib/unistr/u16-strcoll.c: Likewise.
4022         * lib/unistr/u32-strcoll.c: Likewise.
4023         * modules/unistr/u8-strcoll (Depends-on): Add
4024         uniconv/u8-strconv-to-enc, localcharset. Remove
4025         uniconv/u8-strconv-to-locale.
4026         (configure.ac): Bump version number.
4027         * modules/unistr/u16-strcoll (Depends-on): Add
4028         uniconv/u16-strconv-to-enc, localcharset. Remove
4029         uniconv/u16-strconv-to-locale.
4030         (configure.ac): Bump version number.
4031         * modules/unistr/u32-strcoll (Depends-on): Add
4032         uniconv/u32-strconv-to-enc, localcharset. Remove
4033         uniconv/u32-strconv-to-locale.
4034         (configure.ac): Bump version number.
4035
4036 2010-05-24  Bruno Haible  <bruno@clisp.org>
4037
4038         Avoid a test failure on NetBSD 5.0.
4039         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4040         an iconv() bug.
4041
4042 2010-05-24  Bruno Haible  <bruno@clisp.org>
4043
4044         Adjust #include directive style.
4045         * modules/regex (Includes): Recommend to write <regex.h>.
4046
4047 2010-05-24  Bruno Haible  <bruno@clisp.org>
4048
4049         regex: Don't require alloca.
4050         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4051         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4052         only inside if (0).
4053
4054 2010-05-23  Jim Meyering  <meyering@redhat.com>
4055
4056         test-renameat.c: include <sys/stat.h>
4057         * tests/test-renameat.c: Include <sys/stat.h>; required for
4058         definition of S_IS* macros.
4059
4060 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4061
4062         Update maintainer documentation for 'relocatable-prog' module.
4063         * doc/relocatable-maint.texi: Update.
4064         Comments by Bruno Haible.
4065
4066 2010-05-23  Bruno Haible  <bruno@clisp.org>
4067
4068         git-merge-changelog: Enable --split-merged-entry by default.
4069         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4070         (usage): Don't mention this option any more.
4071         Reported by Ralf Wildenhues.
4072
4073 2010-05-23  Jim Meyering  <meyering@redhat.com>
4074
4075         test-pwrite: do not leave behind a test file named "out"
4076         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4077         The trivial-looking use of init.sh is really necessary.
4078         It ensures that the temporary file, "out", is created in
4079         a temporary directory, and removed upon termination.
4080         * tests/test-pwrite.sh: Re-add file.
4081         * modules/pwrite-tests: Reference it.
4082
4083 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4084
4085         Fix output redirection buglet in init.sh.
4086         * tests/init.sh: Fix redirection of stderr.
4087
4088 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4089
4090         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4091
4092 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4093
4094         * modules/valgrind-tests: New file.
4095         * m4/valgrind-tests.m4: New file.
4096         * doc/valgrind-tests.texi: New file.
4097         * doc/gnulib.texi (Running self-tests under valgrind): New
4098         section.
4099
4100 2010-05-19  Bruno Haible  <bruno@clisp.org>
4101
4102         Clean up dead code in recent commit.
4103         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4104         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4105         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4106         Suggested by Paolo Bonzini.
4107
4108 2010-05-19  Bruno Haible  <bruno@clisp.org>
4109
4110         Avoid valgrind error reports from libunistring.
4111         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4112         * modules/libunistring (Files): Add it.
4113         * modules/libunistring-optional (Files): Likewise.
4114
4115 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4116             Bruno Haible  <bruno@clisp.org>
4117
4118         New module 'libunistring-optional'.
4119         * modules/libunistring-optional: New file.
4120         * m4/libunistring-base.m4: New file.
4121         * m4/libunistring-optional.m4: New file.
4122         * lib/unicase.in.h: Renamed from lib/unicase.h.
4123         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4124         * lib/unictype.in.h: Renamed from lib/unictype.h.
4125         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4126         * lib/uniname.in.h: Renamed from lib/uniname.h.
4127         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4128         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4129         * lib/unistr.in.h: Renamed from lib/unistr.h.
4130         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4131         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4132         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4133         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4134         gl_LIBUNISTRING. If the library was found, determine the installed
4135         version and set LIBUNISTRING_VERSION.
4136         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4137         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4138         handle a configuration option --with-included-libunistring.
4139         * modules/libunistring (Files): Add m4/absolute-header.m4.
4140         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4141         Add m4/libunistring-base.m4.
4142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4143         (Makefile.am): Build unicase.h from unicase.in.h.
4144         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4145         Add m4/libunistring-base.m4.
4146         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4147         (Makefile.am): Build uniconv.h from uniconv.in.h.
4148         * modules/unictype/base (Files): Use unictype.in.h instead of
4149         unictype.h. Add m4/libunistring-base.m4.
4150         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4151         (Makefile.am): Build unictype.h from unictype.in.h.
4152         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4153         Add m4/libunistring-base.m4.
4154         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4155         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4156         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4157         Add m4/libunistring-base.m4.
4158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4159         (Makefile.am): Build uniname.h from uniname.in.h.
4160         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4161         Add m4/libunistring-base.m4.
4162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4163         (Makefile.am): Build uninorm.h from uninorm.in.h.
4164         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4165         unistdio.h. Add m4/libunistring-base.m4.
4166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4167         (Makefile.am): Build unistdio.h from unistdio.in.h.
4168         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4169         Add m4/libunistring-base.m4.
4170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4171         (Makefile.am): Build unistr.h from unistr.in.h.
4172         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4173         Add m4/libunistring-base.m4.
4174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4175         (Makefile.am): Build unitypes.h from unitypes.in.h.
4176         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4177         Add m4/libunistring-base.m4.
4178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4179         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4180         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4181         uniwidth.h. Add m4/libunistring-base.m4.
4182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4183         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4184         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4185         instead of augmenting lib_SOURCES.
4186         * modules/unicase/empty-suffix-context: Likewise.
4187         * modules/unicase/locale-language: Likewise.
4188         * modules/unicase/tolower: Likewise.
4189         * modules/unicase/totitle: Likewise.
4190         * modules/unicase/toupper: Likewise.
4191         * modules/unicase/u8-casecmp: Likewise.
4192         * modules/unicase/u8-casecoll: Likewise.
4193         * modules/unicase/u8-casefold: Likewise.
4194         * modules/unicase/u8-casexfrm: Likewise.
4195         * modules/unicase/u8-ct-casefold: Likewise.
4196         * modules/unicase/u8-ct-tolower: Likewise.
4197         * modules/unicase/u8-ct-totitle: Likewise.
4198         * modules/unicase/u8-ct-toupper: Likewise.
4199         * modules/unicase/u8-is-cased: Likewise.
4200         * modules/unicase/u8-is-casefolded: Likewise.
4201         * modules/unicase/u8-is-lowercase: Likewise.
4202         * modules/unicase/u8-is-titlecase: Likewise.
4203         * modules/unicase/u8-is-uppercase: Likewise.
4204         * modules/unicase/u8-prefix-context: Likewise.
4205         * modules/unicase/u8-suffix-context: Likewise.
4206         * modules/unicase/u8-tolower: Likewise.
4207         * modules/unicase/u8-totitle: Likewise.
4208         * modules/unicase/u8-toupper: Likewise.
4209         * modules/unicase/u16-casecmp: Likewise.
4210         * modules/unicase/u16-casecoll: Likewise.
4211         * modules/unicase/u16-casefold: Likewise.
4212         * modules/unicase/u16-casexfrm: Likewise.
4213         * modules/unicase/u16-ct-casefold: Likewise.
4214         * modules/unicase/u16-ct-tolower: Likewise.
4215         * modules/unicase/u16-ct-totitle: Likewise.
4216         * modules/unicase/u16-ct-toupper: Likewise.
4217         * modules/unicase/u16-is-cased: Likewise.
4218         * modules/unicase/u16-is-casefolded: Likewise.
4219         * modules/unicase/u16-is-lowercase: Likewise.
4220         * modules/unicase/u16-is-titlecase: Likewise.
4221         * modules/unicase/u16-is-uppercase: Likewise.
4222         * modules/unicase/u16-prefix-context: Likewise.
4223         * modules/unicase/u16-suffix-context: Likewise.
4224         * modules/unicase/u16-tolower: Likewise.
4225         * modules/unicase/u16-totitle: Likewise.
4226         * modules/unicase/u16-toupper: Likewise.
4227         * modules/unicase/u32-casecmp: Likewise.
4228         * modules/unicase/u32-casecoll: Likewise.
4229         * modules/unicase/u32-casefold: Likewise.
4230         * modules/unicase/u32-casexfrm: Likewise.
4231         * modules/unicase/u32-ct-casefold: Likewise.
4232         * modules/unicase/u32-ct-tolower: Likewise.
4233         * modules/unicase/u32-ct-totitle: Likewise.
4234         * modules/unicase/u32-ct-toupper: Likewise.
4235         * modules/unicase/u32-is-cased: Likewise.
4236         * modules/unicase/u32-is-casefolded: Likewise.
4237         * modules/unicase/u32-is-lowercase: Likewise.
4238         * modules/unicase/u32-is-titlecase: Likewise.
4239         * modules/unicase/u32-is-uppercase: Likewise.
4240         * modules/unicase/u32-prefix-context: Likewise.
4241         * modules/unicase/u32-suffix-context: Likewise.
4242         * modules/unicase/u32-tolower: Likewise.
4243         * modules/unicase/u32-totitle: Likewise.
4244         * modules/unicase/u32-toupper: Likewise.
4245         * modules/unicase/ulc-casecmp: Likewise.
4246         * modules/unicase/ulc-casecoll: Likewise.
4247         * modules/unicase/ulc-casexfrm: Likewise.
4248         * modules/uniconv/u8-conv-from-enc: Likewise.
4249         * modules/uniconv/u8-conv-to-enc: Likewise.
4250         * modules/uniconv/u8-strconv-from-enc: Likewise.
4251         * modules/uniconv/u8-strconv-from-locale: Likewise.
4252         * modules/uniconv/u8-strconv-to-enc: Likewise.
4253         * modules/uniconv/u8-strconv-to-locale: Likewise.
4254         * modules/uniconv/u16-conv-from-enc: Likewise.
4255         * modules/uniconv/u16-conv-to-enc: Likewise.
4256         * modules/uniconv/u16-strconv-from-enc: Likewise.
4257         * modules/uniconv/u16-strconv-from-locale: Likewise.
4258         * modules/uniconv/u16-strconv-to-enc: Likewise.
4259         * modules/uniconv/u16-strconv-to-locale: Likewise.
4260         * modules/uniconv/u32-conv-from-enc: Likewise.
4261         * modules/uniconv/u32-conv-to-enc: Likewise.
4262         * modules/uniconv/u32-strconv-from-enc: Likewise.
4263         * modules/uniconv/u32-strconv-from-locale: Likewise.
4264         * modules/uniconv/u32-strconv-to-enc: Likewise.
4265         * modules/uniconv/u32-strconv-to-locale: Likewise.
4266         * modules/unictype/bidicategory-byname: Likewise.
4267         * modules/unictype/bidicategory-name: Likewise.
4268         * modules/unictype/bidicategory-of: Likewise.
4269         * modules/unictype/bidicategory-test: Likewise.
4270         * modules/unictype/block-list: Likewise.
4271         * modules/unictype/block-test: Likewise.
4272         * modules/unictype/category-C: Likewise.
4273         * modules/unictype/category-Cc: Likewise.
4274         * modules/unictype/category-Cf: Likewise.
4275         * modules/unictype/category-Cn: Likewise.
4276         * modules/unictype/category-Co: Likewise.
4277         * modules/unictype/category-Cs: Likewise.
4278         * modules/unictype/category-L: Likewise.
4279         * modules/unictype/category-Ll: Likewise.
4280         * modules/unictype/category-Lm: Likewise.
4281         * modules/unictype/category-Lo: Likewise.
4282         * modules/unictype/category-Lt: Likewise.
4283         * modules/unictype/category-Lu: Likewise.
4284         * modules/unictype/category-M: Likewise.
4285         * modules/unictype/category-Mc: Likewise.
4286         * modules/unictype/category-Me: Likewise.
4287         * modules/unictype/category-Mn: Likewise.
4288         * modules/unictype/category-N: Likewise.
4289         * modules/unictype/category-Nd: Likewise.
4290         * modules/unictype/category-Nl: Likewise.
4291         * modules/unictype/category-No: Likewise.
4292         * modules/unictype/category-P: Likewise.
4293         * modules/unictype/category-Pc: Likewise.
4294         * modules/unictype/category-Pd: Likewise.
4295         * modules/unictype/category-Pe: Likewise.
4296         * modules/unictype/category-Pf: Likewise.
4297         * modules/unictype/category-Pi: Likewise.
4298         * modules/unictype/category-Po: Likewise.
4299         * modules/unictype/category-Ps: Likewise.
4300         * modules/unictype/category-S: Likewise.
4301         * modules/unictype/category-Sc: Likewise.
4302         * modules/unictype/category-Sk: Likewise.
4303         * modules/unictype/category-Sm: Likewise.
4304         * modules/unictype/category-So: Likewise.
4305         * modules/unictype/category-Z: Likewise.
4306         * modules/unictype/category-Zl: Likewise.
4307         * modules/unictype/category-Zp: Likewise.
4308         * modules/unictype/category-Zs: Likewise.
4309         * modules/unictype/category-and: Likewise.
4310         * modules/unictype/category-and-not: Likewise.
4311         * modules/unictype/category-byname: Likewise.
4312         * modules/unictype/category-name: Likewise.
4313         * modules/unictype/category-none: Likewise.
4314         * modules/unictype/category-of: Likewise.
4315         * modules/unictype/category-or: Likewise.
4316         * modules/unictype/category-test: Likewise.
4317         * modules/unictype/combining-class: Likewise.
4318         * modules/unictype/ctype-alnum: Likewise.
4319         * modules/unictype/ctype-alpha: Likewise.
4320         * modules/unictype/ctype-blank: Likewise.
4321         * modules/unictype/ctype-cntrl: Likewise.
4322         * modules/unictype/ctype-digit: Likewise.
4323         * modules/unictype/ctype-graph: Likewise.
4324         * modules/unictype/ctype-lower: Likewise.
4325         * modules/unictype/ctype-print: Likewise.
4326         * modules/unictype/ctype-punct: Likewise.
4327         * modules/unictype/ctype-space: Likewise.
4328         * modules/unictype/ctype-upper: Likewise.
4329         * modules/unictype/ctype-xdigit: Likewise.
4330         * modules/unictype/decimal-digit: Likewise.
4331         * modules/unictype/digit: Likewise.
4332         * modules/unictype/mirror: Likewise.
4333         * modules/unictype/numeric: Likewise.
4334         * modules/unictype/property-alphabetic: Likewise.
4335         * modules/unictype/property-ascii-hex-digit: Likewise.
4336         * modules/unictype/property-bidi-arabic-digit: Likewise.
4337         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4338         * modules/unictype/property-bidi-block-separator: Likewise.
4339         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4340         * modules/unictype/property-bidi-common-separator: Likewise.
4341         * modules/unictype/property-bidi-control: Likewise.
4342         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4343         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4344         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4345         * modules/unictype/property-bidi-european-digit: Likewise.
4346         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4347         * modules/unictype/property-bidi-left-to-right: Likewise.
4348         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4349         * modules/unictype/property-bidi-other-neutral: Likewise.
4350         * modules/unictype/property-bidi-pdf: Likewise.
4351         * modules/unictype/property-bidi-segment-separator: Likewise.
4352         * modules/unictype/property-bidi-whitespace: Likewise.
4353         * modules/unictype/property-byname: Likewise.
4354         * modules/unictype/property-combining: Likewise.
4355         * modules/unictype/property-composite: Likewise.
4356         * modules/unictype/property-currency-symbol: Likewise.
4357         * modules/unictype/property-dash: Likewise.
4358         * modules/unictype/property-decimal-digit: Likewise.
4359         * modules/unictype/property-default-ignorable-code-point: Likewise.
4360         * modules/unictype/property-deprecated: Likewise.
4361         * modules/unictype/property-diacritic: Likewise.
4362         * modules/unictype/property-extender: Likewise.
4363         * modules/unictype/property-format-control: Likewise.
4364         * modules/unictype/property-grapheme-base: Likewise.
4365         * modules/unictype/property-grapheme-extend: Likewise.
4366         * modules/unictype/property-grapheme-link: Likewise.
4367         * modules/unictype/property-hex-digit: Likewise.
4368         * modules/unictype/property-hyphen: Likewise.
4369         * modules/unictype/property-id-continue: Likewise.
4370         * modules/unictype/property-id-start: Likewise.
4371         * modules/unictype/property-ideographic: Likewise.
4372         * modules/unictype/property-ids-binary-operator: Likewise.
4373         * modules/unictype/property-ids-trinary-operator: Likewise.
4374         * modules/unictype/property-ignorable-control: Likewise.
4375         * modules/unictype/property-iso-control: Likewise.
4376         * modules/unictype/property-join-control: Likewise.
4377         * modules/unictype/property-left-of-pair: Likewise.
4378         * modules/unictype/property-line-separator: Likewise.
4379         * modules/unictype/property-logical-order-exception: Likewise.
4380         * modules/unictype/property-lowercase: Likewise.
4381         * modules/unictype/property-math: Likewise.
4382         * modules/unictype/property-non-break: Likewise.
4383         * modules/unictype/property-not-a-character: Likewise.
4384         * modules/unictype/property-numeric: Likewise.
4385         * modules/unictype/property-other-alphabetic: Likewise.
4386         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4387         * modules/unictype/property-other-grapheme-extend: Likewise.
4388         * modules/unictype/property-other-id-continue: Likewise.
4389         * modules/unictype/property-other-id-start: Likewise.
4390         * modules/unictype/property-other-lowercase: Likewise.
4391         * modules/unictype/property-other-math: Likewise.
4392         * modules/unictype/property-other-uppercase: Likewise.
4393         * modules/unictype/property-paired-punctuation: Likewise.
4394         * modules/unictype/property-paragraph-separator: Likewise.
4395         * modules/unictype/property-pattern-syntax: Likewise.
4396         * modules/unictype/property-pattern-white-space: Likewise.
4397         * modules/unictype/property-private-use: Likewise.
4398         * modules/unictype/property-punctuation: Likewise.
4399         * modules/unictype/property-quotation-mark: Likewise.
4400         * modules/unictype/property-radical: Likewise.
4401         * modules/unictype/property-sentence-terminal: Likewise.
4402         * modules/unictype/property-soft-dotted: Likewise.
4403         * modules/unictype/property-space: Likewise.
4404         * modules/unictype/property-terminal-punctuation: Likewise.
4405         * modules/unictype/property-test: Likewise.
4406         * modules/unictype/property-titlecase: Likewise.
4407         * modules/unictype/property-unassigned-code-value: Likewise.
4408         * modules/unictype/property-unified-ideograph: Likewise.
4409         * modules/unictype/property-uppercase: Likewise.
4410         * modules/unictype/property-variation-selector: Likewise.
4411         * modules/unictype/property-white-space: Likewise.
4412         * modules/unictype/property-xid-continue: Likewise.
4413         * modules/unictype/property-xid-start: Likewise.
4414         * modules/unictype/property-zero-width: Likewise.
4415         * modules/unictype/scripts: Likewise.
4416         * modules/unictype/syntax-c-ident: Likewise.
4417         * modules/unictype/syntax-c-whitespace: Likewise.
4418         * modules/unictype/syntax-java-ident: Likewise.
4419         * modules/unictype/syntax-java-whitespace: Likewise.
4420         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4421         * modules/unilbrk/u8-width-linebreaks: Likewise.
4422         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4423         * modules/unilbrk/u16-width-linebreaks: Likewise.
4424         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4425         * modules/unilbrk/u32-width-linebreaks: Likewise.
4426         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4427         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4428         * modules/uniname/uniname: Likewise.
4429         * modules/uninorm/canonical-decomposition: Likewise.
4430         * modules/uninorm/composition: Likewise.
4431         * modules/uninorm/decomposing-form: Likewise.
4432         * modules/uninorm/decomposition: Likewise.
4433         * modules/uninorm/filter: Likewise.
4434         * modules/uninorm/nfc: Likewise.
4435         * modules/uninorm/nfd: Likewise.
4436         * modules/uninorm/nfkc: Likewise.
4437         * modules/uninorm/nfkd: Likewise.
4438         * modules/uninorm/u8-normalize: Likewise.
4439         * modules/uninorm/u8-normcmp: Likewise.
4440         * modules/uninorm/u8-normcoll: Likewise.
4441         * modules/uninorm/u8-normxfrm: Likewise.
4442         * modules/uninorm/u16-normalize: Likewise.
4443         * modules/uninorm/u16-normcmp: Likewise.
4444         * modules/uninorm/u16-normcoll: Likewise.
4445         * modules/uninorm/u16-normxfrm: Likewise.
4446         * modules/uninorm/u32-normalize: Likewise.
4447         * modules/uninorm/u32-normcmp: Likewise.
4448         * modules/uninorm/u32-normcoll: Likewise.
4449         * modules/uninorm/u32-normxfrm: Likewise.
4450         * modules/unistdio/u8-asnprintf: Likewise.
4451         * modules/unistdio/u8-asprintf: Likewise.
4452         * modules/unistdio/u8-snprintf: Likewise.
4453         * modules/unistdio/u8-sprintf: Likewise.
4454         * modules/unistdio/u8-u8-asnprintf: Likewise.
4455         * modules/unistdio/u8-u8-asprintf: Likewise.
4456         * modules/unistdio/u8-u8-snprintf: Likewise.
4457         * modules/unistdio/u8-u8-sprintf: Likewise.
4458         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4459         * modules/unistdio/u8-u8-vasprintf: Likewise.
4460         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4461         * modules/unistdio/u8-u8-vsprintf: Likewise.
4462         * modules/unistdio/u8-vasnprintf: Likewise.
4463         * modules/unistdio/u8-vasprintf: Likewise.
4464         * modules/unistdio/u8-vsnprintf: Likewise.
4465         * modules/unistdio/u8-vsprintf: Likewise.
4466         * modules/unistdio/u16-asnprintf: Likewise.
4467         * modules/unistdio/u16-asprintf: Likewise.
4468         * modules/unistdio/u16-snprintf: Likewise.
4469         * modules/unistdio/u16-sprintf: Likewise.
4470         * modules/unistdio/u16-u16-asnprintf: Likewise.
4471         * modules/unistdio/u16-u16-asprintf: Likewise.
4472         * modules/unistdio/u16-u16-snprintf: Likewise.
4473         * modules/unistdio/u16-u16-sprintf: Likewise.
4474         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4475         * modules/unistdio/u16-u16-vasprintf: Likewise.
4476         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4477         * modules/unistdio/u16-u16-vsprintf: Likewise.
4478         * modules/unistdio/u16-vasnprintf: Likewise.
4479         * modules/unistdio/u16-vasprintf: Likewise.
4480         * modules/unistdio/u16-vsnprintf: Likewise.
4481         * modules/unistdio/u16-vsprintf: Likewise.
4482         * modules/unistdio/u32-asnprintf: Likewise.
4483         * modules/unistdio/u32-asprintf: Likewise.
4484         * modules/unistdio/u32-snprintf: Likewise.
4485         * modules/unistdio/u32-sprintf: Likewise.
4486         * modules/unistdio/u32-u32-asnprintf: Likewise.
4487         * modules/unistdio/u32-u32-asprintf: Likewise.
4488         * modules/unistdio/u32-u32-snprintf: Likewise.
4489         * modules/unistdio/u32-u32-sprintf: Likewise.
4490         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4491         * modules/unistdio/u32-u32-vasprintf: Likewise.
4492         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4493         * modules/unistdio/u32-u32-vsprintf: Likewise.
4494         * modules/unistdio/u32-vasnprintf: Likewise.
4495         * modules/unistdio/u32-vasprintf: Likewise.
4496         * modules/unistdio/u32-vsnprintf: Likewise.
4497         * modules/unistdio/u32-vsprintf: Likewise.
4498         * modules/unistdio/ulc-asnprintf: Likewise.
4499         * modules/unistdio/ulc-asprintf: Likewise.
4500         * modules/unistdio/ulc-fprintf: Likewise.
4501         * modules/unistdio/ulc-snprintf: Likewise.
4502         * modules/unistdio/ulc-sprintf: Likewise.
4503         * modules/unistdio/ulc-vasnprintf: Likewise.
4504         * modules/unistdio/ulc-vasprintf: Likewise.
4505         * modules/unistdio/ulc-vfprintf: Likewise.
4506         * modules/unistdio/ulc-vsnprintf: Likewise.
4507         * modules/unistdio/ulc-vsprintf: Likewise.
4508         * modules/unistr/u8-check: Likewise.
4509         * modules/unistr/u8-chr: Likewise.
4510         * modules/unistr/u8-cmp: Likewise.
4511         * modules/unistr/u8-cmp2: Likewise.
4512         * modules/unistr/u8-cpy: Likewise.
4513         * modules/unistr/u8-cpy-alloc: Likewise.
4514         * modules/unistr/u8-endswith: Likewise.
4515         * modules/unistr/u8-mblen: Likewise.
4516         * modules/unistr/u8-mbsnlen: Likewise.
4517         * modules/unistr/u8-mbtouc: Likewise.
4518         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4519         * modules/unistr/u8-mbtoucr: Likewise.
4520         * modules/unistr/u8-move: Likewise.
4521         * modules/unistr/u8-next: Likewise.
4522         * modules/unistr/u8-prev: Likewise.
4523         * modules/unistr/u8-set: Likewise.
4524         * modules/unistr/u8-startswith: Likewise.
4525         * modules/unistr/u8-stpcpy: Likewise.
4526         * modules/unistr/u8-stpncpy: Likewise.
4527         * modules/unistr/u8-strcat: Likewise.
4528         * modules/unistr/u8-strchr: Likewise.
4529         * modules/unistr/u8-strcmp: Likewise.
4530         * modules/unistr/u8-strcoll: Likewise.
4531         * modules/unistr/u8-strcpy: Likewise.
4532         * modules/unistr/u8-strcspn: Likewise.
4533         * modules/unistr/u8-strdup: Likewise.
4534         * modules/unistr/u8-strlen: Likewise.
4535         * modules/unistr/u8-strmblen: Likewise.
4536         * modules/unistr/u8-strmbtouc: Likewise.
4537         * modules/unistr/u8-strncat: Likewise.
4538         * modules/unistr/u8-strncmp: Likewise.
4539         * modules/unistr/u8-strncpy: Likewise.
4540         * modules/unistr/u8-strnlen: Likewise.
4541         * modules/unistr/u8-strpbrk: Likewise.
4542         * modules/unistr/u8-strrchr: Likewise.
4543         * modules/unistr/u8-strspn: Likewise.
4544         * modules/unistr/u8-strstr: Likewise.
4545         * modules/unistr/u8-strtok: Likewise.
4546         * modules/unistr/u8-to-u16: Likewise.
4547         * modules/unistr/u8-to-u32: Likewise.
4548         * modules/unistr/u8-uctomb: Likewise.
4549         * modules/unistr/u16-check: Likewise.
4550         * modules/unistr/u16-chr: Likewise.
4551         * modules/unistr/u16-cmp: Likewise.
4552         * modules/unistr/u16-cmp2: Likewise.
4553         * modules/unistr/u16-cpy: Likewise.
4554         * modules/unistr/u16-cpy-alloc: Likewise.
4555         * modules/unistr/u16-endswith: Likewise.
4556         * modules/unistr/u16-mblen: Likewise.
4557         * modules/unistr/u16-mbsnlen: Likewise.
4558         * modules/unistr/u16-mbtouc: Likewise.
4559         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4560         * modules/unistr/u16-mbtoucr: Likewise.
4561         * modules/unistr/u16-move: Likewise.
4562         * modules/unistr/u16-next: Likewise.
4563         * modules/unistr/u16-prev: Likewise.
4564         * modules/unistr/u16-set: Likewise.
4565         * modules/unistr/u16-startswith: Likewise.
4566         * modules/unistr/u16-stpcpy: Likewise.
4567         * modules/unistr/u16-stpncpy: Likewise.
4568         * modules/unistr/u16-strcat: Likewise.
4569         * modules/unistr/u16-strchr: Likewise.
4570         * modules/unistr/u16-strcmp: Likewise.
4571         * modules/unistr/u16-strcoll: Likewise.
4572         * modules/unistr/u16-strcpy: Likewise.
4573         * modules/unistr/u16-strcspn: Likewise.
4574         * modules/unistr/u16-strdup: Likewise.
4575         * modules/unistr/u16-strlen: Likewise.
4576         * modules/unistr/u16-strmblen: Likewise.
4577         * modules/unistr/u16-strmbtouc: Likewise.
4578         * modules/unistr/u16-strncat: Likewise.
4579         * modules/unistr/u16-strncmp: Likewise.
4580         * modules/unistr/u16-strncpy: Likewise.
4581         * modules/unistr/u16-strnlen: Likewise.
4582         * modules/unistr/u16-strpbrk: Likewise.
4583         * modules/unistr/u16-strrchr: Likewise.
4584         * modules/unistr/u16-strspn: Likewise.
4585         * modules/unistr/u16-strstr: Likewise.
4586         * modules/unistr/u16-strtok: Likewise.
4587         * modules/unistr/u16-to-u32: Likewise.
4588         * modules/unistr/u16-to-u8: Likewise.
4589         * modules/unistr/u16-uctomb: Likewise.
4590         * modules/unistr/u32-check: Likewise.
4591         * modules/unistr/u32-chr: Likewise.
4592         * modules/unistr/u32-cmp: Likewise.
4593         * modules/unistr/u32-cmp2: Likewise.
4594         * modules/unistr/u32-cpy: Likewise.
4595         * modules/unistr/u32-cpy-alloc: Likewise.
4596         * modules/unistr/u32-endswith: Likewise.
4597         * modules/unistr/u32-mblen: Likewise.
4598         * modules/unistr/u32-mbsnlen: Likewise.
4599         * modules/unistr/u32-mbtouc: Likewise.
4600         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4601         * modules/unistr/u32-mbtoucr: Likewise.
4602         * modules/unistr/u32-move: Likewise.
4603         * modules/unistr/u32-next: Likewise.
4604         * modules/unistr/u32-prev: Likewise.
4605         * modules/unistr/u32-set: Likewise.
4606         * modules/unistr/u32-startswith: Likewise.
4607         * modules/unistr/u32-stpcpy: Likewise.
4608         * modules/unistr/u32-stpncpy: Likewise.
4609         * modules/unistr/u32-strcat: Likewise.
4610         * modules/unistr/u32-strchr: Likewise.
4611         * modules/unistr/u32-strcmp: Likewise.
4612         * modules/unistr/u32-strcoll: Likewise.
4613         * modules/unistr/u32-strcpy: Likewise.
4614         * modules/unistr/u32-strcspn: Likewise.
4615         * modules/unistr/u32-strdup: Likewise.
4616         * modules/unistr/u32-strlen: Likewise.
4617         * modules/unistr/u32-strmblen: Likewise.
4618         * modules/unistr/u32-strmbtouc: Likewise.
4619         * modules/unistr/u32-strncat: Likewise.
4620         * modules/unistr/u32-strncmp: Likewise.
4621         * modules/unistr/u32-strncpy: Likewise.
4622         * modules/unistr/u32-strnlen: Likewise.
4623         * modules/unistr/u32-strpbrk: Likewise.
4624         * modules/unistr/u32-strrchr: Likewise.
4625         * modules/unistr/u32-strspn: Likewise.
4626         * modules/unistr/u32-strstr: Likewise.
4627         * modules/unistr/u32-strtok: Likewise.
4628         * modules/unistr/u32-to-u16: Likewise.
4629         * modules/unistr/u32-to-u8: Likewise.
4630         * modules/unistr/u32-uctomb: Likewise.
4631         * modules/uniwbrk/u8-wordbreaks: Likewise.
4632         * modules/uniwbrk/u16-wordbreaks: Likewise.
4633         * modules/uniwbrk/u32-wordbreaks: Likewise.
4634         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4635         * modules/uniwbrk/wordbreak-property: Likewise.
4636         * modules/uniwidth/u8-strwidth: Likewise.
4637         * modules/uniwidth/u8-width: Likewise.
4638         * modules/uniwidth/u16-strwidth: Likewise.
4639         * modules/uniwidth/u16-width: Likewise.
4640         * modules/uniwidth/u32-strwidth: Likewise.
4641         * modules/uniwidth/u32-width: Likewise.
4642         * modules/uniwidth/width: Likewise.
4643         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4644         with $(LIBUNISTRING).
4645         * modules/unicase/ignorable-tests: Likewise.
4646         * modules/unicase/locale-language-tests: Likewise.
4647         * modules/unicase/tolower-tests: Likewise.
4648         * modules/unicase/totitle-tests: Likewise.
4649         * modules/unicase/toupper-tests: Likewise.
4650         * modules/unicase/u8-casecmp-tests: Likewise.
4651         * modules/unicase/u8-casecoll-tests: Likewise.
4652         * modules/unicase/u8-casefold-tests: Likewise.
4653         * modules/unicase/u8-is-cased-tests: Likewise.
4654         * modules/unicase/u8-is-casefolded-tests: Likewise.
4655         * modules/unicase/u8-is-lowercase-tests: Likewise.
4656         * modules/unicase/u8-is-titlecase-tests: Likewise.
4657         * modules/unicase/u8-is-uppercase-tests: Likewise.
4658         * modules/unicase/u8-tolower-tests: Likewise.
4659         * modules/unicase/u8-totitle-tests: Likewise.
4660         * modules/unicase/u8-toupper-tests: Likewise.
4661         * modules/unicase/u16-casecmp-tests: Likewise.
4662         * modules/unicase/u16-casecoll-tests: Likewise.
4663         * modules/unicase/u16-casefold-tests: Likewise.
4664         * modules/unicase/u16-is-cased-tests: Likewise.
4665         * modules/unicase/u16-is-casefolded-tests: Likewise.
4666         * modules/unicase/u16-is-lowercase-tests: Likewise.
4667         * modules/unicase/u16-is-titlecase-tests: Likewise.
4668         * modules/unicase/u16-is-uppercase-tests: Likewise.
4669         * modules/unicase/u16-tolower-tests: Likewise.
4670         * modules/unicase/u16-totitle-tests: Likewise.
4671         * modules/unicase/u16-toupper-tests: Likewise.
4672         * modules/unicase/u32-casecmp-tests: Likewise.
4673         * modules/unicase/u32-casecoll-tests: Likewise.
4674         * modules/unicase/u32-casefold-tests: Likewise.
4675         * modules/unicase/u32-is-cased-tests: Likewise.
4676         * modules/unicase/u32-is-casefolded-tests: Likewise.
4677         * modules/unicase/u32-is-lowercase-tests: Likewise.
4678         * modules/unicase/u32-is-titlecase-tests: Likewise.
4679         * modules/unicase/u32-is-uppercase-tests: Likewise.
4680         * modules/unicase/u32-tolower-tests: Likewise.
4681         * modules/unicase/u32-totitle-tests: Likewise.
4682         * modules/unicase/u32-toupper-tests: Likewise.
4683         * modules/unicase/ulc-casecmp-tests: Likewise.
4684         * modules/unicase/ulc-casecoll-tests: Likewise.
4685         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4686         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4687         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4688         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4689         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4690         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4691         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4692         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4693         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4694         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4695         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4696         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4697         * modules/unictype/bidicategory-byname-tests: Likewise.
4698         * modules/unictype/bidicategory-name-tests: Likewise.
4699         * modules/unictype/bidicategory-of-tests: Likewise.
4700         * modules/unictype/bidicategory-test-tests: Likewise.
4701         * modules/unictype/block-list-tests: Likewise.
4702         * modules/unictype/block-of-tests: Likewise.
4703         * modules/unictype/block-test-tests: Likewise.
4704         * modules/unictype/category-C-tests: Likewise.
4705         * modules/unictype/category-Cc-tests: Likewise.
4706         * modules/unictype/category-Cf-tests: Likewise.
4707         * modules/unictype/category-Cn-tests: Likewise.
4708         * modules/unictype/category-Co-tests: Likewise.
4709         * modules/unictype/category-Cs-tests: Likewise.
4710         * modules/unictype/category-L-tests: Likewise.
4711         * modules/unictype/category-Ll-tests: Likewise.
4712         * modules/unictype/category-Lm-tests: Likewise.
4713         * modules/unictype/category-Lo-tests: Likewise.
4714         * modules/unictype/category-Lt-tests: Likewise.
4715         * modules/unictype/category-Lu-tests: Likewise.
4716         * modules/unictype/category-M-tests: Likewise.
4717         * modules/unictype/category-Mc-tests: Likewise.
4718         * modules/unictype/category-Me-tests: Likewise.
4719         * modules/unictype/category-Mn-tests: Likewise.
4720         * modules/unictype/category-N-tests: Likewise.
4721         * modules/unictype/category-Nd-tests: Likewise.
4722         * modules/unictype/category-Nl-tests: Likewise.
4723         * modules/unictype/category-No-tests: Likewise.
4724         * modules/unictype/category-P-tests: Likewise.
4725         * modules/unictype/category-Pc-tests: Likewise.
4726         * modules/unictype/category-Pd-tests: Likewise.
4727         * modules/unictype/category-Pe-tests: Likewise.
4728         * modules/unictype/category-Pf-tests: Likewise.
4729         * modules/unictype/category-Pi-tests: Likewise.
4730         * modules/unictype/category-Po-tests: Likewise.
4731         * modules/unictype/category-Ps-tests: Likewise.
4732         * modules/unictype/category-S-tests: Likewise.
4733         * modules/unictype/category-Sc-tests: Likewise.
4734         * modules/unictype/category-Sk-tests: Likewise.
4735         * modules/unictype/category-Sm-tests: Likewise.
4736         * modules/unictype/category-So-tests: Likewise.
4737         * modules/unictype/category-Z-tests: Likewise.
4738         * modules/unictype/category-Zl-tests: Likewise.
4739         * modules/unictype/category-Zp-tests: Likewise.
4740         * modules/unictype/category-Zs-tests: Likewise.
4741         * modules/unictype/category-and-not-tests: Likewise.
4742         * modules/unictype/category-and-tests: Likewise.
4743         * modules/unictype/category-byname-tests: Likewise.
4744         * modules/unictype/category-name-tests: Likewise.
4745         * modules/unictype/category-none-tests: Likewise.
4746         * modules/unictype/category-of-tests: Likewise.
4747         * modules/unictype/category-or-tests: Likewise.
4748         * modules/unictype/category-test-withtable-tests: Likewise.
4749         * modules/unictype/combining-class-tests: Likewise.
4750         * modules/unictype/ctype-alnum-tests: Likewise.
4751         * modules/unictype/ctype-alpha-tests: Likewise.
4752         * modules/unictype/ctype-blank-tests: Likewise.
4753         * modules/unictype/ctype-cntrl-tests: Likewise.
4754         * modules/unictype/ctype-digit-tests: Likewise.
4755         * modules/unictype/ctype-graph-tests: Likewise.
4756         * modules/unictype/ctype-lower-tests: Likewise.
4757         * modules/unictype/ctype-print-tests: Likewise.
4758         * modules/unictype/ctype-punct-tests: Likewise.
4759         * modules/unictype/ctype-space-tests: Likewise.
4760         * modules/unictype/ctype-upper-tests: Likewise.
4761         * modules/unictype/ctype-xdigit-tests: Likewise.
4762         * modules/unictype/decimal-digit-tests: Likewise.
4763         * modules/unictype/digit-tests: Likewise.
4764         * modules/unictype/mirror-tests: Likewise.
4765         * modules/unictype/numeric-tests: Likewise.
4766         * modules/unictype/property-alphabetic-tests: Likewise.
4767         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4768         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4769         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4770         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4771         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4772         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4773         * modules/unictype/property-bidi-control-tests: Likewise.
4774         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4775         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4776         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4777         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4778         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4779         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4780         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4781         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4782         * modules/unictype/property-bidi-pdf-tests: Likewise.
4783         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4784         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4785         * modules/unictype/property-byname-tests: Likewise.
4786         * modules/unictype/property-combining-tests: Likewise.
4787         * modules/unictype/property-composite-tests: Likewise.
4788         * modules/unictype/property-currency-symbol-tests: Likewise.
4789         * modules/unictype/property-dash-tests: Likewise.
4790         * modules/unictype/property-decimal-digit-tests: Likewise.
4791         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4792         * modules/unictype/property-deprecated-tests: Likewise.
4793         * modules/unictype/property-diacritic-tests: Likewise.
4794         * modules/unictype/property-extender-tests: Likewise.
4795         * modules/unictype/property-format-control-tests: Likewise.
4796         * modules/unictype/property-grapheme-base-tests: Likewise.
4797         * modules/unictype/property-grapheme-extend-tests: Likewise.
4798         * modules/unictype/property-grapheme-link-tests: Likewise.
4799         * modules/unictype/property-hex-digit-tests: Likewise.
4800         * modules/unictype/property-hyphen-tests: Likewise.
4801         * modules/unictype/property-id-continue-tests: Likewise.
4802         * modules/unictype/property-id-start-tests: Likewise.
4803         * modules/unictype/property-ideographic-tests: Likewise.
4804         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4805         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4806         * modules/unictype/property-ignorable-control-tests: Likewise.
4807         * modules/unictype/property-iso-control-tests: Likewise.
4808         * modules/unictype/property-join-control-tests: Likewise.
4809         * modules/unictype/property-left-of-pair-tests: Likewise.
4810         * modules/unictype/property-line-separator-tests: Likewise.
4811         * modules/unictype/property-logical-order-exception-tests: Likewise.
4812         * modules/unictype/property-lowercase-tests: Likewise.
4813         * modules/unictype/property-math-tests: Likewise.
4814         * modules/unictype/property-non-break-tests: Likewise.
4815         * modules/unictype/property-not-a-character-tests: Likewise.
4816         * modules/unictype/property-numeric-tests: Likewise.
4817         * modules/unictype/property-other-alphabetic-tests: Likewise.
4818         * modules/unictype/property-other-default-ignorable-code-point-tests:
4819         Likewise.
4820         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4821         * modules/unictype/property-other-id-continue-tests: Likewise.
4822         * modules/unictype/property-other-id-start-tests: Likewise.
4823         * modules/unictype/property-other-lowercase-tests: Likewise.
4824         * modules/unictype/property-other-math-tests: Likewise.
4825         * modules/unictype/property-other-uppercase-tests: Likewise.
4826         * modules/unictype/property-paired-punctuation-tests: Likewise.
4827         * modules/unictype/property-paragraph-separator-tests: Likewise.
4828         * modules/unictype/property-pattern-syntax-tests: Likewise.
4829         * modules/unictype/property-pattern-white-space-tests: Likewise.
4830         * modules/unictype/property-private-use-tests: Likewise.
4831         * modules/unictype/property-punctuation-tests: Likewise.
4832         * modules/unictype/property-quotation-mark-tests: Likewise.
4833         * modules/unictype/property-radical-tests: Likewise.
4834         * modules/unictype/property-sentence-terminal-tests: Likewise.
4835         * modules/unictype/property-soft-dotted-tests: Likewise.
4836         * modules/unictype/property-space-tests: Likewise.
4837         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4838         * modules/unictype/property-test-tests: Likewise.
4839         * modules/unictype/property-titlecase-tests: Likewise.
4840         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4841         * modules/unictype/property-unified-ideograph-tests: Likewise.
4842         * modules/unictype/property-uppercase-tests: Likewise.
4843         * modules/unictype/property-variation-selector-tests: Likewise.
4844         * modules/unictype/property-white-space-tests: Likewise.
4845         * modules/unictype/property-xid-continue-tests: Likewise.
4846         * modules/unictype/property-xid-start-tests: Likewise.
4847         * modules/unictype/property-zero-width-tests: Likewise.
4848         * modules/unictype/scripts-tests: Likewise.
4849         * modules/unictype/syntax-c-ident-tests: Likewise.
4850         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4851         * modules/unictype/syntax-java-ident-tests: Likewise.
4852         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4853         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4854         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4855         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4856         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4857         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4858         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4859         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4860         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4861         * modules/uniname/uniname-tests: Likewise.
4862         * modules/uninorm/canonical-decomposition-tests: Likewise.
4863         * modules/uninorm/compat-decomposition-tests: Likewise.
4864         * modules/uninorm/composition-tests: Likewise.
4865         * modules/uninorm/decomposing-form-tests: Likewise.
4866         * modules/uninorm/decomposition-tests: Likewise.
4867         * modules/uninorm/filter-tests: Likewise.
4868         * modules/uninorm/nfc-tests: Likewise.
4869         * modules/uninorm/nfd-tests: Likewise.
4870         * modules/uninorm/nfkc-tests: Likewise.
4871         * modules/uninorm/nfkd-tests: Likewise.
4872         * modules/uninorm/u8-normcmp-tests: Likewise.
4873         * modules/uninorm/u8-normcoll-tests: Likewise.
4874         * modules/uninorm/u16-normcmp-tests: Likewise.
4875         * modules/uninorm/u16-normcoll-tests: Likewise.
4876         * modules/uninorm/u32-normcmp-tests: Likewise.
4877         * modules/uninorm/u32-normcoll-tests: Likewise.
4878         * modules/unistdio/u8-asnprintf-tests: Likewise.
4879         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4880         * modules/unistdio/u8-vasprintf-tests: Likewise.
4881         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4882         * modules/unistdio/u8-vsprintf-tests: Likewise.
4883         * modules/unistdio/u16-asnprintf-tests: Likewise.
4884         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4885         * modules/unistdio/u16-vasprintf-tests: Likewise.
4886         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4887         * modules/unistdio/u16-vsprintf-tests: Likewise.
4888         * modules/unistdio/u32-asnprintf-tests: Likewise.
4889         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4890         * modules/unistdio/u32-vasprintf-tests: Likewise.
4891         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4892         * modules/unistdio/u32-vsprintf-tests: Likewise.
4893         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4894         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4895         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4896         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4897         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4898         * modules/unistr/u8-check-tests: Likewise.
4899         * modules/unistr/u8-chr-tests: Likewise.
4900         * modules/unistr/u8-cmp-tests: Likewise.
4901         * modules/unistr/u8-cmp2-tests: Likewise.
4902         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4903         * modules/unistr/u8-cpy-tests: Likewise.
4904         * modules/unistr/u8-mblen-tests: Likewise.
4905         * modules/unistr/u8-mbsnlen-tests: Likewise.
4906         * modules/unistr/u8-mbtouc-tests: Likewise.
4907         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4908         * modules/unistr/u8-mbtoucr-tests: Likewise.
4909         * modules/unistr/u8-move-tests: Likewise.
4910         * modules/unistr/u8-next-tests: Likewise.
4911         * modules/unistr/u8-prev-tests: Likewise.
4912         * modules/unistr/u8-set-tests: Likewise.
4913         * modules/unistr/u8-stpcpy-tests: Likewise.
4914         * modules/unistr/u8-stpncpy-tests: Likewise.
4915         * modules/unistr/u8-strcat-tests: Likewise.
4916         * modules/unistr/u8-strcmp-tests: Likewise.
4917         * modules/unistr/u8-strcoll-tests: Likewise.
4918         * modules/unistr/u8-strcpy-tests: Likewise.
4919         * modules/unistr/u8-strdup-tests: Likewise.
4920         * modules/unistr/u8-strlen-tests: Likewise.
4921         * modules/unistr/u8-strmblen-tests: Likewise.
4922         * modules/unistr/u8-strmbtouc-tests: Likewise.
4923         * modules/unistr/u8-strncat-tests: Likewise.
4924         * modules/unistr/u8-strncmp-tests: Likewise.
4925         * modules/unistr/u8-strncpy-tests: Likewise.
4926         * modules/unistr/u8-strnlen-tests: Likewise.
4927         * modules/unistr/u8-to-u16-tests: Likewise.
4928         * modules/unistr/u8-to-u32-tests: Likewise.
4929         * modules/unistr/u8-uctomb-tests: Likewise.
4930         * modules/unistr/u16-check-tests: Likewise.
4931         * modules/unistr/u16-chr-tests: Likewise.
4932         * modules/unistr/u16-cmp-tests: Likewise.
4933         * modules/unistr/u16-cmp2-tests: Likewise.
4934         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4935         * modules/unistr/u16-cpy-tests: Likewise.
4936         * modules/unistr/u16-mblen-tests: Likewise.
4937         * modules/unistr/u16-mbsnlen-tests: Likewise.
4938         * modules/unistr/u16-mbtouc-tests: Likewise.
4939         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4940         * modules/unistr/u16-mbtoucr-tests: Likewise.
4941         * modules/unistr/u16-move-tests: Likewise.
4942         * modules/unistr/u16-next-tests: Likewise.
4943         * modules/unistr/u16-prev-tests: Likewise.
4944         * modules/unistr/u16-set-tests: Likewise.
4945         * modules/unistr/u16-stpcpy-tests: Likewise.
4946         * modules/unistr/u16-stpncpy-tests: Likewise.
4947         * modules/unistr/u16-strcat-tests: Likewise.
4948         * modules/unistr/u16-strcmp-tests: Likewise.
4949         * modules/unistr/u16-strcoll-tests: Likewise.
4950         * modules/unistr/u16-strcpy-tests: Likewise.
4951         * modules/unistr/u16-strdup-tests: Likewise.
4952         * modules/unistr/u16-strlen-tests: Likewise.
4953         * modules/unistr/u16-strmblen-tests: Likewise.
4954         * modules/unistr/u16-strmbtouc-tests: Likewise.
4955         * modules/unistr/u16-strncat-tests: Likewise.
4956         * modules/unistr/u16-strncmp-tests: Likewise.
4957         * modules/unistr/u16-strncpy-tests: Likewise.
4958         * modules/unistr/u16-strnlen-tests: Likewise.
4959         * modules/unistr/u16-to-u32-tests: Likewise.
4960         * modules/unistr/u16-to-u8-tests: Likewise.
4961         * modules/unistr/u16-uctomb-tests: Likewise.
4962         * modules/unistr/u32-check-tests: Likewise.
4963         * modules/unistr/u32-chr-tests: Likewise.
4964         * modules/unistr/u32-cmp-tests: Likewise.
4965         * modules/unistr/u32-cmp2-tests: Likewise.
4966         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4967         * modules/unistr/u32-cpy-tests: Likewise.
4968         * modules/unistr/u32-mblen-tests: Likewise.
4969         * modules/unistr/u32-mbsnlen-tests: Likewise.
4970         * modules/unistr/u32-mbtouc-tests: Likewise.
4971         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4972         * modules/unistr/u32-mbtoucr-tests: Likewise.
4973         * modules/unistr/u32-move-tests: Likewise.
4974         * modules/unistr/u32-next-tests: Likewise.
4975         * modules/unistr/u32-prev-tests: Likewise.
4976         * modules/unistr/u32-set-tests: Likewise.
4977         * modules/unistr/u32-stpcpy-tests: Likewise.
4978         * modules/unistr/u32-stpncpy-tests: Likewise.
4979         * modules/unistr/u32-strcat-tests: Likewise.
4980         * modules/unistr/u32-strcmp-tests: Likewise.
4981         * modules/unistr/u32-strcoll-tests: Likewise.
4982         * modules/unistr/u32-strcpy-tests: Likewise.
4983         * modules/unistr/u32-strdup-tests: Likewise.
4984         * modules/unistr/u32-strlen-tests: Likewise.
4985         * modules/unistr/u32-strmblen-tests: Likewise.
4986         * modules/unistr/u32-strmbtouc-tests: Likewise.
4987         * modules/unistr/u32-strncat-tests: Likewise.
4988         * modules/unistr/u32-strncmp-tests: Likewise.
4989         * modules/unistr/u32-strncpy-tests: Likewise.
4990         * modules/unistr/u32-strnlen-tests: Likewise.
4991         * modules/unistr/u32-to-u16-tests: Likewise.
4992         * modules/unistr/u32-to-u8-tests: Likewise.
4993         * modules/unistr/u32-uctomb-tests: Likewise.
4994         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4995         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4996         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4997         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4998         * modules/uniwidth/u8-strwidth-tests: Likewise.
4999         * modules/uniwidth/u8-width-tests: Likewise.
5000         * modules/uniwidth/u16-strwidth-tests: Likewise.
5001         * modules/uniwidth/u16-width-tests: Likewise.
5002         * modules/uniwidth/u32-strwidth-tests: Likewise.
5003         * modules/uniwidth/u32-width-tests: Likewise.
5004         * modules/uniwidth/width-tests: Likewise.
5005
5006 2010-05-18  Richard Jones  <rjones@redhat.com>
5007
5008         doc: users.txt: list hivex
5009         * users.txt: Add hivex.
5010
5011 2010-05-18  Richard Jones  <rjones@redhat.com>
5012
5013         doc: users.txt: list febootstrap
5014         * users.txt: Add febootstrap.
5015
5016 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5017
5018         bootstrap: fix an error when gnulib is not used as a git submodule
5019         * build-aux/bootstrap (gnulib_path): If its length is zero then
5020         assign "gnulib" to it.
5021         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5022
5023 2010-05-16  Bruno Haible  <bruno@clisp.org>
5024
5025         Avoid autoconf warnings about AM_ICONV.
5026         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5027         2.64.
5028
5029 2010-05-16  Bruno Haible  <bruno@clisp.org>
5030
5031         absolute-header: Make the macro usable in more situations.
5032         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5033         from gl_ABSOLUTE_HEADER.
5034         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5035
5036 2010-05-16  James Youngman  <jay@gnu.org>
5037
5038         doc: update users.txt
5039         * users.txt: Add CSSC.
5040
5041 2010-05-16  Jim Meyering  <meyering@redhat.com>
5042
5043         init.sh: fix an error in the previous change; add more comments
5044         * tests/init.sh: Compare exit code in loop against 9, not 2.
5045         Patch by Bruno Haible.
5046         Make the two tests more similar by adding an empty "then" clause.
5047         Add comments.
5048
5049         init.sh: avoid unnecessary shell re-exec
5050         * tests/init.sh: Improve the re-exec-required check to first test the
5051         current shell.  If it passes the test, do not search for a shell that
5052         does pass, and do not re-exec.  This test is particularly contorted to
5053         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5054         of $(...) evokes a syntax error and causes immediate shell exit with
5055         status 2.  Bruno Haible reported that the re-exec made it impossible
5056         to single-step through any init.sh-using script.
5057
5058 2010-05-16  Bruno Haible  <bruno@clisp.org>
5059
5060         Fix collision between gnulib's and libintl's printf replacements.
5061         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5062         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5063         (printf): When using GNU C, map the __printf__ function to rpl_printf
5064         via __asm__. When not using GNU C, define rpl_printf instead of
5065         __printf__.
5066         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5067         commit.
5068         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5069         commit.
5070         * m4/asm-underscore.m4: New file.
5071         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5072         * modules/stdio (Files): Add m4/asm-underscore.m4.
5073         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5074         Reported by Ben Pfaff.
5075
5076 2010-05-16  Bruno Haible  <bruno@clisp.org>
5077
5078         verify: Avoid skipping the test on openSUSE 11.0.
5079         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5080
5081 2010-05-13  Bruno Haible  <bruno@clisp.org>
5082
5083         Avoid useless warnings from G++.
5084         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5085         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5086         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5087
5088 2010-05-11  Jim Meyering  <meyering@redhat.com>
5089
5090         maint.mk: tweak preceding change
5091         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5092         regexps tighter by anchoring at EOL, and make the new group "shy"
5093         for slightly decreased overhead.
5094
5095 2010-05-11  Eric Blake  <eblake@redhat.com>
5096
5097         maint.mk: gnulib doesn't guarantee NSIG
5098         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5099
5100 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5101
5102         test-pwrite.c: Remove unused variable declaration.
5103         * tests/test-pwrite.c (main): Remove read_buf declaration.
5104
5105         Remove useless test-pwrite.sh file.
5106         * tests/test-pwrite.sh: Delete file.
5107         * modules/pwrite-tests: Remove references.
5108         Reported by Bruno Haible.
5109
5110 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5111
5112         init.sh: fix a typo
5113         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5114
5115 2010-05-10  Jim Meyering  <meyering@redhat.com>
5116
5117         maint.mk: avoid using a temporary file in the always-defined-macros check
5118         * top/maint.mk (.re-defmac): Remove rule.
5119         (gl_trap_): Remove definition.
5120         (sc_prohibit_always-defined_macros): Rewrite not to create and
5121         depend on a temporary file.  Instead, depend on GNU grep's ability
5122         to read a list of regular expressions from stdin when given "-f -".
5123
5124 2010-05-09  Bruno Haible  <bruno@clisp.org>
5125
5126         Update to GNU gettext 0.18, part 1.
5127         * m4/gettext.m4: Update to GNU gettext 0.18.
5128         * m4/intl.m4: Likewise.
5129         * m4/po.m4: Likewise.
5130         * modules/gettext (Files): Add m4/fcntl-o.m4.
5131         (configure.ac): Require gettext infrastructure from version 0.18.
5132
5133 2010-05-09  Jim Meyering  <meyering@redhat.com>
5134
5135         init.sh: enable MALLOC_PERTURB_
5136         * tests/init.sh: Enable glibc's malloc-perturbing option.
5137
5138         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5139         With my recent change in init.sh from the two-line form:
5140             -#   : ${srcdir=.}
5141             -#   . "$srcdir/init.sh"; path_prepend_ .
5142             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5143         I noticed that using the one-line form would cause this test
5144         to fail with a false-positive, or to stop working altogether,
5145         depending on whether help-version changed or all the tests did.
5146         * top/maint.mk (_hv_regex): Remove this definition.
5147         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5148         (_hv_regex_strong): Use a stronger regex to check for conformance.
5149         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5150         Give a separate diagnostic for lack of conforming use.
5151
5152         maint.mk: prohibit definition of symbols defined by gnulib
5153         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5154         definition of symbols defined by gnulib.
5155
5156 2010-05-09  Bruno Haible  <bruno@clisp.org>
5157
5158         acl: Avoid test failure on Cygwin-hosted mingw.
5159         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5160
5161 2010-05-09  Bruno Haible  <bruno@clisp.org>
5162
5163         error: Use system's fcntl function.
5164         * lib/error.c (fcntl): Undefine.
5165
5166 2010-05-09  Jim Meyering  <meyering@redhat.com>
5167
5168         verify: adjust formatting to be more consistent
5169         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5170         argument-list '('s, and after one comma.
5171
5172 2010-05-09  Bruno Haible  <bruno@clisp.org>
5173
5174         error: More reliable output on mingw.
5175         * lib/error.c: Include <windows.h>.
5176         (is_open): New function.
5177         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5178         defined.
5179
5180 2010-05-09  Bruno Haible  <bruno@clisp.org>
5181
5182         vasnprintf: Fix syntax errors in libintl build on mingw.
5183         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5184         pad_ourselves and prec_ourselves after use.
5185
5186 2010-05-08  Bruno Haible  <bruno@clisp.org>
5187
5188         * lib/config.charset: Update comments for Cygwin 1.7.
5189         * lib/localcharset.c: Likewise.
5190
5191 2010-05-07  Jim Meyering  <meyering@redhat.com>
5192
5193         init.sh: improve comments
5194         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5195         . "${srcdir=.}/init.sh"; path_prepend_ .
5196         Add a note about path_prepend_ and the alternative of using
5197         TESTS_ENVIRONMENT.
5198
5199 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5200
5201         exclude: Unescape hashed patterns in wildcard mode.
5202         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5203         to the hash list.
5204         * tests/test-exclude8.sh: New test case.
5205         * modules/exclude-tests: Add new test.
5206
5207 2010-05-05  Eric Blake  <eblake@redhat.com>
5208
5209         verify: automate tests
5210         * modules/verify-tests: New module.
5211         * tests/test-verify.sh: New file.
5212         * tests/test-verify.c: Guard each negative test with a unique id.
5213         Also avoid warning about unused left hand of comma expressions.
5214
5215 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         Further improvements to verify.h, suggested by Eric Blake.
5218         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5219         the GL_* versions, to avoid collision with OpenGL.
5220         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5221         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5222         than testing merely whether it's defined.
5223
5224         Modify verify.h to pacify gcc -Wredundant_decls.
5225         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5226         These use the prefix "GL_" since they're likely to be useful elsewhere.
5227         We may need to break them out into a different .h file.
5228         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5229         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5230         of verify_function__.
5231
5232 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5233
5234         Tests for module pwrite.
5235         * modules/pwrite-tests: New file.
5236         * tests/test-pwrite.sh: New file.
5237         * tests/test-pwrite.c: New file.
5238
5239         New module pwrite.
5240         * lib/unistd.in.h (pwrite): New declaration.
5241         * lib/pwrite.c: New file, from glibc with modifications.
5242         * m4/pwrite.m4: New file.
5243         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5245         REPLACE_PWRITE.
5246         * modules/pwrite: New file.
5247         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5248         REPLACE_PWRITE.
5249         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5250         * doc/posix-functions/pwrite.texi: Mention the new module.
5251
5252 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5253
5254         pread: Update documentation.
5255         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5256
5257 2010-05-04  Eric Blake  <eblake@redhat.com>
5258
5259         docs: update cygwin progress
5260         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5261         this bug.
5262         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5263         Added in cygwin 1.7.2.
5264         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5265         Likewise.
5266         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5267         Likewise.
5268         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5269         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5270         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5271         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5272         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5273         Mention nproc module.
5274         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5275         bug in cygwin 1.7.5 addition.
5276         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5277         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5278         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5279         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5280         1.7.5.
5281         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5282         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5283         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5284         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5285         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5286         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5287         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5288         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5289         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5290         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5291         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5292         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5293         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5294         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5295         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5296         Likewise.
5297         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5298         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5299         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5300         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5301         Likewise.
5302         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5303         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5304         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5305         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5306         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5307         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5308         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5309         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5310         Likewise.
5311         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5312         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5313         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5314         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5315         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5316         Likewise.
5317         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5318         Likewise.
5319         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5320         Likewise.
5321         * doc/glibc-functions/xdrrec_endofrecord.texi
5322         (xdrrec_endofrecord): Likewise.
5323         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5324         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5325         Likewise.
5326         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5327         Likewise.
5328
5329 2010-05-04  Jim Meyering  <meyering@redhat.com>
5330
5331         gendocs.sh: make its "-s FILE" option more useful
5332         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5333         $PACKAGE to reflect the probably-different basename of "FILE".
5334
5335 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5336
5337         bootstrap: don't ignore download_po_files failure
5338         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5339         failure.
5340
5341 2010-05-03  Jim Meyering  <meyering@redhat.com>
5342
5343         maint.mk: allow to pass options to gendocs.sh
5344         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5345         (gendocs_options_): New overridable variable.
5346
5347         gnu-web-doc-update: don't ignore configure or build failure
5348         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5349
5350         announce-gen: backslash-escape '@'s in --help output
5351         * build-aux/announce-gen: Fix syntax errors.
5352
5353         maint.mk, announce-gen: allow project-specific announcement mail headers
5354         * top/maint.mk (translation_project_): Define default.
5355         (announcement_Cc_, announcement_mail_headers_): Likewise.
5356         (announcement): Invoke announce-gen with new --mail-headers option.
5357         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5358
5359         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5360         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5361         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5362         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5363         line in the "err2" output file when running "make check" in verbose
5364         mode (i.e., with set -x enabled).
5365
5366 2010-05-03  Bruno Haible  <bruno@clisp.org>
5367
5368         wctob: Fix for weird platforms.
5369         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5370         argument value.
5371
5372 2010-05-03  Jim Meyering  <meyering@redhat.com>
5373
5374         maint.mk: prohibit unwarranted use of <strings.h>
5375         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5376         strings.h in a file that does not also use strcasecmp, strncasecmp,
5377         ffs or ffsll.
5378
5379         maint.mk: remove obsolete comments
5380         * top/maint.mk: Remove stale, commented-out rules.
5381
5382 2010-05-02  Bruno Haible  <bruno@clisp.org>
5383
5384         wcwidth: Declare also when it's aliased.
5385         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5386         macro.
5387
5388 2010-05-02  Bruno Haible  <bruno@clisp.org>
5389
5390         Fix regression from 2010-04-25.
5391         * gnulib-tool (func_modules_transitive_closure): Check the status of
5392         all modules, not only of the tests that are of the form foo-tests where
5393         foo is a module.
5394
5395 2010-05-02  Bruno Haible  <bruno@clisp.org>
5396
5397         wctob: Work around nasty Cygwin 1.7.2 bug.
5398         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5399         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5400
5401 2010-05-01  Bruno Haible  <bruno@clisp.org>
5402
5403         fpurge: Sharper test.
5404         * tests/test-fpurge.c (main): Add one more ftell check.
5405         * modules/fpurge-tests (Depends-on): Add ftell.
5406         Suggested by Eric Blake.
5407
5408 2010-05-01  Bruno Haible  <bruno@clisp.org>
5409
5410         ftello: Another test.
5411         * tests/test-ftello3.c: New file.
5412         * modules/ftello-tests (Files): Add it.
5413         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5414         MOSTLYCLEANFILES.
5415
5416         ftell: Another test.
5417         * tests/test-ftell3.c: New file.
5418         * modules/ftell-tests (Files): Add it.
5419         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5420         MOSTLYCLEANFILES.
5421
5422 2010-05-01  Bruno Haible  <bruno@clisp.org>
5423
5424         ftell, ftello: Work around Solaris bug.
5425         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5426         * lib/ftello.c: Include stdio-impl.h.
5427         (ftello): On Solaris, when _IOWRT is set, compute the result without
5428         looking at _IOREAD.
5429         * modules/ftello (Files): Add lib/stdio-impl.h.
5430         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5431         * doc/posix-functions/ftello.texi: Likewise.
5432         Reported by Eric Blake.
5433
5434 2010-05-01  Bruno Haible  <bruno@clisp.org>
5435
5436         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5437         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5438         the _IOWRT flag is also set.
5439
5440 2010-05-01  Bruno Haible  <bruno@clisp.org>
5441
5442         Fix doc about a HP-UX stdio bug.
5443         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5444         * doc/posix-functions/ftello.texi: Likewise.
5445
5446 2010-05-01  Bruno Haible  <bruno@clisp.org>
5447
5448         lseek test: Fix failure on Solaris.
5449         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5450         output.
5451
5452 2010-04-30  Jim Meyering  <meyering@redhat.com>
5453
5454         bootstrap: don't ignore failure to generate po*/Makevars
5455         * build-aux/bootstrap (with_gettext): Don't ignore failure
5456         to create po/Makevars or runtime-po/Makevars.
5457
5458 2010-04-29  Eric Blake  <eblake@redhat.com>
5459
5460         headers: relax license to LGPLv2+
5461         * modules/fcntl-h (License): Relax license.
5462         * modules/getopt-posix (License): Likewise.
5463         * modules/locale (License): Likewise.
5464         * modules/math (License): Likewise.
5465         * modules/pty (License): Likewise.
5466         * modules/sched (License): Likewise.
5467         * modules/search (License): Likewise.
5468         * modules/spawn (License): Likewise.
5469         * modules/stdarg (License): Likewise.
5470         * modules/sysexits (License): Likewise.
5471
5472 2010-04-29  Jim Meyering  <meyering@redhat.com>
5473
5474         inttypes: relax license to LGPLv2+
5475         * modules/inttypes (License): Relax license.
5476
5477 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5478
5479         * top/maint.mk (indent): Run twice to produce idempotent results.
5480
5481 2010-04-28  Bruno Haible  <bruno@clisp.org>
5482
5483         getdate: Generate getdate.c in the source directory.
5484         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5485         MOSTLYCLEANFILES.
5486         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5487
5488 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5489
5490         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5491         is not declared as a const *; avoid warnings in that case.
5492
5493 2010-04-28  Eric Blake  <eblake@redhat.com>
5494
5495         canonicalize-lgpl: avoid compiler warning
5496         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5497         declaration' / 'extraneous semicolon' warning with some compilers.
5498         Reported by Andreas Gruenbacher.
5499
5500 2010-04-28  Jim Meyering  <meyering@redhat.com>
5501
5502         init.sh: ensure a more reliable exit status when exiting via trap
5503         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5504         Inspired by patches from Dmitry V. Levin.
5505         Also trap on signal 3 (SIGQUIT).
5506
5507 2010-04-27  Bruno Haible  <bruno@clisp.org>
5508
5509         Update doc about utimes().
5510         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5511         'utimens' module.
5512         Reported by Andreas Gruenbacher <agruen@suse.de>.
5513
5514 2010-04-27  Eric Blake  <eblake@redhat.com>
5515
5516         full-read, full-write: relax license
5517         * modules/full-read (License): Drop to LGPLv2+.
5518         * modules/full-write (License): Likewise.
5519         * modules/safe-read (License): Likewise.
5520         * modules/safe-write (License): Likewise.
5521
5522         pthread: mention library for linking
5523         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5524
5525 2010-04-27  Jim Meyering  <meyering@redhat.com>
5526
5527         maint.mk: fix a bug introduced in last change
5528         * top/maint.mk (gl_assured_headers_): Now that all names are on
5529         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5530         is not anchored to end of word, it should be adequate.
5531
5532         maint.mk: avoid side-effect in latest syntax-check
5533         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5534         to run commands via $(shell...), and hence to incur cost only when
5535         the new rule is actually run.
5536
5537         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5538         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5539         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5540         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5541         (gl_assured_headers_, az_, AZ_): Define.
5542         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5543
5544 2010-04-26  Jim Meyering  <jim@meyering.net>
5545             Bruno Haible  <bruno@clisp.org>
5546
5547         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5549         Prompted by an exchange with Gilles Espinasse.
5550
5551 2010-04-26  Jim Meyering  <meyering@redhat.com>
5552
5553         git-version-gen: aesthetic tweak
5554         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5555         so that the command remains on a single line.
5556
5557 2010-04-26  Eric Blake  <eblake@redhat.com>
5558
5559         git-version-gen: allow use on EBCDIC hosts
5560         * build-aux/git-version-gen (dirty): Use literal rather than tying
5561         ourselves to ascii.
5562         Reported by Steve Goetze.
5563
5564 2010-04-25  Bruno Haible  <bruno@clisp.org>
5565
5566         netdb: Add support for GNULIB_POSIXCHECK.
5567         * lib/netdb.in.h: Include warn-on-use.h.
5568         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5569         functions are used when GNULIB_POSIXCHECK is defined and the
5570         getaddrinfo module is not in use.
5571         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5572         freeaddrinfo, gai_strerror, getnameinfo are declared.
5573         * modules/netdb (Depends-on): Add warn-on-use.
5574         (Makefile.am): Include warn-on-use.h in netdb.h.
5575
5576 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5577
5578         build: avoid "make check" failure without .git/ directory
5579         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5580         there is no .git/ directory.
5581
5582 2010-04-25  Bruno Haible  <bruno@clisp.org>
5583
5584         ptsname: Fix misuse of ttyname_r.
5585         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5586         of errno.
5587
5588 2010-04-25  Bruno Haible  <bruno@clisp.org>
5589
5590         ttyname_r: Make it work on Solaris 10.
5591         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5592         if the system function has the POSIX declaration. Test whether the
5593         function fails if the buffer is less than 128 bytes large.
5594         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5595         system's ttyname_r function. Provide a reasonably large buffer.
5596         * modules/ttyname_r (Depends-on): Add extensions.
5597         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5598
5599 2010-04-25  Bruno Haible  <bruno@clisp.org>
5600
5601         Use the 'extensions' module for some more functions on Solaris.
5602         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5603         module.
5604         * doc/posix-functions/ctime_r.texi: Likewise.
5605         * doc/posix-functions/getgrgid_r.texi: Likewise.
5606         * doc/posix-functions/getgrnam_r.texi: Likewise.
5607         * doc/posix-functions/getpwnam_r.texi: Likewise.
5608         * doc/posix-functions/getpwuid_r.texi: Likewise.
5609         * doc/posix-functions/readdir_r.texi: Likewise.
5610         * doc/posix-functions/sigwait.texi: Likewise.
5611         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5612         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5613
5614 2010-04-25  Bruno Haible  <bruno@clisp.org>
5615
5616         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5617         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5618         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5619         * lib/ttyname_r.c: Include <limits.h>.
5620         (ttyname_r): Define using the system's ttyname_r function, if it exists
5621         and not on Solaris.
5622         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5623         set.
5624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5625         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5626         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5627         Reported by Simon Josefsson.
5628
5629 2010-04-25  Bruno Haible  <bruno@clisp.org>
5630
5631         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5632         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5633         * doc/posix-functions/ctime_r.texi: Likewise.
5634         * doc/posix-functions/getgrgid_r.texi: Likewise.
5635         * doc/posix-functions/getgrnam_r.texi: Likewise.
5636         * doc/posix-functions/getlogin_r.texi: Likewise.
5637         * doc/posix-functions/getpwnam_r.texi: Likewise.
5638         * doc/posix-functions/getpwuid_r.texi: Likewise.
5639         * doc/posix-functions/readdir_r.texi: Likewise.
5640         * doc/posix-functions/sigwait.texi: Likewise.
5641         * doc/posix-functions/ttyname_r.texi: Likewise.
5642         Reported by Simon Josefsson.
5643
5644 2010-04-25  Bruno Haible  <bruno@clisp.org>
5645
5646         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5647         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5648         also to --create-testdir.
5649         (func_acceptable): Don't consider the status of *-tests modules here.
5650         (func_modules_transitive_closure): Consider it here, before including a
5651         test module.
5652         (func_import, func_create_testdir): Set inc_all_direct_tests,
5653         inc_all_indirect_tests.
5654         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5655         --create-testdir and --create-megatestdir.
5656
5657 2010-04-25  Bruno Haible  <bruno@clisp.org>
5658
5659         gnulib-tool: Add --without-*-tests options.
5660         * gnulib-tool (func_usage): Document the --without-*-tests options.
5661         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5662         excl_unportable_tests): New variables.
5663         Fail if they are specified with --import or --update.
5664         (func_acceptable): Respect the excl_*_tests variables.
5665         (func_import): Set the excl_*_tests variables to empty.
5666
5667 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5668             Bruno Haible  <bruno@clisp.org>
5669
5670         Work around a MacOS X 10.4 bug with openpty.
5671         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5672         * tests/test-openpty.c (main): Close the master side explicitly.
5673
5674 2010-04-25  Bruno Haible  <bruno@clisp.org>
5675
5676         strnlen: Fix a C++ test error on MacOS X and Solaris.
5677         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5678         the function is not declared.
5679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5680         Simon Josefsson.
5681
5682 2010-04-24  Bruno Haible  <bruno@clisp.org>
5683
5684         Avoid a gcc warning.
5685         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5686         of correct type for %08lx directive.
5687         Reported by Eric Blake.
5688
5689 2010-04-24  Bruno Haible  <bruno@clisp.org>
5690
5691         vasnprintf: Correct errno value in case of out-of-memory.
5692         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5693         or sprintf. Use the errno value from SNPRINTF or sprintf.
5694         Reported by Ian Beckwith <ianb@erislabs.net>.
5695
5696 2010-04-24  Bruno Haible  <bruno@clisp.org>
5697
5698         ansi-c++-opt: Find correct compiler when cross-compiling.
5699         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5700         AC_CHECK_PROGS.
5701         Reported by Simon Josefsson.
5702
5703 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5704
5705         vc-list-files: Add support for subversion
5706         * build-aux/vc-list-files: Use "svn list" to generate the list of
5707         files controlled by subversion.
5708
5709 2010-04-23  Jim Meyering  <meyering@redhat.com>
5710
5711         vc-list-files tests: convert to use init.sh
5712         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5713         path_prepend_.
5714         Use Exit, not exit.
5715         Use skip_ rather than open coding it.
5716         Remove trap set-up and compare definitions.
5717         * tests/test-vc-list-files-git.sh: Likewise.
5718         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5719
5720 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5721
5722         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5723         backup files.
5724
5725 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5726
5727         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5728
5729 2010-04-20  Eric Blake  <eblake@redhat.com>
5730
5731         tests: be robust to ignored SIGPIPE
5732         * tests/test-select-in.sh: Consume all output.
5733         * tests/test-lseek.sh: Check correct exit status, while avoiding
5734         EPIPE.
5735
5736 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5737             Bruno Haible  <bruno@clisp.org>
5738
5739         visibility: Don't use -fvisibility if it leads to a warning.
5740         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5741         yes, don't pretend that visibility works if it leads to a warning.
5742         Reported by Mike Gran <spk121@yahoo.com>.
5743
5744 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5745
5746         * build-aux/bootstrap: Use "git -h" for testing for supported options
5747         instead of "git --help".  The short-form option only shows a summary,
5748         and doesn't layout the full man page.  Grep for the full option name
5749         in the summary, too.
5750
5751 2010-04-19  Bruno Haible  <bruno@clisp.org>
5752
5753         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5754         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5755         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5756         mention of RELOCATABLE_STRIP.
5757         Reported by Sylvain Beucler <beuc@beuc.net>.
5758
5759 2010-04-19  Bruno Haible  <bruno@clisp.org>
5760
5761         * lib/diffseq.h: Fix typo in comment.
5762         Reported by Eric Blake.
5763
5764 2010-04-19  Bruno Haible  <bruno@clisp.org>
5765
5766         ioctl: Move autoconf macro to a .m4 file.
5767         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5768         * modules/ioctl (Files): Add it.
5769         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5770         Reported by Ian Beckwith <ianb@erislabs.net>.
5771
5772 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5773             Bruno Haible  <bruno@clisp.org>
5774
5775         diffseq: Accommodate use-case with abstract arrays.
5776         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5777         is not defined.
5778         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5779         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5780
5781 2010-04-18  Bruno Haible  <bruno@clisp.org>
5782
5783         * doc/posix-headers/stdbool.texi: More precise wording.
5784
5785 2010-04-17  Jim Meyering  <meyering@redhat.com>
5786
5787         maint.mk: use gnu-style indentation in an embedded perl script
5788         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5789         Rename variable: s/two/last_two_bytes/
5790
5791 2010-04-16  Eric Blake  <eblake@redhat.com>
5792
5793         test-stdbool: skip test that fails with Solaris CC
5794         * tests/test-stdbool.c (f): Skip test that causes compilation
5795         error under buggy C++ compiler.
5796         * lib/stdbool.in.h: Document the limitation.
5797         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5798
5799         setenv: allow compilation with C++
5800         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5801         register keyword.
5802
5803         stdint: allow test to pass with C++
5804         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5805
5806         getopt: allow compilation with C++
5807         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5808         struct.
5809         * lib/getopt.c (_getopt_internal_r): Use correct type.
5810         Reported by Dagobert Michelson, via Joel E. Denny.
5811
5812 2010-04-16  Bruno Haible  <bruno@clisp.org>
5813
5814         Override netdb.h always.
5815         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5816         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5817         Reported by Ludovic Courtès <ludo@gnu.org>.
5818
5819 2010-04-15  Bruno Haible  <bruno@clisp.org>
5820
5821         openpty: Fix mistake from 2010-03-21.
5822         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5823         Reported by Simon Josefsson.
5824
5825 2010-04-15  Eric Blake  <eblake@redhat.com>
5826
5827         test-forkpty: fix expected signature
5828         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5829         Reported by Simon Josefsson.
5830
5831 2010-04-15  Jim Meyering  <meyering@redhat.com>
5832
5833         maint.mk: texinfo_suffix_re_: correct the default regexp
5834         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5835
5836         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5837         make it configurable via texinfo_suffix_re_.
5838
5839 2010-04-14  Eric Blake  <eblake@redhat.com>
5840
5841         strtok_r: relax license to LGPLv2+
5842         * modules/strtok_r (License): Relax license.
5843         Reported by Matthias Bolte.
5844
5845 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5846
5847         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5848         version 1.4.4 by default instead of requiring the libgcrypt
5849         version used during build.  This makes it possible to use the
5850         application with older but still binary compatible libgcrypt
5851         versions.
5852
5853 2010-04-13  Eric Blake  <eblake@redhat.com>
5854
5855         getopt-gnu: match recent glibc fixes and posix ruling
5856         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5857         '+' handling, when requesting extensions.
5858         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5859         'W;' handling.
5860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5861         * doc/posix-functions/getopt.texi (getopt): Document this.
5862         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5863         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5864         Likewise.
5865
5866         getopt: merge bug fixes from glibc
5867         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5868         diagnostics.  Honor '+:' correctly.  Reject ';'.
5869
5870         getopt-posix: detect MacOS bug
5871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5872         optind when missing a required argument.
5873         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5874         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5875         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5876         Likewise.
5877
5878         getopt-posix: avoid spurious failure on Solaris
5879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5880         an indicator that setting optind=1 is sufficient for reset.
5881
5882         getopt-posix: avoid spurious failure on FreeBSD
5883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5884         in POSIX mode, since the m4 test uses it.
5885
5886         gnulib-tool: silence warning on BSD sh
5887         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5888
5889 2010-04-13  Jim Meyering  <meyering@redhat.com>
5890
5891         doc: users.txt: GNU patch now uses gnulib
5892         * users.txt: Add patch.
5893
5894 2010-04-12  Jim Meyering  <meyering@redhat.com>
5895
5896         maint.mk: generate more concise timing data for syntax-check rules
5897         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5898         " done" from each line that reports a syntax-check test duration.
5899
5900 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5901
5902         git-version-gen: use "git update-index..." rather than "git status"
5903         * build-aux/git-version-gen: Use git update-index --refresh, not
5904         "git status".  With some versions of git, "git status" would fail
5905         to update the index and result in an unwarranted "-dirty" suffix.
5906
5907 2010-04-11  Jim Meyering  <meyering@redhat.com>
5908
5909         openat: correct formatting (no semantic change)
5910         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5911         Suggested by Bruno Haible.
5912
5913 2010-04-11  Bruno Haible  <bruno@clisp.org>
5914
5915         Stricter declaration checking in testdirs.
5916         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5917         If for_tests is true, augment AM_CPPFLAGS to define
5918         GNULIB_STRICT_CHECKING.
5919         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5920         GNULIB_STRICT_CHECKING is defined, verify that the function is
5921         declared.
5922
5923 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5924             Bruno Haible  <bruno@clisp.org>
5925
5926         libunistring: Improve configure output.
5927         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5928         Don't say "consider installing GNU libunistring" when checking again
5929         with libiconv.
5930
5931 2010-04-11  Bruno Haible  <bruno@clisp.org>
5932
5933         libunistring: Correct value of $LTLIBUNISTRING.
5934         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5935         correct the value of $LTLIBUNISTRING.
5936
5937 2010-04-11  Bruno Haible  <bruno@clisp.org>
5938
5939         havelib: Add static libraries to LIBS in the right order.
5940         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5941         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5942
5943 2010-04-11  Bruno Haible  <bruno@clisp.org>
5944
5945         libunistring: Detect libunistring also when it depends on libiconv.
5946         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5947         the second AC_LIB_HAVE_LINKFLAGS invocation.
5948
5949 2010-04-11  James Youngman  <jay@gnu.org>
5950
5951         close-stream: declare local scalars to be "const"
5952         * lib/close-stream.c (close_stream): Make boolean variables const
5953         to document the fact that we set but do not change them.
5954
5955 2010-04-11  Bruno Haible  <bruno@clisp.org>
5956
5957         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5958
5959 2010-04-11  Jim Meyering  <meyering@redhat.com>
5960
5961         maint.mk: don't include dist-check.mk
5962         * top/maint.mk: Remove bogus include directive.
5963
5964         maint.mk: improve empty-line-at-EOF check
5965         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5966         solution, rather than tail+Perl-based one.  The latter would read
5967         a few kilobytes from the end of each file, and did not handle empty
5968         files properly.
5969
5970         maint.mk: print the elapsed time for each syntax-check rule
5971         * top/maint.mk (sc_m_rules_): Save start time in a file.
5972         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5973         (local-check): Interpose the .z rules
5974
5975 2010-04-11  Jim Meyering  <meyering@redhat.com>
5976
5977         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5978         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5979         empty file with one that ends in an empty line.
5980
5981 2010-04-10  Bruno Haible  <bruno@clisp.org>
5982
5983         mkdir: Make it work on mingw64.
5984         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5985         * lib/mkdir.c: Update comment.
5986         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5987
5988 2010-04-10  Bruno Haible  <bruno@clisp.org>
5989
5990         Don't override improved macro from newer autoconf.
5991         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5992         autoconf >= 2.62.
5993         Reported by Joel E. Denny <jdenny@clemson.edu>.
5994
5995 2010-04-10  Jim Meyering  <meyering@redhat.com>
5996
5997         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5998         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5999
6000         maint.mk: correct a diagnostic
6001         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6002         in diagnostic; now use $prohibit.
6003
6004 2010-04-10  Bruno Haible  <address@hidden>
6005
6006         fchownat: Fix a C++ test error on Solaris 8.
6007         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6008         the function does not exist.
6009
6010 2010-04-10  Bruno Haible  <bruno@clisp.org>
6011
6012         vasnprintf: Add more tests.
6013         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6014         (test_function): Test converting an invalid wide string.
6015
6016         vasnprintf: Correct handling of unconvertible wide string arguments.
6017         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6018         VASNPRINTF.
6019         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6020         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6021         smaller than the expected maximum need for the directive. Set errno to
6022         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6023         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6025         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6026         * modules/vasnprintf (Files): Add m4/printf.m4.
6027         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6028
6029 2010-04-10  Bruno Haible  <bruno@clisp.org>
6030
6031         vasnprintf: Fix crash in %ls directive.
6032         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6033         string is passed as argument to %ls, with no precision and no width.
6034         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6035
6036 2010-04-10  Bruno Haible  <bruno@clisp.org>
6037
6038         vasnprintf: Fix multiple test failures on mingw.
6039         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6040         _snprintf, or snwprintf, not _snwprintf.
6041
6042 2010-04-10  Bruno Haible  <bruno@clisp.org>
6043
6044         write: Fix a C++ test error on mingw.
6045         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6046
6047 2010-04-10  Bruno Haible  <bruno@clisp.org>
6048
6049         vasnprintf test: Reduce code duplication.
6050         * tests/test-vasnprintf.c (test_function): New function, extracted from
6051         test_vasnprintf.
6052         (test_vasnprintf, test_asnprintf): Invoke it.
6053
6054 2010-04-10  Bruno Haible  <bruno@clisp.org>
6055
6056         strnlen: Fix warning in C++ mode on MacOS X.
6057         * lib/string.in.h (strnlen): Use the modern idiom.
6058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6059         defining strnlen as a macro already in <config.h>.
6060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6061         REPLACE_STRNLEN.
6062         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6064
6065 2010-04-08  James Youngman  <jay@gnu.org>
6066
6067         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6068         the example.
6069
6070 2010-04-09  Jim Meyering  <meyering@redhat.com>
6071
6072         maint.mk: print better diagnostic when there is no $(_hv_file)
6073         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6074         announce that when $(_hv_file) (aka help-version) does not exist.
6075
6076         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6077         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6078         not try to interpret its random input bytes.  Jarno Rajahalme reported
6079         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6080         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6081         (mktempd_): Likewise, just in case.
6082
6083         ftruncate: add two years to projected module removal date: 2012
6084         * m4/ftruncate.m4: Adjust comments.
6085
6086         ftruncate: mark module as obsolete; even MinGW provides it, now
6087         * modules/ftruncate (Status): Obsolete.
6088         (Notice): Say that.
6089         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6091
6092 2010-04-08  Bruno Haible  <bruno@clisp.org>
6093
6094         Fix side effects from tests-related modules.
6095         * modules/dprintf-posix (Comment): New section.
6096         * modules/fprintf-posix (Comment): Likewise.
6097         * modules/obstack-printf-posix (Comment): Likewise.
6098         * modules/printf-posix (Comment): Likewise.
6099         * modules/snprintf-posix (Comment): Likewise.
6100         * modules/sprintf-posix (Comment): Likewise.
6101         * modules/vasnprintf-posix (Comment): Likewise.
6102         * modules/vasprintf-posix (Comment): Likewise.
6103         * modules/vdprintf-posix (Comment): Likewise.
6104         * modules/vfprintf-posix (Comment): Likewise.
6105         * modules/vprintf-posix (Comment): Likewise.
6106         * modules/vsnprintf-posix (Comment): Likewise.
6107         * modules/vsprintf-posix (Comment): Likewise.
6108         * modules/xprintf-posix (Comment): Likewise.
6109         * modules/xvasprintf-posix (Comment): Likewise.
6110         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6111         * modules/floorf-tests (Depends-on): Likewise.
6112         * modules/round-tests (Depends-on): Likewise.
6113         * modules/roundf-tests (Depends-on): Likewise.
6114         * modules/trunc-tests (Depends-on): Likewise.
6115         * modules/truncf-tests (Depends-on): Likewise.
6116         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6117         'fprintf-posix' module is not present.
6118         * tests/test-floorf2.c (check): Likewise.
6119         * tests/test-trunc2.c (check): Likewise.
6120         * tests/test-truncf2.c (check): Likewise.
6121         * tests/test-round2.c (equal): Likewise.
6122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6123
6124 2010-04-07  Karl Berry  <karl@gnu.org>
6125
6126         * config/srclist.txt,
6127         * config/srclistvars.sh,
6128         * config/srclist-update: doc fixes.
6129
6130 2010-04-07  Jim Meyering  <meyering@redhat.com>
6131
6132         maint.mk: add a PATH crosschecking syntax-check rule
6133         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6134         Useful if you use a test like the one in help-version (coreutils,
6135         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6136         printed by prog --version.
6137
6138 2010-04-06  Bruno Haible  <bruno@clisp.org>
6139
6140         Fix link error on mingw.
6141         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6142         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6143
6144 2010-04-06  Bruno Haible  <bruno@clisp.org>
6145
6146         Assume rmdir exists.
6147         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6148
6149 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6150
6151         doc: update users.txt
6152         * users.txt: Add gcal.
6153
6154 2010-04-06  Jim Meyering  <meyering@redhat.com>
6155
6156         init.sh: simply unset TMPDIR rather than risking env -i
6157         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6158         although it probably works fine on all Unix-based systems, some
6159         systems (Cygwin?) cannot tolerate a totally cleared environment.
6160         Suggestion from Eric Blake.
6161
6162 2010-04-06  Jim Meyering  <meyering@redhat.com>
6163
6164         init.sh: portability fix: use env's POSIX-specified -i option not -u
6165         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6166         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6167
6168 2010-04-05  Bruno Haible  <bruno@clisp.org>
6169
6170         btowc: Work around Cygwin 1.7.2 bug.
6171         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6172         does not map NUL to 0.
6173         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6174
6175 2010-04-05  Bruno Haible  <bruno@clisp.org>
6176
6177         Make the multithread modules work on Cygwin 1.7.2.
6178         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6179         imported symbols can be declared weak, so that it returns "no" on
6180         Cygwin 1.7.2.
6181
6182 2010-04-05  Bruno Haible  <bruno@clisp.org>
6183
6184         Use the module 'strncat'.
6185         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6186
6187         Tests for module 'strncat'.
6188         * modules/strncat-tests: New file.
6189         * tests/test-strncat.c: New file.
6190
6191         New module 'strncat'.
6192         * lib/string.in.h (strncat): New declaration.
6193         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6194         * m4/strncat.m4: New file, based on m4/memchr.m4.
6195         * modules/strncat: New file.
6196         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6197         is declared.
6198         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6199         REPLACE_STRNCAT.
6200         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6201         REPLACE_STRNCAT.
6202         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6203         module.
6204         * tests/test-string-c++.cc: Check signature of strncat.
6205
6206 2010-04-05  Jim Meyering  <meyering@redhat.com>
6207
6208         xstrtoumax-tests: convert to use init.sh
6209         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6210         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6211         Use Exit, not exit.
6212         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6213
6214         xstrtoimax-tests: convert to use init.sh
6215         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6216         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6217         Use Exit, not exit.
6218         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6219
6220 2010-04-05  Bruno Haible  <bruno@clisp.org>
6221
6222         sys_socket: Avoid #define replacements in C++ mode.
6223         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6224         warning to the function if possible, rather than #defining the symbol
6225         to a dysfunctional alias.
6226
6227 2010-04-05  Bruno Haible  <bruno@clisp.org>
6228
6229         fseeko: Fix C++ test error on mingw.
6230         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6231         gl_FUNC_FSEEKO.
6232         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6233         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6234         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6235         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6236
6237 2010-04-05  Bruno Haible  <bruno@clisp.org>
6238
6239         duplocale: Improve test output.
6240         * tests/test-duplocale.c (main): Print reason for skipped test.
6241
6242 2010-04-05  Bruno Haible  <bruno@clisp.org>
6243
6244         Assume rmdir exists.
6245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6246         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6247
6248 2010-04-05  Bruno Haible  <bruno@clisp.org>
6249
6250         Fix link error on Solaris 8 with cc.
6251         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6252
6253 2010-04-05  Bruno Haible  <bruno@clisp.org>
6254
6255         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6256         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6257
6258 2010-04-05  Bruno Haible  <bruno@clisp.org>
6259
6260         vasprintf: Update documentation.
6261         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6262
6263 2010-04-05  Bruno Haible  <bruno@clisp.org>
6264
6265         ptsname: Improve test.
6266         * tests/test-ptsname.c (main): Also try the various master names of BSD
6267         systems.
6268
6269 2010-04-05  Bruno Haible  <bruno@clisp.org>
6270
6271         memchr: Avoid a possible C++ test error.
6272         * lib/string.in.h (memchr): Provide declaration if function is missing.
6273         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6274         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6276         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6277
6278 2010-04-05  Bruno Haible  <bruno@clisp.org>
6279
6280         strtok_r: Improve idiom.
6281         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6282         AC_LIBOBJ is used.
6283
6284 2010-04-05  Bruno Haible  <bruno@clisp.org>
6285
6286         strdup: Improve idiom.
6287         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6288         AC_LIBOBJ is used.
6289         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6290         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6291         when AC_LIBOBJ is used.
6292
6293 2010-04-05  Bruno Haible  <bruno@clisp.org>
6294
6295         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6296         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6297         don't set REPLACE_MBSINIT to 1.
6298         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6299         don't set REPLACE_MBRTOWC to 1.
6300         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6301         exist, don't set REPLACE_MBSRTOWCS to 1.
6302         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6303         exist, don't set REPLACE_MBSNRTOWCS to 1.
6304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6305         don't set REPLACE_WCRTOMB to 1.
6306         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6307         exist, don't set REPLACE_WCSRTOMBS to 1.
6308         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6309         exist, don't set REPLACE_WCSNRTOMBS to 1.
6310
6311 2010-04-05  Bruno Haible  <bruno@clisp.org>
6312
6313         ldexpl: Improve idiom.
6314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6315         make sure to set HAVE_DECL_LDEXPL to 0.
6316
6317 2010-04-05  Jim Meyering  <meyering@redhat.com>
6318
6319         xstrtol-tests: convert to use init.sh
6320         * modules/xstrtol-tests (Files): Add tests/init.sh.
6321         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6322         Use Exit, not exit.
6323         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6324
6325         atexit-tests: convert to use init.sh
6326         * modules/atexit-tests (Files): Add tests/init.sh.
6327         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6328         Use Exit, not exit.
6329         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6330
6331         init.sh: fix typo
6332         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6333
6334         init.sh: make it easier for a test script to write to the tty, ...
6335         when using automake's parallel-tests mode.
6336         * tests/init.sh (stderr_fileno_): Define overridable variable.
6337         (warn_): New function, to use it.
6338         (fail_, skip_, framework_failure_): Use warn_.
6339
6340 2010-04-04  Bruno Haible  <bruno@clisp.org>
6341
6342         btowc: Avoid warning.
6343         * lib/btowc.c: Include <stdlib.h>.
6344         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6345
6346 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6347             Bruno Haible  <bruno@clisp.org>
6348
6349         wchar: Port to NetBSD 1.5.
6350         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6351         * lib/wctype.in.h (WEOF): Likewise.
6352
6353 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6354             Bruno Haible  <bruno@clisp.org>
6355
6356         Port extended stdio to NetBSD 1.5.
6357         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6358         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6359         older.
6360
6361 2010-04-04  Bruno Haible  <bruno@clisp.org>
6362
6363         string: Remove unused substitution.
6364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6365         HAVE_DECL_STRERROR.
6366         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6367
6368 2010-04-04  Bruno Haible  <bruno@clisp.org>
6369
6370         strtod: Avoid a possible C++ test error.
6371         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6372         set REPLACE_STRTOD.
6373
6374 2010-04-04  Bruno Haible  <bruno@clisp.org>
6375
6376         strerror: Update documentation.
6377         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6378
6379 2010-04-04  Bruno Haible  <bruno@clisp.org>
6380
6381         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6382         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6383         _GL_CXXALIAS_SYS_CAST.
6384
6385 2010-04-04  Bruno Haible  <bruno@clisp.org>
6386
6387         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6388         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6389         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6390         REPLACE_FREXPL to 1.
6391         * doc/posix-functions/frexpl.texi: Update documentation.
6392
6393 2010-04-04  Bruno Haible  <bruno@clisp.org>
6394
6395         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6396         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6397
6398 2010-04-04  Bruno Haible  <bruno@clisp.org>
6399
6400         Implement nanosleep for native Windows.
6401         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6402
6403 2010-04-04  Bruno Haible  <bruno@clisp.org>
6404
6405         math: Fix some C++ test errors on Solaris 8.
6406         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6407
6408 2010-04-04  Bruno Haible  <bruno@clisp.org>
6409
6410         math: Fix some C++ test errors on Cygwin.
6411         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6412         truncl): Provide declaration if the system does not have it.
6413         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6414         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6415         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6416         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6417         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6418         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6419         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6420         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6421         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6422         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6423         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6424         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6425         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6426         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6427         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6428         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6430         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6431         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6432         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6433         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6434         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6435
6436 2010-04-04  Bruno Haible  <bruno@clisp.org>
6437
6438         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6439         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6440         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6441         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6442         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6443         * m4/isinf.m4 (gl_ISINF): Likewise.
6444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6445
6446 2010-04-04  Bruno Haible  <bruno@clisp.org>
6447
6448         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6450
6451 2010-04-04  Bruno Haible  <bruno@clisp.org>
6452
6453         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6454         * modules/tmpfile (configure.ac): Update.
6455
6456         tmpfile: Fix C++ test error on mingw.
6457         * lib/stdio.in.h (tmpfile): New declaration.
6458         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6459         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6460         * modules/tmpfile (Depends-on): Add stdio.
6461         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6462         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6463         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6464         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6465         REPLACE_TMPFILE.
6466         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6467
6468 2010-04-04  Bruno Haible  <bruno@clisp.org>
6469
6470         ioctl: Fix C++ test error on mingw.
6471         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6472         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6473         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6474
6475 2010-04-03  Bruno Haible  <bruno@clisp.org>
6476
6477         wcwidth: Fix C++ test error on mingw.
6478         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6480         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6481
6482 2010-04-03  Bruno Haible  <bruno@clisp.org>
6483
6484         nanosleep: Fix C++ test error on mingw.
6485         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6486         * lib/time.in.h (nanosleep): Use modern idiom.
6487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6488         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6489         REPLACE_NANOSLEEP to 1.
6490         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6491         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6492
6493 2010-04-03  Bruno Haible  <bruno@clisp.org>
6494
6495         strptime: Fix C++ test error on mingw.
6496         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6497         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6498         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6499         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6500         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6501         not REPLACE_STRPTIME.
6502         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6503         REPLACE_STRPTIME.
6504
6505 2010-04-03  Bruno Haible  <bruno@clisp.org>
6506
6507         timegm: Fix C++ test error on mingw.
6508         * lib/time.in.h (timegm): Use modern idiom.
6509         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6510         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6511         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6512         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6513
6514 2010-04-03  Bruno Haible  <bruno@clisp.org>
6515
6516         timegm: Assume declaration if function exists.
6517         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6518         if it exists. Don't clobber ac_cv_func_timegm.
6519
6520 2010-04-03  Bruno Haible  <bruno@clisp.org>
6521
6522         time_r: Fix C++ test error on mingw.
6523         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6524         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6525         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6526         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6527         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6528
6529 2010-04-03  Bruno Haible  <bruno@clisp.org>
6530
6531         time_r: Minor updates.
6532         * modules/time_r (Description): Mention the provided functions.
6533         * lib/time_r.c: Don't include <string.h>.
6534         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6535         * doc/posix-functions/localtime_r.texi: Likewise.
6536
6537 2010-04-03  Bruno Haible  <bruno@clisp.org>
6538
6539         time: Fix regression introduced on 2010-03-08.
6540         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6541         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6542
6543 2010-04-03  Jim Meyering  <meyering@redhat.com>
6544
6545         maint.mk: don't silently disable project-specific syntax-check rules
6546         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6547         that they need to convert their project-specific syntax-check rules
6548         to use the new _sc_search_regexp.
6549
6550 2010-04-03  Bruno Haible  <bruno@clisp.org>
6551
6552         fchdir: Fix regression introduced on 2010-03-08.
6553         * lib/unistd.in.h (fchdir): Fix declaration.
6554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6556         REPLACE_FCHDIR.
6557         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6558         REPLACE_FCHDIR.
6559
6560 2010-04-03  Bruno Haible  <bruno@clisp.org>
6561
6562         getpagesize: Fix C++ test error on mingw.
6563         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6564         system does not declare the function.
6565         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6566         declared.
6567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6568         HAVE_DECL_GETPAGESIZE.
6569         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6570
6571 2010-04-03  Bruno Haible  <bruno@clisp.org>
6572
6573         stdio: Make C++ tests work on mingw.
6574         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6575         does not declare the function.
6576
6577 2010-04-03  Bruno Haible  <bruno@clisp.org>
6578
6579         ftello: Fix C++ test error on mingw.
6580         * lib/stdio.in.h (ftello): Use modern idiom.
6581         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6582         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6583         is missing and that it needs to be replaced.
6584         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6586         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6587
6588 2010-04-03  Bruno Haible  <bruno@clisp.org>
6589
6590         fseeko: Fix C++ test error on mingw.
6591         * lib/stdio.in.h (fseeko): Use modern idiom.
6592         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6593         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6594         is missing and that it needs to be replaced.
6595         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6597         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6598
6599 2010-04-03  Bruno Haible  <bruno@clisp.org>
6600
6601         mkstemp: Fix C++ test error on mingw.
6602         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6604         function is missing and that it needs to be replaced.
6605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6606         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6607
6608 2010-04-03  Bruno Haible  <bruno@clisp.org>
6609
6610         stpncpy: Fix C++ test error on mingw.
6611         * lib/string.in.h (stpncpy): Use modern idiom.
6612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6613         function is missing and that it needs to be replaced.
6614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6615         REPLACE_STPNCPY.
6616         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6617
6618 2010-04-03  Bruno Haible  <bruno@clisp.org>
6619
6620         sys_stat: Fix C++ test error on mingw.
6621         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6622         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6623
6624 2010-04-03  Bruno Haible  <bruno@clisp.org>
6625
6626         pty: Update doc.
6627         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6628
6629 2010-04-03  Bruno Haible  <bruno@clisp.org>
6630
6631         unistd: Fix C++ test error on mingw.
6632         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6633
6634 2010-04-03  Bruno Haible  <bruno@clisp.org>
6635
6636         Update doc regarding mingw.
6637         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6638         * doc/glibc-functions/login_tty.texi: Likewise.
6639         * doc/glibc-functions/forkpty.texi: Likewise.
6640
6641 2010-04-03  Bruno Haible  <bruno@clisp.org>
6642
6643         stdlib: Avoid compilation failure of c-strtold on mingw.
6644         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6645
6646 2010-04-03  Bruno Haible  <bruno@clisp.org>
6647
6648         locale: Make C++ tests work on Cygwin and mingw.
6649         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6650         cannot provide the function.
6651         Reported by Simon Josefsson.
6652
6653 2010-04-03  Bruno Haible  <bruno@clisp.org>
6654
6655         localename: Port to MacOS X 10.6.
6656         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6657         memory layout of the locales in MacOS X 10.6 as well.
6658         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6659
6660 2010-04-02  Bruno Haible  <bruno@clisp.org>
6661
6662         gnulib-tool: Ensure that long-running tests are executed last.
6663         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6664         running tests after the one for the other tests.
6665
6666 2010-04-02  Bruno Haible  <bruno@clisp.org>
6667
6668         gnulib-tool: Ensure the tests in the main directory are executed first.
6669         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6670         start with the current directory.
6671
6672 2010-04-02  Bruno Haible  <bruno@clisp.org>
6673
6674         Tests for module 'havelib', moved here from GNU gettext.
6675         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6676         modifications.
6677         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6678         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6679         with modifications.
6680         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6681         modifications.
6682         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6683         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6684         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6685         with modifications.
6686         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6687         with modifications.
6688         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6689         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6690         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6691         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6692         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6693         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6694         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6695         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6696         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6697         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6698         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6699         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6700         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6701         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6702         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6703         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6704         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6705         with modifications.
6706         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6707         with modifications.
6708         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6709         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6710         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6711         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6712         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6713         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6714         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6715         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6716         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6717         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6718         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6719         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6720         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6721         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6722         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6723         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6724         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6725         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6726         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6727         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6728         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6729         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6730         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6731         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6732         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6733         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6734         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6735         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6736         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6737         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6738         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6739         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6740         * tests/havelib/rpathx/rpathx.c: New file, from
6741         gettext/autoconf-lib-link.
6742         * tests/havelib/rpathx/Makefile.am: New file, from
6743         gettext/autoconf-lib-link.
6744         * tests/havelib/rpathx/configure.ac: New file, from
6745         gettext/autoconf-lib-link with modifications.
6746         * tests/havelib/rpathy/rpathy.c: New file, from
6747         gettext/autoconf-lib-link.
6748         * tests/havelib/rpathy/Makefile.am: New file, from
6749         gettext/autoconf-lib-link.
6750         * tests/havelib/rpathy/configure.ac: New file, from
6751         gettext/autoconf-lib-link with modifications.
6752         * tests/havelib/rpathz/rpathz.c: New file, from
6753         gettext/autoconf-lib-link.
6754         * tests/havelib/rpathz/Makefile.am: New file, from
6755         gettext/autoconf-lib-link.
6756         * tests/havelib/rpathz/configure.ac: New file, from
6757         gettext/autoconf-lib-link with modifications.
6758         * tests/havelib/rpathlx/usex.c: New file, from
6759         gettext/autoconf-lib-link.
6760         * tests/havelib/rpathlx/Makefile.am: New file, from
6761         gettext/autoconf-lib-link.
6762         * tests/havelib/rpathlx/configure.ac: New file, from
6763         gettext/autoconf-lib-link with modifications.
6764         * tests/havelib/rpathly/usey.c: New file, from
6765         gettext/autoconf-lib-link.
6766         * tests/havelib/rpathly/Makefile.am: New file, from
6767         gettext/autoconf-lib-link.
6768         * tests/havelib/rpathly/configure.ac: New file, from
6769         gettext/autoconf-lib-link with modifications.
6770         * tests/havelib/rpathlz/usez.c: New file, from
6771         gettext/autoconf-lib-link.
6772         * tests/havelib/rpathlz/Makefile.am: New file, from
6773         gettext/autoconf-lib-link.
6774         * tests/havelib/rpathlz/configure.ac: New file, from
6775         gettext/autoconf-lib-link with modifications.
6776         * tests/havelib/rpathlyx/usey.c: New file, from
6777         gettext/autoconf-lib-link.
6778         * tests/havelib/rpathlyx/Makefile.am: New file, from
6779         gettext/autoconf-lib-link.
6780         * tests/havelib/rpathlyx/configure.ac: New file, from
6781         gettext/autoconf-lib-link with modifications.
6782         * tests/havelib/rpathlzyx/usez.c: New file, from
6783         gettext/autoconf-lib-link.
6784         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6785         gettext/autoconf-lib-link.
6786         * tests/havelib/rpathlzyx/configure.ac: New file, from
6787         gettext/autoconf-lib-link with modifications.
6788         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6789         with modifications.
6790
6791 2010-04-02  Bruno Haible  <bruno@clisp.org>
6792
6793         gnulib-tool: Create distributed built sources also for the tests.
6794         * gnulib-tool (func_create_testdir): Also generate distributed built
6795         sources in the tests directory.
6796
6797 2010-04-02  Bruno Haible  <bruno@clisp.org>
6798
6799         gnulib-tool: Obey user's environment variables.
6800         * gnulib-tool (func_create_testdir): When creating built sources,
6801         respect the environment variables for autoconf, automake, etc. given by
6802         the user.
6803
6804 2010-04-02  Bruno Haible  <bruno@clisp.org>
6805
6806         gnulib-tool: Provide the value of --m4-base to modules.
6807         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6808         of gl_m4_base.
6809
6810 2010-04-02  Eric Blake  <eblake@redhat.com>
6811
6812         maint.mk: fix some fallout
6813         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6814         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6815
6816 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6817
6818         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6819         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6820         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6821         (sc_cast_of_x_alloc_return_value): Likewise.
6822         (sc_cast_of_alloca_return_value): Likewise.
6823         (sc_space_tab): Likewise.
6824         (sc_prohibit_atoi_atof): Likewise.
6825         (sc_prohibit_magic_number_exit): Likewise.
6826         (sc_error_exit_success): Likewise.
6827         (sc_file_system): Likewise.
6828         (sc_prohibit_have_config_h): Likewise.
6829         (sc_require_config_h): Likewise.
6830         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6831         (sc_obsolete_symbols): Likewise.
6832         (sc_changelog): Likewise.
6833         (sc_program_name): Likewise.
6834         (sc_the_the): Likewise.
6835         (sc_trailing_blank): Likewise.
6836         (sc_two_space_separator_in_usage): Likewise.
6837         (sc_useless_cpp_parens): Likewise.
6838         (sc_GPL_version): Likewise.
6839         (sc_GFDL_version): Likewise.
6840         (sc_texinfo_acronym): Likewise.
6841         (sc_prohibit_cvs_keyword): Likewise.
6842         (sc_prohibit_stat_st_blocks): Likewise.
6843         (sc_prohibit_S_IS_definition): Likewise.
6844         (sc_redundant_const): Likewise.
6845         (sc_makefile_TAB_only_indentation): Likewise.
6846         (sc_m4_quote_check): Likewise.
6847         (sc_makefile_path_separator_check): Likewise.
6848         (sc_copyright_check): Likewise.
6849         (sc_Wundef_boolean): Likewise.
6850         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6851
6852         maint.mk: match 0 or more whitespace-before-function-call '('
6853         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6854         that have zero or two-and-more spaces between the function name
6855         and the open parenthesis.
6856         (sc_error_message_warn_fatal): Likewise.
6857         (sc_error_message_uppercase): Likewise.
6858         (sc_error_message_period): Likewise.
6859
6860 2010-03-31  Eric Blake  <eblake@redhat.com>
6861
6862         maint.mk: check for [ as well as test
6863         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6864         Based on a libvirt report by Matthias Bolte.
6865
6866         gnumakefile: don't squelch _version output
6867         * top/GNUmakefile (_version): Create one-shot dependency rather
6868         than using $(shell) when version must be regenerated.
6869         (_autoreconf): Run verbosely, by default.
6870
6871         sys_time: avoid compiler warnings
6872         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6873         unconditional, fixing regression from 2010-03-29.
6874         Reported by Simon Josefsson.
6875
6876 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6877
6878         maint.mk: s/_header_without_use/_sc_header_without_use/
6879         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6880         (sc_prohibit_assert_without_use): Use the new name.
6881         (sc_prohibit_close_stream_without_use): Likewise.
6882         (sc_prohibit_getopt_without_use): Likewise.
6883         (sc_prohibit_quotearg_without_use): Likewise.
6884         (sc_prohibit_quote_without_use): Likewise.
6885         (sc_prohibit_long_options_without_use): Likewise.
6886         (sc_prohibit_inttostr_without_use): Likewise.
6887         (sc_prohibit_ignore_value_without_use): Likewise.
6888         (sc_prohibit_error_without_use): Likewise.
6889         (sc_prohibit_xalloc_without_use): Likewise.
6890         (sc_prohibit_hash_without_use): Likewise.
6891         (sc_prohibit_hash_pjw_without_use): Likewise.
6892         (sc_prohibit_safe_read_without_use): Likewise.
6893         (sc_prohibit_argmatch_without_use): Likewise.
6894         (sc_prohibit_canonicalize_without_use): Likewise.
6895         (sc_prohibit_root_dev_ino_without_use): Likewise.
6896         (sc_prohibit_openat_without_use): Likewise.
6897         (sc_prohibit_c_ctype_without_use): Likewise.
6898         (sc_prohibit_signal_without_use): Likewise.
6899         (sc_prohibit_intprops_without_use): Likewise.
6900
6901 2010-03-30  Eric Blake  <eblake@redhat.com>
6902
6903         maint: improve module indicators
6904         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6905         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6906         columns, and avoid extra macro expansion.
6907
6908         fdopendir: work around FreeBSD bug
6909         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6910         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6911         * modules/dirent (Makefile.am): Substitute it.
6912         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6913         declaration.
6914         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6915         fix.
6916         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6917
6918 2010-03-29  Bruno Haible  <bruno@clisp.org>
6919
6920         Emit #pragma system_header after the inclusion guard, not before.
6921         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6922         guard that spans the entire file, not before. This enables an
6923         optimization in GCC's preprocessor.
6924         * lib/ctype.in.h: Likewise.
6925         * lib/dirent.in.h: Likewise.
6926         * lib/errno.in.h: Likewise.
6927         * lib/float.in.h: Likewise.
6928         * lib/getopt.in.h: Likewise.
6929         * lib/iconv.in.h: Likewise.
6930         * lib/langinfo.in.h: Likewise.
6931         * lib/locale.in.h: Likewise.
6932         * lib/math.in.h: Likewise.
6933         * lib/netdb.in.h: Likewise.
6934         * lib/netinet_in.in.h: Likewise.
6935         * lib/pty.in.h: Likewise.
6936         * lib/sched.in.h: Likewise.
6937         * lib/se-selinux.in.h: Likewise.
6938         * lib/search.in.h: Likewise.
6939         * lib/spawn.in.h: Likewise.
6940         * lib/stdarg.in.h: Likewise.
6941         * lib/stdint.in.h: Likewise.
6942         * lib/string.in.h: Likewise.
6943         * lib/strings.in.h: Likewise.
6944         * lib/sys_file.in.h: Likewise.
6945         * lib/sys_ioctl.in.h: Likewise.
6946         * lib/sys_time.in.h: Likewise.
6947         * lib/sys_times.in.h: Likewise.
6948         * lib/sys_utsname.in.h: Likewise.
6949         * lib/sys_wait.in.h: Likewise.
6950         * lib/sysexits.in.h: Likewise.
6951         * lib/wctype.in.h: Likewise.
6952
6953 2010-03-28  James Youngman  <jay@gnu.org>
6954
6955         save-cwd: don't leak a file descriptor when the caller execs.
6956         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6957         saved file descriptor.
6958         * modules/save-cwd (Depends-on): Depend on cloexec.
6959
6960 2010-03-29  Bruno Haible  <bruno@clisp.org>
6961
6962         Remove vestiges of fts-lgpl module.
6963         * lib/fts_.h: Assume GNULIB_FTS is 1.
6964         * lib/fts.c: Likewise.
6965         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6966
6967 2010-03-28  Bruno Haible  <bruno@clisp.org>
6968
6969         Fix definition of tests witness macro.
6970         * gnulib-tool (func_import): Fix definition of witness macro.
6971
6972 2010-03-28  Bruno Haible  <bruno@clisp.org>
6973
6974         Fix ioctl's protoype on glibc systems.
6975         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6976         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6977         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6978         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6979         signature. If not, arrange to replace the ioctl function.
6980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6981         REPLACE_IOCTL.
6982         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6983         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6984         Reported by Ludovic Courtès <ludo@gnu.org>.
6985
6986 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6987
6988         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6989         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6990         made it so grep -r --include=GLOB* ... did not work.
6991
6992 2010-03-26  Jim Meyering  <meyering@redhat.com>
6993             Eric Blake  <eblake@redhat.com>
6994
6995         maint.mk: prohibit use of test's -o and -a operators
6996         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6997
6998 2010-03-28  Bruno Haible  <bruno@clisp.org>
6999
7000         Remove unused GNULIB_XYZ macro definitions.
7001         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7002         invocation.
7003
7004 2010-03-28  Bruno Haible  <bruno@clisp.org>
7005
7006         Mark privileged tests modules.
7007         * modules/idpriv-drop-tests (Status): New section.
7008         * modules/idpriv-droptemp-tests (Status): New section.
7009
7010 2010-03-28  Bruno Haible  <bruno@clisp.org>
7011
7012         Split C++ tests into separate tests modules.
7013         * modules/dirent-c++-tests: New file, extracted from
7014         modules/dirent-tests.
7015         * modules/dirent-tests: Depend on it.
7016         * modules/fcntl-h-c++-tests: New file, extracted from
7017         modules/fcntl-h-tests.
7018         * modules/fcntl-h-tests: Depend on it.
7019         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7020         * modules/glob-tests: Depend on it.
7021         * modules/iconv-h-c++-tests: New file, extracted from
7022         modules/iconv-h-tests.
7023         * modules/iconv-h-tests: Depend on it.
7024         * modules/langinfo-c++-tests: New file, extracted from
7025         modules/langinfo-tests.
7026         * modules/langinfo-tests: Depend on it.
7027         * modules/locale-c++-tests: New file, extracted from
7028         modules/locale-tests.
7029         * modules/locale-tests: Depend on it.
7030         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7031         * modules/math-tests: Depend on it.
7032         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7033         * modules/pty-tests: Depend on it.
7034         * modules/search-c++-tests: New file, extracted from
7035         modules/search-tests.
7036         * modules/search-tests: Depend on it.
7037         * modules/signal-c++-tests: New file, extracted from
7038         modules/signal-tests.
7039         * modules/signal-tests: Depend on it.
7040         * modules/spawn-c++-tests: New file, extracted from
7041         modules/spawn-tests.
7042         * modules/spawn-tests: Depend on it.
7043         * modules/stdio-c++-tests: New file, extracted from
7044         modules/stdio-tests.
7045         * modules/stdio-tests: Depend on it.
7046         * modules/stdlib-c++-tests: New file, extracted from
7047         modules/stdlib-tests.
7048         * modules/stdlib-tests: Depend on it.
7049         * modules/string-c++-tests: New file, extracted from
7050         modules/string-tests.
7051         * modules/string-tests: Depend on it.
7052         * modules/sys_ioctl-c++-tests: New file, extracted from
7053         modules/sys_ioctl-tests.
7054         * modules/sys_ioctl-tests: Depend on it.
7055         * modules/sys_select-c++-tests: New file, extracted from
7056         modules/sys_select-tests.
7057         * modules/sys_select-tests: Depend on it.
7058         * modules/sys_socket-c++-tests: New file, extracted from
7059         modules/sys_socket-tests.
7060         * modules/sys_socket-tests: Depend on it.
7061         * modules/sys_stat-c++-tests: New file, extracted from
7062         modules/sys_stat-tests.
7063         * modules/sys_stat-tests: Depend on it.
7064         * modules/sys_time-c++-tests: New file, extracted from
7065         modules/sys_time-tests.
7066         * modules/sys_time-tests: Depend on it.
7067         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7068         * modules/time-tests: Depend on it.
7069         * modules/unistd-c++-tests: New file, extracted from
7070         modules/unistd-tests.
7071         * modules/unistd-tests: Depend on it.
7072         * modules/wchar-c++-tests: New file, extracted from
7073         modules/wchar-tests.
7074         * modules/wchar-tests: Depend on it.
7075         * modules/wctype-c++-tests: New file, extracted from
7076         modules/wctype-tests.
7077         * modules/wctype-tests: Depend on it.
7078         Reported by Simon Josefsson.
7079
7080 2010-03-28  Bruno Haible  <bruno@clisp.org>
7081
7082         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7083         * gnulib-tool (func_exists_module): New function, extracted from
7084         func_verify_module.
7085         (func_verify_module): Use it.
7086         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7087         'foo' only if 'foo' exists.
7088         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7089         module.
7090
7091 2010-03-28  Bruno Haible  <bruno@clisp.org>
7092
7093         gnulib-tool: Add support for special categories of tests.
7094         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7095         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7096         (func_usage): Document them.
7097         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7098         inc_unportable_tests, inc_all_tests): New variables.
7099         (func_acceptable): Consider these variables.
7100         (func_modules_transitive_closure): Make it work when the 'Status' field
7101         consists of multiple words.
7102         (func_import): Store and restore the values of inc_cxx_tests,
7103         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7104         inc_all_tests in gnulib-comp.m4.
7105         (func_create_testdir): Set inc_all_tests to true.
7106         * doc/gnulib.texi (Extra tests modules): New section.
7107         Suggested by Jim Meyering.
7108
7109 2010-03-28  Bruno Haible  <bruno@clisp.org>
7110
7111         ansi-c++-opt: Allow turning off the C++ build by default.
7112         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7113         gl_CXX_CHOICE_DEFAULT_NO is defined.
7114         Requested by Eric Blake.
7115
7116 2010-03-28  Bruno Haible  <bruno@clisp.org>
7117
7118         unistd: Avoid #define replacements in C++ mode.
7119         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7120         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7121         setsockopt, shutdown, select): In C++, attach a warning to the function
7122         if possible, rather than #defining the symbol to a dysfunctional alias.
7123         Reported by John W. Eaton <jwe@gnu.org>.
7124
7125 2010-03-28  Bruno Haible  <bruno@clisp.org>
7126
7127         Fix link errors on mingw.
7128         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7129         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7130         $(LIBSOCKET).
7131         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7132         $(LIBSOCKET).
7133
7134 2010-03-28  Bruno Haible  <bruno@clisp.org>
7135             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7136
7137         lib-ignore: Determine different options for different compilers.
7138         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7139         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7140         Add comments.
7141         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7142         * NEWS: Mention the change.
7143
7144 2010-03-27  Bruno Haible  <bruno@clisp.org>
7145
7146         Remove unused GNULIB_XYZ macro definitions.
7147         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7148         * modules/fseek (configure.ac): Likewise.
7149         * modules/ioctl (configure.ac): Likewise.
7150         * modules/open (configure.ac): Likewise.
7151         * modules/stdlib-safer (configure.ac): Likewise.
7152
7153 2010-03-27  Bruno Haible  <bruno@clisp.org>
7154
7155         Add a remark about certain modules.
7156         * modules/malloc (Comment): New section.
7157         * modules/realloc (Comment): Likewise.
7158         * modules/sigpipe (Comment): Likewise.
7159
7160 2010-03-27  Bruno Haible  <bruno@clisp.org>
7161
7162         Resolve conflict between the two kinds of module indicators.
7163         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7164         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7165         * modules/canonicalize (configure.ac): Invoke
7166         gl_MODULE_INDICATOR_FOR_TESTS.
7167         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7168         GNULIB_XYZ.
7169         * tests/test-dirent-c++.cc: Likewise.
7170         * tests/test-dirent-safer.c: Likewise.
7171         * tests/test-dup2.c: Likewise.
7172         * tests/test-fchdir.c: Likewise.
7173         * tests/test-fcntl-h-c++.cc: Likewise.
7174         * tests/test-getopt.c: Likewise.
7175         * tests/test-getopt.h: Likewise.
7176         * tests/test-langinfo-c++.cc: Likewise.
7177         * tests/test-locale-c++.cc: Likewise.
7178         * tests/test-math-c++.cc: Likewise.
7179         * tests/test-pty-c++.cc: Likewise.
7180         * tests/test-search-c++.cc: Likewise.
7181         * tests/test-signal-c++.cc: Likewise.
7182         * tests/test-spawn-c++.cc: Likewise.
7183         * tests/test-stdio-c++.cc: Likewise.
7184         * tests/test-stdlib-c++.cc: Likewise.
7185         * tests/test-string-c++.cc: Likewise.
7186         * tests/test-sys_ioctl-c++.cc: Likewise.
7187         * tests/test-sys_select-c++.cc: Likewise.
7188         * tests/test-sys_socket-c++.cc: Likewise.
7189         * tests/test-sys_stat-c++.cc: Likewise.
7190         * tests/test-sys_time-c++.cc: Likewise.
7191         * tests/test-time-c++.cc: Likewise.
7192         * tests/test-unistd-c++.cc: Likewise.
7193         * tests/test-wchar-c++.cc: Likewise.
7194         * tests/uninorm/test-u8-nfc.c: Likewise.
7195         * tests/uninorm/test-u8-nfd.c: Likewise.
7196         * tests/uninorm/test-u8-nfkc.c: Likewise.
7197         * tests/uninorm/test-u8-nfkd.c: Likewise.
7198         * tests/uninorm/test-u16-nfc.c: Likewise.
7199         * tests/uninorm/test-u16-nfd.c: Likewise.
7200         * tests/uninorm/test-u16-nfkc.c: Likewise.
7201         * tests/uninorm/test-u16-nfkd.c: Likewise.
7202         * tests/uninorm/test-u32-nfc.c: Likewise.
7203         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7204         * tests/uninorm/test-u32-nfd.c: Likewise.
7205         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7206         * tests/uninorm/test-u32-nfkc.c: Likewise.
7207         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7208         * tests/uninorm/test-u32-nfkd.c: Likewise.
7209         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7210         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7211
7212 2010-03-27  Bruno Haible  <bruno@clisp.org>
7213
7214         Distinguish two kinds of module indicators.
7215         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7216         gl_MODULE_INDICATOR.
7217         (gl_MODULE_INDICATOR): New macro.
7218         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7219         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7220         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7221         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7222         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7223         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7224         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7225         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7226         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7227         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7228         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7229         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7232         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7233         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7234         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7235         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7236         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7237         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7238         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7239         * modules/cloexec (configure.ac): Likewise.
7240         * modules/getopt-gnu (configure.ac): Likewise.
7241         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7242         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7243         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7244         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7245
7246 2010-03-27  Bruno Haible  <bruno@clisp.org>
7247
7248         New module description field 'Comment'.
7249         * gnulib-tool: New option --extract-comment.
7250         (func_usage): Document it.
7251         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7252         (func_get_comment): New function.
7253         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7254
7255 2010-03-27  Bruno Haible  <bruno@clisp.org>
7256
7257         Addendum to 2010-02-07 commit.
7258         * gnulib-tool (func_usage): Document --extract-applicability option.
7259
7260 2010-03-27  Bruno Haible  <bruno@clisp.org>
7261
7262         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7263         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7264         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7265         rather than link errors.
7266
7267 2010-03-27  Bruno Haible  <bruno@clisp.org>
7268
7269         Avoid side effects from tests-related modules on the compilation of lib.
7270         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7271         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7272         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7273         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7274         macro.
7275         (func_import): Define a witness macro. Assign it a value that depends
7276         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7277         tests-related modules.
7278         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7279         Reported by Jim Meyering.
7280
7281 2010-03-27  Bruno Haible  <bruno@clisp.org>
7282
7283         Factorize common .m4 code.
7284         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7285         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7286         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7287         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7288         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7289         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7290         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7291         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7292         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7293         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7294         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7295         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7296         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7297         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7298         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7299         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7300         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7301         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7303         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7306         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7307         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7308         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7309         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7310         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7311         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7312         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7313         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7314         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7315         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7316
7317 2010-03-27  Bruno Haible  <bruno@clisp.org>
7318
7319         Fix a compilation error on Cygwin with g++ >= 4.3.
7320         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7321         if it is undefined or if we alias it to chmod.
7322         (lstat): Don't warn about the use of this function if it is undefined
7323         or if we alias it to stat.
7324         Reported by Simon Josefsson.
7325
7326 2010-03-27  Bruno Haible  <bruno@clisp.org>
7327
7328         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7329         * modules/getlogin (configure.ac): Update.
7330
7331         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7332         * modules/getlogin_r (configure.ac): Update.
7333
7334         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7336         * modules/inet_ntop (configure.ac): Update.
7337
7338         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7339         * modules/inet_pton (configure.ac): Update.
7340
7341         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7342         * modules/mbslen (configure.ac): Update.
7343
7344         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7345         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7346         * modules/forkpty (configure.ac): Update.
7347         * modules/openpty (configure.ac): Update.
7348
7349 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7350
7351         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7352         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7353
7354 2010-03-25  Eric Blake  <eblake@redhat.com>
7355
7356         maint: use pragma consistently across replacement headers
7357         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7358         * lib/dirent.in.h (system_header): Likewise.
7359         * lib/errno.in.h (system_header): Likewise.
7360         * lib/float.in.h (system_header): Likewise.
7361         * lib/getopt.in.h (system_header): Likewise.
7362         * lib/iconv.in.h (system_header): Likewise.
7363         * lib/inttypes.in.h (system_header): Likewise.
7364         * lib/langinfo.in.h (system_header): Likewise.
7365         * lib/locale.in.h (system_header): Likewise.
7366         * lib/math.in.h (system_header): Likewise.
7367         * lib/netdb.in.h (system_header): Likewise.
7368         * lib/netinet_in.in.h (system_header): Likewise.
7369         * lib/pty.in.h (system_header): Likewise.
7370         * lib/sched.in.h (system_header): Likewise.
7371         * lib/se-selinux.in.h (system_header): Likewise.
7372         * lib/search.in.h (system_header): Likewise.
7373         * lib/spawn.in.h (system_header): Likewise.
7374         * lib/stdarg.in.h (system_header): Likewise.
7375         * lib/stdint.in.h (system_header): Likewise.
7376         * lib/string.in.h (system_header): Likewise.
7377         * lib/strings.in.h (system_header): Likewise.
7378         * lib/sys_file.in.h (system_header): Likewise.
7379         * lib/sys_ioctl.in.h (system_header): Likewise.
7380         * lib/sys_socket.in.h (system_header): Likewise.
7381         * lib/sys_times.in.h (system_header): Likewise.
7382         * lib/sys_utsname.in.h (system_header): Likewise.
7383         * lib/sys_wait.in.h (system_header): Likewise.
7384         * lib/sysexits.in.h (system_header): Likewise.
7385         * lib/unistd.in.h (system_header): Likewise.
7386         * lib/wctype.in.h (system_header): Likewise.
7387
7388         arpa/inet: fix mingw compilation warning
7389         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7390         Reported by Matthew Bolte.
7391
7392 2010-03-25  Bruno Haible  <bruno@clisp.org>
7393
7394         Avoid collision between gnulib wrapper and libintl wrapper.
7395         * lib/printf.c (printf): Don't define if a printf wrapper is already
7396         defined in intl/printf.c.
7397         Reported by Michel Boaventura <michel@michelboaventura.com>.
7398
7399 2010-03-25  Bruno Haible  <bruno@clisp.org>
7400
7401         Use ANSI C.
7402         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7403
7404 2010-03-25  Bruno Haible  <bruno@clisp.org>
7405
7406         Minor formatting changes.
7407         * lib/acosl.c: Insert space before function argument list.
7408         * lib/argz.c: Likewise.
7409         * lib/asinl.c: Likewise.
7410         * lib/expl.c: Likewise.
7411         * lib/gen-uni-tables.c: Likewise.
7412         * lib/gettext.h: Likewise.
7413         * lib/glthread/lock.h: Likewise.
7414         * lib/tanl.c: Likewise.
7415         * lib/uniname/uniname.c: Likewise.
7416         * tests/test-idpriv-drop.c: Likewise.
7417         * tests/test-idpriv-droptemp.c: Likewise.
7418         * tests/test-lock.c: Likewise.
7419         * tests/test-tls.c: Likewise.
7420         * lib/argp-help.c: Insert space before function-like macro argument
7421         list.
7422         * lib/memcmp.c: Likewise.
7423         * tests/test-base64.c: Likewise.
7424         * lib/localename.c: Insert space before sizeof's argument list.
7425         * lib/safe-alloc.h: Likewise.
7426         * lib/file-set.h: Insert space before macro argument list.
7427         * tests/test-argp.c: Likewise.
7428         * lib/argp-namefrob.h: Insert space before function parameter list.
7429         * lib/getaddrinfo.c: Likewise.
7430         * lib/netdb.in.h: Likewise.
7431         * lib/parse-duration.h: Likewise.
7432         * lib/parse-duration.c: Likewise.
7433         * lib/poll.c: Likewise.
7434         * lib/select.c: Likewise.
7435         * lib/trim.h: Likewise.
7436         * tests/test-usleep.c: Likewise.
7437         * lib/ldexpl.c: Insert space before function parameter list and before
7438         function argument list.
7439         * lib/logl.c: Likewise.
7440         * lib/sqrtl.c: Likewise.
7441         * lib/trim.c: Likewise.
7442         * lib/cosl.c: Use GNU style indentation. Insert space before function
7443         argument list.
7444         * lib/sinl.c: Likewise.
7445         * lib/tsearch.c: Insert space after 'for'.
7446         Reported by Jim Meyering.
7447
7448 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7449
7450         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7451         config header before grepping, as it's not present before
7452         autoreconf/configure are run.  Reported by Simon Josefsson.
7453
7454 2010-03-23  Bruno Haible  <bruno@clisp.org>
7455
7456         pt_chown: Make it work with automake < 1.11.
7457         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7458         Reported by Simon Josefsson.
7459
7460 2010-03-23  Bruno Haible  <bruno@clisp.org>
7461
7462         pt_chown: Don't depend on GPLed modules.
7463         * lib/pt_chown.c: Don't include idpriv.h.
7464         (main): Don't drop privileges.
7465         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7466         Reported by Simon Josefsson.
7467
7468 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7469
7470         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7471         suggestions from karl@freefriends.org (Karl Berry).
7472
7473 2010-03-22  Eric Blake  <eblake@redhat.com>
7474
7475         gethostname: further tweaks
7476         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7477         are overriding gethostname.
7478         Suggested by Bruno Haible.
7479
7480 2010-03-21  Bruno Haible  <bruno@clisp.org>
7481
7482         Fix comments.
7483         * lib/forkpty.c (rpl_forkpty): Fix comment.
7484         * lib/openpty.c (rpl_openpty): Likewise.
7485         Reported by Eric Blake.
7486
7487 2010-03-22  Eric Blake  <eblake@redhat.com>
7488
7489         gethostname: fix build on mingw
7490         * lib/unistd.in.h (includes): Work around fact that mingw
7491         <winsock2.h> re-includes <unistd.h>, by avoiding any
7492         redeclarations if we are being included by <winsock2.h>.
7493         Reported by Matthias Bolte.
7494
7495 2010-03-21  Bruno Haible  <bruno@clisp.org>
7496
7497         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7498         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7499         modifications.
7500         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7501         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7502         provide the replacement.
7503         * modules/forkpty (Depends-on): Add openpty, login_tty.
7504         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7505         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7506         * doc/glibc-functions/forkpty.texi: More supported platforms.
7507         * config/srclist.txt: Add forkpty.c (commented).
7508
7509 2010-03-21  Bruno Haible  <bruno@clisp.org>
7510
7511         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7512         (Makefile.am): Verify that PTY_LIB is defined.
7513
7514         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7515
7516 2010-03-21  Bruno Haible  <bruno@clisp.org>
7517
7518         Tests for module 'login_tty'.
7519         * modules/login_tty-tests: New file.
7520         * tests/test-login_tty.c: New file.
7521
7522         New module 'login_tty'.
7523         * lib/login_tty.c: New file.
7524         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7525         * modules/login_tty: New file.
7526         * doc/glibc-functions/login_tty.texi: Mention the new module.
7527
7528 2010-03-21  Bruno Haible  <bruno@clisp.org>
7529
7530         login_tty: Documentation.
7531         * doc/glibc-functions/login_tty.texi: New file.
7532         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7533
7534 2010-03-21  Bruno Haible  <bruno@clisp.org>
7535
7536         pty: Consistent macro naming.
7537         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7538         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7539         * modules/pty (configure.ac): Update.
7540
7541 2010-03-21  Bruno Haible  <bruno@clisp.org>
7542
7543         Tests for openpty: Make stricter.
7544         * tests/test-openpty.c (main): Add test of canonical processing and
7545         erase.
7546         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7547
7548         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7549         * lib/openpty.c (openpty): New replacement function.
7550         * lib/pty.in.h: Include <termios.h>.
7551         (openpty): Update declaration. Add comments.
7552         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7553         is not declared, arrange to provide the replacement. Check for _getpty
7554         and posix_openpt.
7555         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7556         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7557         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7558         * modules/pty-tests (test_pty_c___LDADD): New variable.
7559         * doc/glibc-functions/openpty.texi: More supported platforms.
7560
7561 2010-03-21  Bruno Haible  <bruno@clisp.org>
7562
7563         setenv: Tweaks.
7564         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7565         the test program.
7566         * doc/posix-functions/setenv.texi: Update platforms list.
7567
7568 2010-03-21  Bruno Haible  <bruno@clisp.org>
7569
7570         New module 'unlockpt'.
7571         * lib/unlockpt.c: New file, from glibc with modifications.
7572         * m4/unlockpt.m4: New file.
7573         * modules/unlockpt: New file.
7574         * lib/stdlib.in.h (unlockpt): New declaration.
7575         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7576         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7577         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7578         HAVE_UNLOCKPT.
7579         * doc/posix-functions/unlockpt.texi: Mention the new module.
7580         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7581         * config/srclist.txt: Add unlockpt.c (commented).
7582
7583 2010-03-21  Jim Meyering  <meyering@redhat.com>
7584
7585         maint.mk: prohibit inclusion of "intprops.h" without use
7586         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7587
7588 2010-03-21  Bruno Haible  <bruno@clisp.org>
7589
7590         New module 'grantpt'.
7591         * lib/grantpt.c: New file, from glibc with modifications.
7592         * m4/grantpt.m4: New file.
7593         * modules/grantpt: New file.
7594         * lib/stdlib.in.h (grantpt): New declaration.
7595         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7596         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7597         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7598         HAVE_GRANTPT.
7599         * doc/posix-functions/grantpt.texi: Mention the new module.
7600         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7601         * config/srclist.txt: Add grantpt.c (commented).
7602
7603 2010-03-21  Bruno Haible  <bruno@clisp.org>
7604
7605         New module 'pt_chown'.
7606         * lib/pt_chown.c: New file, from glibc with modifications.
7607         * lib/pty-private.h: New file, from glibc with modifications.
7608         * modules/pt_chown: New file.
7609         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7610
7611 2010-03-21  Bruno Haible  <bruno@clisp.org>
7612
7613         Tests for module 'ptsname'.
7614         * modules/ptsname-tests: New file.
7615         * tests/test-ptsname.c: New file.
7616
7617         New module 'ptsname'.
7618         * lib/ptsname.c: New file, from glibc with modifications.
7619         * m4/ptsname.m4: New file.
7620         * modules/ptsname: New file.
7621         * lib/stdlib.in.h (ptsname): New declaration.
7622         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7623         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7624         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7625         HAVE_PTSNAME.
7626         * doc/posix-functions/ptsname.texi: Mention the new module.
7627         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7628         * config/srclist.txt: Add ptsname.c (commented).
7629
7630 2010-03-21  Bruno Haible  <bruno@clisp.org>
7631
7632         Tests for module 'ttyname_r'.
7633         * modules/ttyname_r-tests: New file.
7634         * tests/test-ttyname_r.c: New file.
7635
7636         New module 'ttyname_r'.
7637         * lib/ttyname_r.c: New file.
7638         * m4/ttyname_r.m4: New file.
7639         * modules/ttyname_r: New file.
7640         * lib/unistd.in.h (ttyname_r): New declaration.
7641         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7642         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7643         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7644         HAVE_TTYNAME_R.
7645         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7646         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7647
7648 2010-03-20  Bruno Haible  <bruno@clisp.org>
7649
7650         signal: Undefine macro definitions in C++ mode.
7651         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7652         sigfillset): Undefine macro definitions from the system header in C++
7653         mode.
7654         Reported by John W. Eaton <jwe@gnu.org>.
7655
7656 2010-03-20  Bruno Haible  <bruno@clisp.org>
7657
7658         Ensure no #include statements inside extern "C" { ... }.
7659         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7660         contain #include statements.
7661         * lib/time.in.h: Likewise.
7662
7663 2010-03-20  Bruno Haible  <bruno@clisp.org>
7664
7665         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7666         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7667         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7668         Reported by John W. Eaton <jwe@gnu.org>.
7669
7670 2010-03-20  Bruno Haible  <bruno@clisp.org>
7671
7672         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7673         Reported by Jim Meyering.
7674
7675 2010-03-20  Bruno Haible  <bruno@clisp.org>
7676
7677         pipe: Set errno upon failure.
7678         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7679         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7680         errno value in error message.
7681
7682 2010-03-20  Bruno Haible  <bruno@clisp.org>
7683             Jim Meyering  <meyering@redhat.com>
7684
7685         lchown: Avoid "unused variable" warning.
7686         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7687
7688 2010-03-20  Bruno Haible  <bruno@clisp.org>
7689
7690         Work around unlink() bug on MacOS X 10.5.6.
7691         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7692         attempting to unlink a parent directory.
7693         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7694         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7695         activate for the replacement function.
7696         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7697
7698 2010-03-20  Bruno Haible  <bruno@clisp.org>
7699
7700         Fix link errors on Solaris 8.
7701         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7702         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7703
7704 2010-03-19  Jim Meyering  <meyering@redhat.com>
7705
7706         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7707         The _LIBC implementation of build_range_exp correctly honors the
7708         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7709         However, the non-_LIBC implementation would ignore that syntax-bit
7710         flag and return REG_ERANGE unconditionally.
7711         This change makes it honor that flag.
7712         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7713         Make two pointer parameters "const".
7714         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7715         (parse_bracket_exp): Update caller.
7716
7717         regex.m4: correct the reversed range endpoint ([b-a]) test
7718         * m4/regex.m4: When requiring that [b-a] evoke failure,
7719         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7720         test pass once again for x86-based systems.
7721
7722 2010-03-19  Bruno Haible  <bruno@clisp.org>
7723
7724         scandir: Fix link error on Solaris 8.
7725         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7726         macros.
7727
7728 2010-03-19  Bruno Haible  <bruno@clisp.org>
7729
7730         getusershell: Fix documentation.
7731         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7732         module.
7733         * doc/glibc-functions/setusershell.texi: Likewise.
7734
7735         getusershell: Provide declaration, missing on Solaris 9.
7736         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7737         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7738         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7739         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7741         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7742         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7743         HAVE_GETUSERSHELL.
7744         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7745
7746 2010-03-19  Bruno Haible  <bruno@clisp.org>
7747
7748         wctype: Provide iswblank function.
7749         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7750         exists and is fine.
7751         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7752         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7753         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7754         * doc/posix-functions/iswblank.texi: Update.
7755
7756 2010-03-19  Bruno Haible  <bruno@clisp.org>
7757
7758         Tests of module 'pty' in C++ mode.
7759         * modules/pty-tests: New file.
7760         * tests/test-pty-c++.cc: New file.
7761         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7762
7763 2010-03-19  Eric Blake  <eblake@redhat.com>
7764
7765         logb: fix documentation
7766         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7767         1.5 declaration bug.
7768
7769         forkpty, openpty: prefer glibc's const-safe prototype
7770         * lib/forkpty.c (rpl_forkpty): New file.
7771         * lib/openpty.c (rpl_openpty): Likewise.
7772         * modules/forkpty (Files): Distribute it.
7773         * modules/openpty (Files): Likewise.
7774         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7775         check...
7776         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7777         replacement for for non-const BSD signature.
7778         * modules/pty (Makefile.am): Substitute witnesses.
7779         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7780         * tests/test-forkpty.c: Update signature check.
7781         * tests/test-openpty.c: Likewise.
7782         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7783         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7784
7785         forkpty, openpty: split functions into new modules
7786         * modules/pty (Makefile.am): Substitute new witnesses.
7787         (Libraries): Move library detection...
7788         * modules/forkpty: ...into new module.
7789         * modules/openpty: Another new module.
7790         * modules/pty-tests: Rename and split...
7791         * modules/forkpty-tests: ...to this...
7792         * modules/openpty-tests: ...and this.
7793         * tests/test-pty.c: Rename and split...
7794         * tests/test-forkpty.c: ...to this...
7795         * tests/test-openpty.c: ...and this.
7796         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7797         (gl_PTY): Split library searching...
7798         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7799         (gl_FORKPTY, gl_OPENPTY): New macros.
7800         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7801         * NEWS: Mention the split.
7802         * MODULES.html.sh (Misc): Document the modules.
7803         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7804         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7805
7806         pty: improve replacement header
7807         * lib/pty.in.h: New file.
7808         * modules/pty (Files): Ship it.
7809         (Makefile.am): Always build replacement.
7810         * m4/pty.m4: Rename...
7811         * m4/pty_h.m4: ...to this.
7812         (gl_PTY): Modernize setting of witness macros; update check of
7813         forkpty to take proper advantage of cache.
7814         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7815
7816         getopt: avoid compiler warning
7817         * lib/getopt.c (attribute_hidden): Remove unused macro.
7818
7819 2010-03-18  Bruno Haible  <bruno@clisp.org>
7820
7821         Fix link errors on Solaris 8.
7822         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7823         * modules/search-tests (test_search_c___LDADD): Likewise.
7824         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7825         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7826         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7827         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7828         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7829         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7830         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7831
7832 2010-03-18  Bruno Haible  <bruno@clisp.org>
7833
7834         Fix bug introduced on 2010-03-14.
7835         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7836         (gl_SPAWN_H): Require it.
7837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7838         Reported by Simon Josefsson.
7839
7840 2010-03-18  Bruno Haible  <bruno@clisp.org>
7841
7842         Fix typo introduced on 2009-12-31.
7843         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7844         posix_spawn_file_actions_adddup2.
7845
7846 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7847         and Eric Blake  <eblake@redhat.com>
7848
7849         test-vc-list-files-git: make more robust
7850         * tests/test-vc-list-files-git.sh: Unset problematic environment
7851         variables.  Chain commands together.
7852
7853 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7854
7855         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7856         `AC_CHECK_DECL' invocation.
7857
7858 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7859
7860         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7861         appears before executable statements. Suggested by Petr Sumbera
7862         <Petr.Sumbera@Sun.COM>.
7863
7864 2010-03-14  Bruno Haible  <bruno@clisp.org>
7865
7866         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7867         portability problems. Instead use a simpler test.
7868         (main): Check that invalid arguments are rejected only on Linux.
7869
7870 2010-03-14  Bruno Haible  <bruno@clisp.org>
7871
7872         Fix bug introduced on 2009-12-31.
7873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7874         gl_PREREQ_SYS_H_WINSOCK2 always.
7875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7876         SYS_SOCKET_H variable.
7877         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7878         Update comments.
7879         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7880         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7881         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7882         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7883         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7884
7885 2010-03-14  Bruno Haible  <bruno@clisp.org>
7886
7887         Fix values returned by sinl, cosl.
7888         * lib/trigl.h: Add specification comments.
7889         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7890         that combines the values from the precomputed table with the values of
7891         the Chebyshev polynomials.
7892
7893 2010-03-14  Bruno Haible  <bruno@clisp.org>
7894
7895         Fix compilation error when modules 'posix_spawn[p]' are not used.
7896         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7898
7899 2010-03-14  Bruno Haible  <bruno@clisp.org>
7900
7901         Fix compilation error on mingw when module 'time_r' is not used.
7902         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7903         is 1.
7904         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7905         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7906         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7907         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7908
7909 2010-03-14  Bruno Haible  <bruno@clisp.org>
7910
7911         Fix compilation error with Sun C.
7912         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7913         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7914         instead of GCC specific ULONG_LONG_MAX.
7915         * lib/xstrtoll.c: Likewise.
7916         * lib/xstrtoull.c: Likewise.
7917
7918 2010-03-13  Bruno Haible  <bruno@clisp.org>
7919
7920         Allow the user to disable C++ code and tests.
7921         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7922         (gl_PROG_ANSI_CXX): Require it.
7923
7924 2010-03-13  Bruno Haible  <bruno@clisp.org>
7925
7926         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7927         cases.
7928
7929 2010-03-13  Bruno Haible  <bruno@clisp.org>
7930
7931         Test that gnulib does not break the standard C++ headers.
7932         * tests/test-locale-c++2.cc: New file.
7933         * modules/locale-tests (Files): Add it.
7934         (Makefile.am): Compile it for test-locale-c++.
7935         * tests/test-math-c++2.cc: New file.
7936         * modules/math-tests (Files): Add it.
7937         (Makefile.am): Compile it for test-math-c++.
7938         * tests/test-signal-c++2.cc: New file.
7939         * modules/signal-tests (Files): Add it.
7940         (Makefile.am): Compile it for test-signal-c++.
7941         * tests/test-stdio-c++2.cc: New file.
7942         * modules/stdio-tests (Files): Add it.
7943         (Makefile.am): Compile it for test-stdio-c++.
7944         * tests/test-stdlib-c++2.cc: New file.
7945         * modules/stdlib-tests (Files): Add it.
7946         (Makefile.am): Compile it for test-stdlib-c++.
7947         * tests/test-string-c++2.cc: New file.
7948         * modules/string-tests (Files): Add it.
7949         (Makefile.am): Compile it for test-string-c++.
7950         * tests/test-time-c++2.cc: New file.
7951         * modules/time-tests (Files): Add it.
7952         (Makefile.am): Compile it for test-time-c++.
7953         Reported by John W. Eaton <jwe@gnu.org>.
7954
7955 2010-03-13  Bruno Haible  <bruno@clisp.org>
7956
7957         * gnulib-tool (func_usage): Clarify which options are available for
7958         --create-testdir and --create-megatestdir.
7959
7960 2010-03-13  Bruno Haible  <bruno@clisp.org>
7961
7962         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7963         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7964         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7965         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7966         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7967         when appropriate.
7968         Reported by Jim Meyering.
7969
7970 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7971
7972         * gnulib-tool (func_import): Explain origin of code.
7973
7974 2010-03-12  Bruno Haible  <bruno@clisp.org>
7975
7976         Fix problem with automake's definition of CXXLINK.
7977         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7978         Reported by Simon Josefsson and Ludovic Courtès.
7979
7980 2010-03-12  Bruno Haible  <bruno@clisp.org>
7981
7982         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7983         stable releases.
7984
7985 2010-03-11  Bruno Haible  <bruno@clisp.org>
7986
7987         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7988         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7989         whether the system provides one variant or multiple variants of the
7990         function.
7991         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7992         C++ compilers.
7993         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7994         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7995         Reported by Jim Meyering.
7996
7997 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7998
7999         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8000
8001 2010-03-08  Bruno Haible  <bruno@clisp.org>
8002
8003         gnulib-tool: Add support for --libtool in --create-testdir.
8004         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8005         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8006
8007 2010-03-08  Eric Blake  <eblake@redhat.com>
8008
8009         gnulib-tool.texi: mention possibility of git submodule
8010         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8011         submodules.
8012         * doc/.gitignore: Ignore another generated file.
8013
8014 2010-03-08  Karl Berry  <karl@gnu.org>
8015
8016         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8017         of committing gnulib files while skipping others.
8018
8019 2010-03-07  Bruno Haible  <bruno@clisp.org>
8020
8021         Tests of module 'wctype' in C++ mode.
8022         * tests/test-wctype-c++.cc: New file.
8023         * modules/wctype-tests (Files): Add it and tests/signature.h.
8024         (Depends-on): Add ansi-c++-opt.
8025         (Makefile.am): Arrange to compile and run test-wctype-c++.
8026
8027         Tests of module 'wchar' in C++ mode.
8028         * tests/test-wchar-c++.cc: New file.
8029         * modules/wchar-tests (Files): Add it and tests/signature.h.
8030         (Depends-on): Add ansi-c++-opt.
8031         (Makefile.am): Arrange to compile and run test-wchar-c++.
8032         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8033         gl_MODULE_INDICATOR.
8034
8035         Tests of module 'unistd' in C++ mode.
8036         * tests/test-unistd-c++.cc: New file.
8037         * modules/unistd-tests (Files): Add it and tests/signature.h.
8038         (Depends-on): Add ansi-c++-opt.
8039         (Makefile.am): Arrange to compile and run test-unistd-c++.
8040         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8041         gl_MODULE_INDICATOR.
8042
8043         Tests of module 'time' in C++ mode.
8044         * tests/test-time-c++.cc: New file.
8045         * modules/time-tests (Files): Add it and tests/signature.h.
8046         (Depends-on): Add ansi-c++-opt.
8047         (Makefile.am): Arrange to compile and run test-time-c++.
8048         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8049
8050         Tests of module 'sys_time' in C++ mode.
8051         * tests/test-sys_time-c++.cc: New file.
8052         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8053         (Depends-on): Add ansi-c++-opt.
8054         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8055         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8056         gl_MODULE_INDICATOR.
8057
8058         Tests of module 'sys_stat' in C++ mode.
8059         * tests/test-sys_stat-c++.cc: New file.
8060         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8061         (Depends-on): Add ansi-c++-opt.
8062         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8063         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8064         gl_MODULE_INDICATOR.
8065
8066         Tests of module 'sys_socket' in C++ mode.
8067         * tests/test-sys_socket-c++.cc: New file.
8068         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8069         (Depends-on): Add ansi-c++-opt.
8070         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8072         gl_MODULE_INDICATOR.
8073
8074         Tests of module 'sys_select' in C++ mode.
8075         * tests/test-sys_select-c++.cc: New file.
8076         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8077         (Depends-on): Add ansi-c++-opt.
8078         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8079         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8080         gl_MODULE_INDICATOR.
8081
8082         Tests of module 'sys_ioctl' in C++ mode.
8083         * tests/test-sys_ioctl-c++.cc: New file.
8084         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8085         (Depends-on): Add ansi-c++-opt.
8086         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8087         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8088         gl_MODULE_INDICATOR.
8089
8090         Tests of module 'string' in C++ mode.
8091         * tests/test-string-c++.cc: New file.
8092         * modules/string-tests (Files): Add it and tests/signature.h.
8093         (Depends-on): Add ansi-c++-opt.
8094         (Makefile.am): Arrange to compile and run test-string-c++.
8095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8096         gl_MODULE_INDICATOR.
8097
8098         Tests of module 'stdlib' in C++ mode.
8099         * tests/test-stdlib-c++.cc: New file.
8100         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8101         (Depends-on): Add ansi-c++-opt.
8102         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8103         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8104         gl_MODULE_INDICATOR.
8105
8106         Tests of module 'stdio' in C++ mode.
8107         * tests/test-stdio-c++.cc: New file.
8108         * modules/stdio-tests (Files): Add it and tests/signature.h.
8109         (Depends-on): Add ansi-c++-opt.
8110         (Makefile.am): Arrange to compile and run test-stdio-c++.
8111         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8112         gl_MODULE_INDICATOR.
8113
8114         Tests of module 'spawn' in C++ mode.
8115         * tests/test-spawn-c++.cc: New file.
8116         * modules/spawn-tests (Files): Add it and tests/signature.h.
8117         (Depends-on): Add ansi-c++-opt.
8118         (Makefile.am): Arrange to compile and run test-spawn-c++.
8119         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8120         gl_MODULE_INDICATOR.
8121
8122         Tests of module 'signal' in C++ mode.
8123         * tests/test-signal-c++.cc: New file.
8124         * modules/signal-tests (Files): Add it and tests/signature.h.
8125         (Depends-on): Add ansi-c++-opt.
8126         (Makefile.am): Arrange to compile and run test-signal-c++.
8127         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8128         gl_MODULE_INDICATOR.
8129
8130         Tests of module 'search' in C++ mode.
8131         * tests/test-search-c++.cc: New file.
8132         * modules/search-tests (Files): Add it and tests/signature.h.
8133         (Depends-on): Add ansi-c++-opt.
8134         (Makefile.am): Arrange to compile and run test-search-c++.
8135         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8136         gl_MODULE_INDICATOR.
8137
8138         Tests of module 'math' in C++ mode.
8139         * tests/test-math-c++.cc: New file.
8140         * modules/math-tests (Files): Add it and tests/signature.h.
8141         (Depends-on): Add ansi-c++-opt.
8142         (Makefile.am): Arrange to compile and run test-math-c++.
8143         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8144
8145         Tests of module 'locale' in C++ mode.
8146         * tests/test-locale-c++.cc: New file.
8147         * modules/locale-tests (Files): Add it and tests/signature.h.
8148         (Depends-on): Add ansi-c++-opt.
8149         (Makefile.am): Arrange to compile and run test-locale-c++.
8150         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8151         gl_MODULE_INDICATOR.
8152
8153         Tests of module 'langinfo' in C++ mode.
8154         * tests/test-langinfo-c++.cc: New file.
8155         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8156         (Depends-on): Add ansi-c++-opt.
8157         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8158         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8159         gl_MODULE_INDICATOR.
8160
8161         Tests of module 'iconv-h' in C++ mode.
8162         * tests/test-iconv-h-c++.cc: New file.
8163         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8164         (Depends-on): Add ansi-c++-opt.
8165         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8166
8167         Tests of module 'glob' in C++ mode.
8168         * tests/test-glob-c++.cc: New file.
8169         * modules/glob-tests (Files): Add it.
8170         (Depends-on): Add ansi-c++-opt.
8171         (Makefile.am): Arrange to compile and run test-glob-c++.
8172
8173         Tests of module 'fcntl-h' in C++ mode.
8174         * tests/test-fcntl-h-c++.cc: New file.
8175         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8176         (Depends-on): Add ansi-c++-opt.
8177         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8178         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8179         gl_MODULE_INDICATOR.
8180
8181         Tests of module 'dirent' in C++ mode.
8182         * tests/test-dirent-c++.cc: New file.
8183         * modules/dirent-tests (Files): Add it and tests/signature.h.
8184         (Depends-on): Add ansi-c++-opt.
8185         (Makefile.am): Arrange to compile and run test-dirent-c++.
8186         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8187         gl_MODULE_INDICATOR.
8188
8189         New module 'ansi-c++-opt'.
8190         * modules/ansi-c++-opt: New file.
8191         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8192
8193         Document C++ namespace mode.
8194         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8195
8196         wctype: Avoid #define replacements in C++ mode.
8197         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8198         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8199         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8200         In C++, define a namespaced alias symbol.
8201         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8202         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8203         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8204         rule.
8205
8206         wchar: Avoid #define replacements in C++ mode.
8207         * lib/wchar.in.h: Include c++defs.h.
8208         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8209         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8210         symbol.
8211         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8212         * modules/wchar (Depends-on): Add c++defs.
8213         (Makefile.am): Update wchar.h rule.
8214
8215         unistd: Avoid #define replacements in C++ mode.
8216         * lib/unistd.in.h: Include c++defs.h.
8217         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8218         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8219         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8220         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8221         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8222         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8223         symbol.
8224         (environ): Update.
8225         * modules/unistd (Depends-on): Add c++defs.
8226         (Makefile.am): Update unistd.h rule.
8227
8228         time: Avoid #define replacements in C++ mode.
8229         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8230         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8231         define a namespaced alias symbol.
8232         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8233         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8234         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8235         * modules/time (Depends-on): Add c++defs, warn-on-use.
8236         (Makefile.am): Update time.h rule.
8237         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8238         * modules/nanosleep (configure.ac): Likewise.
8239         * modules/strptime (configure.ac): Likewise.
8240         * modules/timegm (configure.ac): Likewise.
8241
8242         sys_time: Avoid #define replacements in C++ mode.
8243         * lib/sys_time.in.h: Include c++defs.h.
8244         (gettimeofday): In C++, define a namespaced alias symbol.
8245         * modules/sys_time (Depends-on): Add c++defs.
8246         (Makefile.am): Update sys/time.h rule.
8247
8248         sys_stat: Avoid #define replacements in C++ mode.
8249         * lib/sys_stat.in.h: Include c++defs.h.
8250         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8251         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8252         namespaced alias symbol.
8253         In C++, define a namespaced alias symbol.
8254         * modules/sys_stat (Depends-on): Add c++defs.
8255         (Makefile.am): Update sys/stat.h rule.
8256
8257         sys_socket: Avoid #define replacements in C++ mode.
8258         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8259         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8260         definitions also when the system has a <sys/socket.h>.
8261         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8262         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8263         In C++, define a namespaced alias symbol.
8264         * modules/sys_socket (Depends-on): Add c++defs.
8265         (Makefile.am): Update sys/socket.h rule.
8266
8267         sys_select: Avoid #define replacements in C++ mode.
8268         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8269         definitions also when the system has a <sys/select.h>.
8270         (select): In C++, define a namespaced alias symbol.
8271         * modules/sys_select (Depends-on): Add c++defs.
8272         (Makefile.am): Update sys/select.h rule.
8273
8274         sys_ioctl: Avoid #define replacements in C++ mode.
8275         * lib/sys_ioctl.in.h: Include c++defs.h.
8276         (ioctl): In C++, define a namespaced alias symbol.
8277         * modules/sys_ioctl (Depends-on): Add c++defs.
8278         (Makefile.am): Update sys/ioctl.h rule.
8279
8280         string: Avoid #define replacements in C++ mode.
8281         * lib/string.in.h: Include c++defs.h.
8282         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8283         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8284         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8285         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8286         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8287         * modules/string (Depends-on): Add c++defs.
8288         (Makefile.am): Update string.h rule.
8289
8290         stdlib: Avoid #define replacements in C++ mode.
8291         * lib/stdlib.in.h: Include c++defs.h.
8292         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8293         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8294         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8295         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8296         symbol.
8297         * modules/stdlib (Depends-on): Add c++defs.
8298         (Makefile.am): Update stdlib.h rule.
8299
8300         stdio: Avoid #define replacements in C++ mode.
8301         * lib/stdio.in.h: Include c++defs.h.
8302         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8303         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8304         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8305         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8306         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8307         namespaced alias symbol.
8308         * modules/stdio (Depends-on): Add c++defs.
8309         (Makefile.am): Update stdio.h rule.
8310
8311         spawn: Avoid #define replacements in C++ mode.
8312         * lib/spawn.in.h: Include c++defs.h.
8313         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8314         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8315         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8316         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8317         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8318         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8319         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8320         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8321         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8322         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8323         In C++, define a namespaced alias symbol.
8324         * modules/spawn (Depends-on): Add c++defs.
8325         (Makefile.am): Update spawn.h rule.
8326
8327         signal: Avoid #define replacements in C++ mode.
8328         * lib/signal.in.h: Include c++defs.h.
8329         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8330         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8331         namespaced alias symbol.
8332         * modules/signal (Depends-on): Add c++defs.
8333         (Makefile.am): Update signal.h rule.
8334
8335         search: Avoid #define replacements in C++ mode.
8336         * lib/search.in.h: Include c++defs.h.
8337         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8338         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8339         symbol.
8340         * modules/search (Depends-on): Add c++defs.
8341         (Makefile.am): Update search.h rule.
8342
8343         math: Avoid #define replacements in C++ mode.
8344         * lib/math.in.h: Include c++defs.h.
8345         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8346         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8347         trunc, truncl): In C++, define a namespaced alias symbol.
8348         * modules/math (Depends-on): Add c++defs.
8349         (Makefile.am): Update math.h rule.
8350
8351         locale: Avoid #define replacements in C++ mode.
8352         * lib/locale.in.h: Include c++defs.h.
8353         (duplocale): In C++, define a namespaced alias symbol.
8354         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8355         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8356         * modules/locale (Depends-on): Add c++defs.
8357         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8358
8359         langinfo: Avoid #define replacements in C++ mode.
8360         * lib/langinfo.in.h: Include c++defs.h.
8361         (nl_langinfo): In C++, define a namespaced alias symbol.
8362         * modules/langinfo (Depends-on): Add c++defs.
8363         (Makefile.am): Update langinfo.h rule.
8364
8365         iconv-h: Avoid #define replacements in C++ mode.
8366         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8367         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8368         symbol.
8369         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8370         whenever iconv is present.
8371         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8372         (Makefile.am): Update iconv.h rule.
8373
8374         glob: Avoid #define replacements in C++ mode.
8375         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8376         (_gl_glob_errfunc_fn): New type.
8377         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8378         symbol.
8379         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8380         (Makefile.am): Update glob.h rule.
8381
8382         fcntl-h: Avoid #define replacements in C++ mode.
8383         * lib/fcntl.in.h: Include c++defs.h.
8384         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8385         * modules/fcntl-h (Depends-on): Add c++defs.
8386         (Makefile.am): Update fcntl.h rule.
8387
8388         dirent: Avoid #define replacements in C++ mode.
8389         * lib/dirent.in.h: Include c++defs.h.
8390         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8391         namespaced alias symbol.
8392         (dirfd): Update declaration.
8393         * modules/dirent (Depends-on): Add c++defs.
8394         (Makefile.am): Update dirent.h rule.
8395
8396         ctype: Make it usable in C++ code.
8397         * lib/ctype.in.h: Include c++defs.h.
8398         (isblank): Declare as extern "C".
8399         * modules/ctype (Depends-on): Add c++defs.
8400         (Makefile.am): Update ctype.h rule.
8401
8402         New module 'c++defs'.
8403         * modules/c++defs: New file.
8404         * build-aux/c++defs.h: New file.
8405         Reported by John W. Eaton <jwe@gnu.org>.
8406
8407 2010-03-07  Bruno Haible  <bruno@clisp.org>
8408
8409         logb: Provide missing declaration for Cygwin.
8410         * lib/math.in.h (logb): New declaration.
8411         * m4/logb.m4: New file.
8412         * modules/logb (Files): Add m4/logb.m4.
8413         (Depends-on): Add math.
8414         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8415         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8417         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8418         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8419
8420 2010-03-07  Bruno Haible  <bruno@clisp.org>
8421
8422         Fix test-cond link error.
8423         * tests/test-cond.c: Include <stdio.h>.
8424
8425 2010-03-07  Bruno Haible  <bruno@clisp.org>
8426
8427         Fix test-dirent-safer link error.
8428         * modules/dirent-safer-tests (Makefile.am): Define
8429         test_dirent_safer_LDADD.
8430
8431 2010-03-07  Bruno Haible  <bruno@clisp.org>
8432
8433         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8434         among default module list.
8435
8436 2010-03-07  Bruno Haible  <bruno@clisp.org>
8437
8438         Fix link error on platforms with GNU libiconv.
8439         * modules/unistr/u8-strcoll-tests (Makefile): Define
8440         test_u8_strcoll_LDADD.
8441         * modules/unistr/u16-strcoll-tests (Makefile): Define
8442         test_u16_strcoll_LDADD.
8443         * modules/unistr/u32-strcoll-tests (Makefile): Define
8444         test_u32_strcoll_LDADD.
8445
8446 2010-03-07  Bruno Haible  <bruno@clisp.org>
8447
8448         Use POSIX declarations for socket functions.
8449         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8450         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8451         rpl_sendto): Change declaration to match POSIX.
8452         * lib/connect.c (rpl_connect): Likewise.
8453         * lib/accept.c (rpl_accept): Likewise.
8454         * lib/bind.c (rpl_bind): Likewise.
8455         * lib/getpeername.c (rpl_getpeername): Likewise.
8456         * lib/getsockname.c (rpl_getsockname): Likewise.
8457         * lib/recv.c (rpl_recv): Likewise.
8458         * lib/send.c (rpl_send): Likewise.
8459         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8460         * lib/sendto.c (rpl_sendto): Likewise.
8461
8462 2010-03-06  Bruno Haible  <bruno@clisp.org>
8463
8464         Clarify access, euidaccess, faccessat.
8465         * doc/posix-functions/faccessat.texi: Mention security problem under
8466         "Other problems", not "Portability problems".
8467         * doc/posix-functions/access.texi: Likewise. Mention a related security
8468         problem.
8469         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8470         * lib/euidaccess.c: Add comments about platforms.
8471         * lib/unistd.in.h (access, euidaccess): Add warnings.
8472
8473 2010-03-07  Bruno Haible  <bruno@clisp.org>
8474
8475         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8476         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8477         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8478         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8479         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8480         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8481         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8482         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8483         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8485         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8486         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8487         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8488         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8489         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8490         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8491         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8492         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8493         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8494         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8495         Likewise.
8496         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8497         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8498         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8499         Likewise.
8500         * tests/test-spawn.c (main): Make it work when
8501         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8502
8503 2010-03-07  Bruno Haible  <bruno@clisp.org>
8504
8505         Fix incorrect Makefile.am generation in German locale.
8506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8507         Execute sed command with character range in C locale.
8508
8509 2010-03-06  Bruno Haible  <bruno@clisp.org>
8510
8511         Tests for module 'iconv-h'.
8512         * modules/iconv-h-tests: New file.
8513         * tests/test-iconv-h.c: New file.
8514
8515         New module 'iconv-h'.
8516         * modules/iconv-h: New file.
8517         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8518         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8519         (configure.ac): Remove gl_ICONV_H.
8520         (Makefile.am): Remove rule for iconv.h.
8521
8522 2010-03-06  Bruno Haible  <bruno@clisp.org>
8523
8524         More consistent naming of *.m4 files.
8525         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8526         * modules/wctype (Files): Update.
8527
8528         More consistent naming of *.m4 files.
8529         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8530         * modules/wchar (Files): Update.
8531
8532 2010-03-06  Jim Meyering  <meyering@redhat.com>
8533
8534         euidaccess: relax license to LGPLv2+
8535         * modules/euidaccess (License): Relax to LGPLv2+.
8536
8537 2010-03-06  Bruno Haible  <bruno@clisp.org>
8538
8539         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8540         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8541         (Makefile.am): Augment lib_SOURCES instead.
8542
8543 2010-03-04  Jim Meyering  <meyering@redhat.com>
8544
8545         utime: remove obsolete module
8546         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8547         unnecessary for years, and has been marked as obsolete for 10 months.
8548         * modules/utime: Remove file.
8549         * lib/utime.c: Remove file.
8550         * m4/utime.m4: Remove file.
8551         * m4/utimes-null.m4: Remove file.
8552         * doc/posix-functions/utime.texi (utime): Remove reference to
8553         the module.  Move the sole "fixed by gnulib" item into the
8554         "problems not fixed by Gnulib" list.
8555         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8556
8557 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8558
8559         * modules/exit (License): Relax license to LGPLv2+.
8560         (Status): Mark as obsolete.
8561         * NEWS: Mention deprecated 'exit' module.
8562         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8563         of now obsolete 'exit'.
8564
8565 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8566
8567         fts-lgpl: remove unused module
8568         * modules/fts-lgpl: Remove.
8569         * MODULES.html.sh (func_all_modules): Adjust.
8570         * check-module (find_included_lib_files): Adjust.
8571         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8572
8573 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8574
8575         copy-acl: enhance Solaris ACL error handling
8576         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8577         * lib/set-mode-acl.c (qset_acl): Likewise.
8578
8579 2010-03-02  Bruno Haible  <bruno@clisp.org>
8580
8581         spawn: Don't override the system defined values on FreeBSD 8.
8582         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8583         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8584         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8585         if HAVE_POSIX_SPAWN is 1.
8586         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8587
8588 2010-03-01  Bruno Haible  <bruno@clisp.org>
8589
8590         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8591         regarding Automake.
8592
8593 2010-02-25  Bruno Haible  <bruno@clisp.org>
8594
8595         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8596         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8597         setting, not afterwards.
8598         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8599
8600 2010-02-24  Eric Blake  <eblake@redhat.com>
8601
8602         bootstrap, git-version-gen: use timestamp
8603         * build-aux/git-version-gen (scriptversion): Force UTC.
8604         * build-aux/bootstrap (scriptversion): New variable.
8605
8606         bootstrap: allow older git
8607         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8608         older than 1.6.4.  Requested by the libvirt project.
8609
8610 2010-02-23  Eric Blake  <eblake@redhat.com>
8611
8612         warn-on-use: work with old autoconf
8613         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8614         AS_VAR semantics of autoconf 2.60.
8615         Reported by Bruno Haible.
8616
8617         bootstrap: improve some comments
8618         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8619         clarification comments.
8620
8621         gettimeofday: provide correct function
8622         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8623         when replacement is declared, otherwise provide gettimeofday.
8624         Reported by Michael Goffioul.
8625
8626 2010-02-23  Jim Meyering  <meyering@redhat.com>
8627
8628         lib-ignore: relax license to "unlimited", not LGPLv2+
8629         * modules/lib-ignore (License): Relax to "unlimited".
8630
8631 2010-02-23  Jim Meyering  <meyering@redhat.com>
8632
8633         lib-ignore: relax license to LGPLv2+
8634         * modules/lib-ignore (License): Relax to LGPLv2+.
8635
8636 2010-02-22  Eric Blake  <eblake@redhat.com>
8637
8638         lseek: avoid bash 3.2 broken pipe bug
8639         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8640         warning from bash 3.2.
8641         Reported by Ben Pfaff, with analysis from Bruno Haible.
8642
8643         bootstrap: support non-FSF copyright holder
8644         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8645         bootstrap.conf override of COPYRIGHT_HOLDER.
8646         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8647
8648         bootstrap: interoperate with gettext 0.14.1
8649         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8650
8651         bootstrap: allow for alternate submodule location
8652         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8653         hardcoding submodule location.
8654         (gnulib_mk): Allow direct use of Makefile.am.
8655
8656         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8657         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8658         rather than reconfiguring where the submodule points.
8659
8660         gettimeofday: restore support for platforms that lack function
8661         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8662         replacement if function is missing.
8663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8664         * modules/sys_time (Makefile.am): Substitute it.
8665         * lib/sys_time.in.h (gettimeofday): Check it.
8666         Reported by Michael Goffioul.
8667
8668 2010-02-21  Bruno Haible  <bruno@clisp.org>
8669
8670         * lib/stdio.in.h (obstack_printf): Fix typo.
8671
8672 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8673
8674         vc-list-files: use bzr ls's -R option
8675         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8676         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8677
8678 2010-02-21  Jim Meyering  <meyering@redhat.com>
8679
8680         init.sh: fix EXEEXT shims to work also for names like test-prog
8681         * tests/init.sh: Re-exec a better shell, when needed.
8682         If the current shell lacks support for posix $(...), an init.sh-using
8683         test will now try to find a shell that supports that.  If EXEEXT is
8684         nonempty, we also require support for hyphen-in-alias-name and shell
8685         substitutions like ${var#glob}.  Failure to find such a shell results
8686         in a skipped test.
8687
8688 2010-02-21  Bruno Haible  <bruno@clisp.org>
8689
8690         Really work around around "broken pipe" error message from bash 3.2.
8691         * gnulib-tool (func_reset_sigpipe): Remove function.
8692         (echo): In bash 3.2, define to a function that uses printf.
8693         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8694
8695 2010-02-20  Bruno Haible  <bruno@clisp.org>
8696
8697         Restore support for automake 1.9.6 with autoconf 2.61.
8698         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8699         Reported by James Youngman <jay@gnu.org>.
8700
8701 2010-02-20  Bruno Haible  <bruno@clisp.org>
8702
8703         Improve *printf warning condition.
8704         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8705         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8706         and the function is overridden due to SIGPIPE emulation.
8707
8708 2010-02-20  Bruno Haible  <bruno@clisp.org>
8709
8710         * lib/stdio.in.h: Tweak comments.
8711
8712 2010-02-19  Bruno Haible  <bruno@clisp.org>
8713
8714         Make it easier to find modules. New gnulib-tool option '--find'.
8715         * gnulib-tool: New option --find.
8716         (func_usage): Document it.
8717         (func_sanitize_modulelist): New function, extracted from
8718         func_all_modules.
8719         (func_all_modules): Invoke it.
8720         * doc/gnulib-tool.texi (Which modules?): New node.
8721
8722 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8723
8724         * lib/sys_select.in.h: Provide select replacement even if
8725         sys/select.h exists on a system, for Interix.
8726
8727 2010-02-18  Jim Meyering  <meyering@redhat.com>
8728
8729         init.sh: don't use $(...) just yet
8730         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8731         to accommodate e.g., Solaris' /bin/sh.
8732
8733 2010-02-17  Bruno Haible  <bruno@clisp.org>
8734
8735         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8736         Reported by Ludovic Courtès <ludo@gnu.org>.
8737
8738 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8739
8740         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8741         linking with -lintl.
8742
8743 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8744
8745         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8746         if not provided by the system's netdb.h.  Reported by
8747         ludo@gnu.org (Ludovic Courtès).
8748
8749 2010-02-15  Jim Meyering  <meyering@redhat.com>
8750
8751         init.sh: improve portability and efficiency
8752         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8753         "dummy" in a for loop.
8754         Use '!', not '^' to select the complement of a character set used
8755         in a "case" statement.
8756         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8757         Suggestions from Eric Blake.
8758
8759         init.sh: automatically accommodate programs with the .exe suffix
8760         Automatically arrange for an invocation of "prog" to execute the
8761         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8762         may use the simpler "prog", yet still work when built on a system
8763         that requires specifying the added suffix.
8764         Do this by constructing a function named "prog" that invokes
8765         "prog.exe" for each .exe file in selected directories.
8766         * tests/init.sh (find_exe_basenames_): New function.
8767         (create_exe_shim_functions_): New function.
8768         (path_prepend_): Use it.
8769
8770         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8771         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8772         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8773
8774 2010-02-14  Jim Meyering  <meyering@redhat.com>
8775
8776         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8777         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8778         (sc_prohibit_hash_pjw_without_use): New rule.
8779
8780         maint.mk: allow the default upload destination dir to be overridden
8781         * top/maint.mk (upload_dest_dir_): Define with a default that
8782         preserves the status quo.
8783         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8784         Reported by Peter Simons.
8785
8786         maint.mk: prohibit inclusion of "hash.h" without_use
8787         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8788
8789 2010-02-10  Jim Meyering  <meyering@redhat.com>
8790
8791         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8792         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8793
8794 2010-02-09  Eric Blake  <ebb9@byu.net>
8795         and Bruno Haible  <bruno@clisp.org>
8796
8797         obstack-printf-posix: ensure declaration
8798         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8799         extracted from gl_FUNC_OBSTACK_PRINTF.
8800         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8801         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8802         Likewise.
8803         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8804         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8805         0.
8806
8807 2010-02-08  Bruno Haible  <bruno@clisp.org>
8808
8809         gnulib-tool: Fix typo in 2010-02-07 commit.
8810         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8811         Reported by Eric Blake.
8812
8813 2010-02-07  Bruno Haible  <bruno@clisp.org>
8814
8815         gnulib-tool: Fix up caching patches.
8816         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8817         option --no-cache. Use associative arrays when supported by the shell.
8818         (sed_comments): New variable.
8819         (modcache): Renamed from do_cache.
8820         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8821         abbreviate unnecessarily.
8822         (have_associative): New variable.
8823         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8824         way also for ksh and zsh.
8825         (func_init_sed_convert_to_cache_statements): New function, extracted
8826         from func_cache_lookup_module. Add support for associative arrays.
8827         Don't set the c_MODULE_cached variable here. Ignore all lines before
8828         the first field header. Remove only the final newline, not all trailing
8829         newlines. Support empty fields correctly. Limit the use of 'eval' to
8830         assignments.
8831         (func_get_description, func_get_status, func_get_notice,
8832         func_get_applicability, func_get_filelist, func_get_dependencies,
8833         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8834         func_get_automake_snippet, func_get_include_directive,
8835         func_get_link_directive, func_get_license, func_get_maintainer):
8836         Update documentation. List the unoptimized code first. Add support for
8837         associative arrays. Limit the use of 'eval' to assignments.
8838         (func_get_applicability): Undo stylistic pessimisations.
8839         (func_get_automake_snippet, func_get_include_directive): Reduce code
8840         duplication.
8841         (func_modules_transitive_closure, func_modules_add_dummy,
8842         func_modules_notice, func_modules_to_filelist, func_add_file,
8843         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8844         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8845         func_create_testdir, func_create_megatestdir): Update documentation.
8846
8847 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8848
8849         * gnulib-tool (func_cache_lookup_module): Store the module name
8850         belonging to the cache variable; error out if two different
8851         module names map to the same cache variable name.
8852
8853 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8854
8855         gnulib-tool: Make caching optional.
8856         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8857         Update matching short versions of --no-changelog.
8858         (func_usage): Update.
8859         (sed_extract_cache_prog): Renamed from ...
8860         (sed_extract_prog): ... this; revert to old extraction script.
8861         (func_get_description, func_get_status)
8862         (func_get_notice, func_get_applicability, func_get_filelist)
8863         (func_get_dependencies, func_get_autoconf_early_snippet)
8864         (func_get_autoconf_snippet, func_get_automake_snippet)
8865         (func_get_include_directive, func_get_link_directive)
8866         (func_get_license, func_get_maintainer): If $do_cache is false,
8867         use old, non-caching extraction scripts.
8868         Suggestion by Bruno Haible.
8869
8870 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8871
8872         gnulib-tool: cache module metainformation.
8873         * gnulib-tool (sed_extract_prog): Match newline before each
8874         header, and rewrite header to a shell variable suffix.
8875         (func_cache_var, func_cache_lookup_module): New functions,
8876         to turn a module name into a cache variable prefix, and to
8877         look up and cache module metainformation.
8878         (func_get_description, func_get_status)
8879         (func_get_notice, func_get_applicability, func_get_filelist)
8880         (func_get_dependencies, func_get_autoconf_early_snippet)
8881         (func_get_autoconf_snippet, func_get_automake_snippet)
8882         (func_get_include_directive, func_get_link_directive)
8883         (func_get_license, func_get_maintainer): Use
8884         func_cache_lookup_module.
8885
8886 2010-02-07  Bruno Haible  <bruno@clisp.org>
8887
8888         fnctl: Fix missing dependency.
8889         * modules/fcntl (Depends-on): Add getdtablesize.
8890         Reported by John W. Eaton <jwe@gnu.org>.
8891
8892 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8893
8894         Argp: fix recognition of short alias options.
8895
8896         * lib/argp-parse.c (convert_options): Fix improper use of
8897         `|' between character values.
8898         * tests/test-argp.c (group1_option): New alias option
8899         --read (-r).
8900         (group1_parser): Special handling for 'r'.
8901         (test15): New test case.
8902         (test_fun): Add test15.
8903         * tests/test-argp-2.sh: Update expected --help and --usage
8904         outputs.
8905
8906 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8907
8908         * tests/test-argp.c: Fix indentation.
8909
8910 2010-02-04  Eric Blake  <ebb9@byu.net>
8911
8912         gettimeofday: expose type of second argument
8913         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8914         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8915         * tests/test-gettimeofday.c: Use it to silence warning.
8916         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8917         the issue.
8918
8919 2010-02-03  Jim Meyering  <meyering@redhat.com>
8920
8921         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8922         * lib/regcomp.c (TYPE_SIGNED): Define.
8923         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8924
8925         regcomp.c: avoid a new -Wshadow warning
8926         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8927
8928 2010-02-01  Jim Meyering  <meyering@redhat.com>
8929
8930         removing useless parentheses in cpp #define directives
8931         For motivation, see commit c0221df4, "define STREQ(a,b)
8932         consistently, removing useless parentheses"
8933         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8934         * lib/mountlist.c (MNT_IGNORE): Likewise.
8935         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8936
8937 2010-02-01  Eric Blake  <ebb9@byu.net>
8938
8939         sys_time: use link-warning
8940         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8941         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8942         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8943         * modules/sys_time (Depends-on): Add warn-on-use.
8944         (Makefile.am): Always build replacement.
8945         (configure.ac): Update substitutions.
8946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8947         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8948         bother with SYS_TIME_H.
8949         * modules/gettimeofday (configure.ac): Declare indicator.
8950         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8951         in use.
8952
8953         closein-tests: silence compiler warning
8954         * tests/test-closein.c (main): Ignore fread result.
8955         * modules/closein-tests (Depends-on): Add ignore-value.
8956
8957         tests: silence warning about system return
8958         * tests/test-areadlink-with-size.c (main): Ignore system result.
8959         * tests/test-areadlink.c (main): Likewise.
8960         * tests/test-areadlinkat-with-size.c (main): Likewise.
8961         * tests/test-areadlinkat.c (main): Likewise.
8962         * tests/test-canonicalize-lgpl.c (main): Likewise.
8963         * tests/test-canonicalize.c (main): Likewise.
8964         * tests/test-chown.c (main): Likewise.
8965         * tests/test-fchownat.c (main): Likewise.
8966         * tests/test-fdutimensat.c (main): Likewise.
8967         * tests/test-fstatat.c (main): Likewise.
8968         * tests/test-futimens.c (main): Likewise.
8969         * tests/test-lchown.c (main): Likewise.
8970         * tests/test-link.c (main): Likewise.
8971         * tests/test-linkat.c (main): Likewise.
8972         * tests/test-lstat.c (main): Likewise.
8973         * tests/test-mkdir.c (main): Likewise.
8974         * tests/test-mkdirat.c (main): Likewise.
8975         * tests/test-mkfifo.c (main): Likewise.
8976         * tests/test-mkfifoat.c (main): Likewise.
8977         * tests/test-mknod.c (main): Likewise.
8978         * tests/test-readlink.c (main): Likewise.
8979         * tests/test-remove.c (main): Likewise.
8980         * tests/test-rename.c (main): Likewise.
8981         * tests/test-renameat.c (main): Likewise.
8982         * tests/test-rmdir.c (main): Likewise.
8983         * tests/test-symlink.c (main): Likewise.
8984         * tests/test-symlinkat.c (main): Likewise.
8985         * tests/test-unlink.c (main): Likewise.
8986         * tests/test-unlinkat.c (main): Likewise.
8987         * tests/test-utimens.c (main): Likewise.
8988         * tests/test-utimensat.c (main): Likewise.
8989         * modules/areadlink-tests (Depends-on): Add ignore-value.
8990         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8991         * modules/areadlinkat-tests (Depends-on): Likewise.
8992         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8993         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8994         * modules/canonicalize-tests (Depends-on): Likewise.
8995         * modules/chown-tests (Depends-on): Likewise.
8996         * modules/fdutimensat-tests (Depends-on): Likewise.
8997         * modules/futimens-tests (Depends-on): Likewise.
8998         * modules/lchown-tests (Depends-on): Likewise.
8999         * modules/link-tests (Depends-on): Likewise.
9000         * modules/linkat-tests (Depends-on): Likewise.
9001         * modules/lstat-tests (Depends-on): Likewise.
9002         * modules/mkdir-tests (Depends-on): Likewise.
9003         * modules/mkfifo-tests (Depends-on): Likewise.
9004         * modules/mkfifoat-tests (Depends-on): Likewise.
9005         * modules/mknod-tests (Depends-on): Likewise.
9006         * modules/openat-tests (Depends-on): Likewise.
9007         * modules/readlink-tests (Depends-on): Likewise.
9008         * modules/remove-tests (Depends-on): Likewise.
9009         * modules/rename-tests (Depends-on): Likewise.
9010         * modules/renameat-tests (Depends-on): Likewise.
9011         * modules/rmdir-tests (Depends-on): Likewise.
9012         * modules/symlink-tests (Depends-on): Likewise.
9013         * modules/symlinkat-tests (Depends-on): Likewise.
9014         * modules/unlink-tests (Depends-on): Likewise.
9015         * modules/utimens-tests (Depends-on): Likewise.
9016         * modules/utimensat-tests (Depends-on): Likewise.
9017
9018 2010-01-31  Bruno Haible  <bruno@clisp.org>
9019
9020         Perform the same test for many <math.h> functions.
9021         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9022         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9023         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9024         of gl_MATHFUNC.
9025         * modules/acos (configure.ac): Likewise.
9026         * modules/asin (configure.ac): Likewise.
9027         * modules/atan (configure.ac): Likewise.
9028         * modules/atan2 (configure.ac): Likewise.
9029         * modules/cbrt (configure.ac): Likewise.
9030         * modules/copysign (configure.ac): Likewise.
9031         * modules/cos (configure.ac): Likewise.
9032         * modules/cosh (configure.ac): Likewise.
9033         * modules/erf (configure.ac): Likewise.
9034         * modules/erfc (configure.ac): Likewise.
9035         * modules/exp (configure.ac): Likewise.
9036         * modules/fmod (configure.ac): Likewise.
9037         * modules/hypot (configure.ac): Likewise.
9038         * modules/j0 (configure.ac): Likewise.
9039         * modules/j1 (configure.ac): Likewise.
9040         * modules/jn (configure.ac): Likewise.
9041         * modules/lgamma (configure.ac): Likewise.
9042         * modules/log (configure.ac): Likewise.
9043         * modules/log10 (configure.ac): Likewise.
9044         * modules/log1p (configure.ac): Likewise.
9045         * modules/pow (configure.ac): Likewise.
9046         * modules/remainder (configure.ac): Likewise.
9047         * modules/sin (configure.ac): Likewise.
9048         * modules/sinh (configure.ac): Likewise.
9049         * modules/tan (configure.ac): Likewise.
9050         * modules/tanh (configure.ac): Likewise.
9051         * modules/y0 (configure.ac): Likewise.
9052         * modules/y1 (configure.ac): Likewise.
9053         * modules/yn (configure.ac): Likewise.
9054         Suggested by Paolo Bonzini.
9055
9056 2010-01-31  Bruno Haible  <bruno@clisp.org>
9057
9058         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9059
9060 2010-01-31  Bruno Haible  <bruno@clisp.org>
9061
9062         Work around getdelim() bug on FreeBSD 8.0.
9063         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9064         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9065         not work.
9066         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9067         is 1.
9068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9069         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9070         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9071         a non-zero size.
9072         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9073
9074 2010-01-31  Bruno Haible  <bruno@clisp.org>
9075
9076         Work around getline() bug on FreeBSD 8.0.
9077         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9078         and a non-zero size.
9079         * tests/test-getline.c (main): Likewise.
9080         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9081         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9082
9083 2010-01-28  Eric Blake  <ebb9@byu.net>
9084
9085         regex: fix build failure
9086         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9087         platforms.
9088
9089 2010-01-28  Jim Meyering  <meyering@redhat.com>
9090
9091         regex: do not ignore memory allocation failure
9092         * lib/regex_internal.c (create_cd_newstate): Detect
9093         re_node_set_init_copy failure.   Extracted from glibc commit
9094         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9095
9096         regex: sync more white-space changes from libc
9097         * lib/regex_internal.c: White-space only changes.
9098         * lib/regexec.c: Likewise.
9099
9100         regex: add many uses of __attribute_warn_unused_result__
9101         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9102         * lib/regexec.c: Likewise.
9103         Extracted from a messy glibc commit.
9104
9105         regcomp.c: spelling and merge-artifact from glibc
9106         * lib/regcomp.c: Merge remainder of glibc's
9107         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9108
9109         regcomp.c: sync white-space changes from glibc
9110         * lib/regcomp.c: Merge to accommodate white space
9111         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9112
9113         regcomp.c: do not ignore internal return values
9114         * lib/regcomp.c: Do not ignore internal return values.
9115         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9116         but without its white-space changes and spelling fixes.
9117
9118         regex_internal.h: define __attribute_warn_unused_result__
9119         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9120
9121         maint: add a syntax-check rule to check for vulnerable Makefile.in
9122         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9123
9124 2010-01-27  Jim Meyering  <meyering@redhat.com>
9125
9126         ncftpput-ftp: clean up spaces
9127         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9128         Remove trailing blanks.
9129
9130 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9131
9132         * build-aux/git-version-gen: Fix copyright statement.
9133         * build-aux/gnupload: Likewise.
9134         * tests/test-arcfour.c: Likewise.
9135         * tests/test-arctwo.c: Likewise.
9136         * tests/test-count-one-bits.c: Likewise.
9137         * tests/test-crc.c: Likewise.
9138         * tests/test-des.c: Likewise.
9139         * tests/test-gc-arcfour.c: Likewise.
9140         * tests/test-gc-arctwo.c: Likewise.
9141         * tests/test-gc-des.c: Likewise.
9142         * tests/test-gc-hmac-md5.c: Likewise.
9143         * tests/test-gc-hmac-sha1.c: Likewise.
9144         * tests/test-gc-md2.c: Likewise.
9145         * tests/test-gc-md4.c: Likewise.
9146         * tests/test-gc-md5.c: Likewise.
9147         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9148         * tests/test-gc-rijndael.c: Likewise.
9149         * tests/test-gc-sha1.c: Likewise.
9150         * tests/test-gc.c: Likewise.
9151         * tests/test-gethostname.c: Likewise.
9152         * tests/test-gettimeofday.c: Likewise.
9153         * tests/test-hash.c: Likewise.
9154         * tests/test-hmac-md5.c: Likewise.
9155         * tests/test-hmac-sha1.c: Likewise.
9156         * tests/test-md2.c: Likewise.
9157         * tests/test-md4.c: Likewise.
9158         * tests/test-md5.c: Likewise.
9159         * tests/test-memchr.c: Likewise.
9160         * tests/test-memchr2.c: Likewise.
9161         * tests/test-memcmp.c: Likewise.
9162         * tests/test-memmem.c: Likewise.
9163         * tests/test-memrchr.c: Likewise.
9164         * tests/test-rawmemchr.c: Likewise.
9165         * tests/test-read-file.c: Likewise.
9166         * tests/test-rijndael.c: Likewise.
9167         * tests/test-sockets.c: Likewise.
9168         * tests/test-strchrnul.c: Likewise.
9169         * tests/test-strstr.c: Likewise.
9170         * tests/test-strtod.c: Likewise.
9171         * build-aux/ncftpput-ftp: Likewise.
9172
9173 2010-01-26  Eric Blake  <ebb9@byu.net>
9174
9175         ignore-value: update recommended header name
9176         * modules/ignore-value (Include): Only use <> for headers that
9177         exist in glibc.
9178
9179 2010-01-26  Jim Meyering  <meyering@redhat.com>
9180
9181         test-userspec.c: avoid compiler warnings
9182         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9183         and "initialization discards qualifiers..." warnings.
9184         Put the first "uid" in its own scope, and make char* members "const".
9185
9186 2010-01-25  Bruno Haible  <bruno@clisp.org>
9187
9188         gnulib-tool: Make warning diagnostics consistent.
9189         * gnulib-tool (func_warning): New function.
9190         Use it everywhere where gnulib-tool produces output to stderr and it is
9191         not a fatal error.
9192
9193 2010-01-25  Bruno Haible  <bruno@clisp.org>
9194
9195         Fix test dependencies.
9196         * modules/xstrtol-tests (Depends-on): Add inttypes.
9197         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9198
9199 2010-01-25 Pádraig Brady <P@draigBrady.com>
9200
9201         syntax-check: detect incorrect boolean macro values in config.h
9202         * modules/maintainer-makefile (configure.ac): Parameterize the location
9203         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9204         The logic is from Eric Blake and the location indicated by Jim Meyering.
9205         Note the more natural CONFIG_HEADER name is prohibited by automake
9206         for backwards compatibility reasons.
9207         * top/maint.mk (sc_Wundef_boolean): New rule.
9208
9209 2010-01-25  Jim Meyering  <meyering@redhat.com>
9210
9211         bootstrap: detect MacOS 10.6's shasum, too
9212         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9213         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9214
9215 2010-01-23  Jim Meyering  <meyering@redhat.com>
9216
9217         xstrtoll: new module
9218         * modules/xstrtoll: New file.
9219         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9220         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9221         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9222         ./configure fails if you use this module and lack "long long".
9223         * modules/xstrtoll-tests: New module.
9224         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9225         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9226         new init.sh-based test framework.
9227
9228 2010-01-24  Bruno Haible  <bruno@clisp.org>
9229
9230         Tests for module 'yn'.
9231         * modules/yn-tests: New file.
9232         * tests/test-yn.c: New file.
9233
9234         Tests for module 'y1'.
9235         * modules/y1-tests: New file.
9236         * tests/test-y1.c: New file.
9237
9238         Tests for module 'y0'.
9239         * modules/y0-tests: New file.
9240         * tests/test-y0.c: New file.
9241
9242         Tests for module 'tanh'.
9243         * modules/tanh-tests: New file.
9244         * tests/test-tanh.c: New file.
9245
9246         Tests for module 'tan'.
9247         * modules/tan-tests: New file.
9248         * tests/test-tan.c: New file.
9249
9250         Tests for module 'sqrt'.
9251         * modules/sqrt-tests: New file.
9252         * tests/test-sqrt.c: New file.
9253
9254         Tests for module 'sinh'.
9255         * modules/sinh-tests: New file.
9256         * tests/test-sinh.c: New file.
9257
9258         Tests for module 'sin'.
9259         * modules/sin-tests: New file.
9260         * tests/test-sin.c: New file.
9261
9262         Tests for module 'rint'.
9263         * modules/rint-tests: New file.
9264         * tests/test-rint.c: New file.
9265
9266         Tests for module 'remainder'.
9267         * modules/remainder-tests: New file.
9268         * tests/test-remainder.c: New file.
9269
9270         Tests for module 'pow'.
9271         * modules/pow-tests: New file.
9272         * tests/test-pow.c: New file.
9273
9274         Tests for module 'nextafter'.
9275         * modules/nextafter-tests: New file.
9276         * tests/test-nextafter.c: New file.
9277
9278         Tests for module 'modf'.
9279         * modules/modf-tests: New file.
9280         * tests/test-modf.c: New file.
9281
9282         Tests for module 'logb'.
9283         * modules/logb-tests: New file.
9284         * tests/test-logb.c: New file.
9285
9286         Tests for module 'log1p'.
9287         * modules/log1p-tests: New file.
9288         * tests/test-log1p.c: New file.
9289
9290         Tests for module 'log10'.
9291         * modules/log10-tests: New file.
9292         * tests/test-log10.c: New file.
9293
9294         Tests for module 'log'.
9295         * modules/log-tests: New file.
9296         * tests/test-log.c: New file.
9297
9298         Tests for module 'lgamma'.
9299         * modules/lgamma-tests: New file.
9300         * tests/test-lgamma.c: New file.
9301
9302         Tests for module 'ldexp'.
9303         * modules/ldexp-tests: New file.
9304         * tests/test-ldexp.c: New file.
9305
9306         Tests for module 'jn'.
9307         * modules/jn-tests: New file.
9308         * tests/test-jn.c: New file.
9309
9310         Tests for module 'j1'.
9311         * modules/j1-tests: New file.
9312         * tests/test-j1.c: New file.
9313
9314         Tests for module 'j0'.
9315         * modules/j0-tests: New file.
9316         * tests/test-j0.c: New file.
9317
9318         Tests for module 'hypot'.
9319         * modules/hypot-tests: New file.
9320         * tests/test-hypot.c: New file.
9321
9322         Tests for module 'fmod'.
9323         * modules/fmod-tests: New file.
9324         * tests/test-fmod.c: New file.
9325
9326         Tests for module 'fabs'.
9327         * modules/fabs-tests: New file.
9328         * tests/test-fabs.c: New file.
9329
9330         Tests for module 'exp'.
9331         * modules/exp-tests: New file.
9332         * tests/test-exp.c: New file.
9333
9334         Tests for module 'erfc'.
9335         * modules/erfc-tests: New file.
9336         * tests/test-erfc.c: New file.
9337
9338         Tests for module 'erf'.
9339         * modules/erf-tests: New file.
9340         * tests/test-erf.c: New file.
9341
9342         Tests for module 'cosh'.
9343         * modules/cosh-tests: New file.
9344         * tests/test-cosh.c: New file.
9345
9346         Tests for module 'cos'.
9347         * modules/cos-tests: New file.
9348         * tests/test-cos.c: New file.
9349
9350         Tests for module 'copysign'.
9351         * modules/copysign-tests: New file.
9352         * tests/test-copysign.c: New file.
9353
9354         Tests for module 'cbrt'.
9355         * modules/cbrt-tests: New file.
9356         * tests/test-cbrt.c: New file.
9357
9358         Tests for module 'atan2'.
9359         * modules/atan2-tests: New file.
9360         * tests/test-atan2.c: New file.
9361
9362         Tests for module 'atan'.
9363         * modules/atan-tests: New file.
9364         * tests/test-atan.c: New file.
9365
9366         Tests for module 'asin'.
9367         * modules/asin-tests: New file.
9368         * tests/test-asin.c: New file.
9369
9370         Tests for module 'acos'.
9371         * modules/acos-tests: New file.
9372         * tests/test-acos.c: New file.
9373
9374 2010-01-24  Bruno Haible  <bruno@clisp.org>
9375
9376         Fix tests for common <math.h> functions.
9377         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9378         code snippet that references the function pointer, rather than merely
9379         calling the function. Substitute the FUNC_LIBM variable.
9380         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9381         * modules/acos (configure.ac): Likewise.
9382         * modules/asin (configure.ac): Likewise.
9383         * modules/atan (configure.ac): Likewise.
9384         * modules/atan2 (configure.ac): Likewise.
9385         * modules/cbrt (configure.ac): Likewise.
9386         * modules/copysign (configure.ac): Likewise.
9387         * modules/cos (configure.ac): Likewise.
9388         * modules/cosh (configure.ac): Likewise.
9389         * modules/erf (configure.ac): Likewise.
9390         * modules/erfc (configure.ac): Likewise.
9391         * modules/exp (configure.ac): Likewise.
9392         * modules/fabs (configure.ac): Likewise.
9393         * modules/fmod (configure.ac): Likewise.
9394         * modules/hypot (configure.ac): Likewise.
9395         * modules/j0 (configure.ac): Likewise.
9396         * modules/j1 (configure.ac): Likewise.
9397         * modules/jn (configure.ac): Likewise.
9398         * modules/ldexp (configure.ac): Likewise.
9399         * modules/lgamma (configure.ac): Likewise.
9400         * modules/log (configure.ac): Likewise.
9401         * modules/log10 (configure.ac): Likewise.
9402         * modules/log1p (configure.ac): Likewise.
9403         * modules/logb (configure.ac): Likewise.
9404         * modules/modf (configure.ac): Likewise.
9405         * modules/nextafter (configure.ac): Likewise.
9406         * modules/pow (configure.ac): Likewise.
9407         * modules/remainder (configure.ac): Likewise.
9408         * modules/rint (configure.ac): Likewise.
9409         * modules/sin (configure.ac): Likewise.
9410         * modules/sinh (configure.ac): Likewise.
9411         * modules/tan (configure.ac): Likewise.
9412         * modules/tanh (configure.ac): Likewise.
9413         * modules/y0 (configure.ac): Likewise.
9414         * modules/y1 (configure.ac): Likewise.
9415         * modules/yn (configure.ac): Likewise.
9416
9417 2010-01-24  Bruno Haible  <bruno@clisp.org>
9418
9419         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9420         * tests/test-acosl.c (x): New variable.
9421         (main): Store argument in x and fetch it from x.
9422         * tests/test-asinl.c (x): New variable.
9423         (main): Store argument in x and fetch it from x.
9424         * tests/test-atanl.c (x): New variable.
9425         (main): Store argument in x and fetch it from x.
9426         * tests/test-cosl.c (x): New variable.
9427         (main): Store argument in x and fetch it from x.
9428         * tests/test-expl.c (x): New variable.
9429         (main): Store argument in x and fetch it from x.
9430         * tests/test-logl.c (x): New variable.
9431         (main): Store argument in x and fetch it from x.
9432         * tests/test-sinl.c (x): New variable.
9433         (main): Store argument in x and fetch it from x.
9434         * tests/test-sqrtl.c (x): New variable.
9435         (main): Store argument in x and fetch it from x.
9436         * tests/test-tanl.c (x): New variable.
9437         (main): Store argument in x and fetch it from x.
9438
9439 2010-01-24  Bruno Haible  <bruno@clisp.org>
9440
9441         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9442         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9443         assignments to the initial TESTS_ENVIRONMENT.
9444         * doc/gnulib.texi (Unit test modules): Document it.
9445         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9446         TESTS_ENVIRONMENT.
9447         * modules/btowc-tests (Makefile.am): Likewise.
9448         * modules/c-stack-tests (Makefile.am): Likewise.
9449         * modules/c-strcase-tests (Makefile.am): Likewise.
9450         * modules/copy-file-tests (Makefile.am): Likewise.
9451         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9452         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9453         * modules/mbrtowc-tests (Makefile.am): Likewise.
9454         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9455         * modules/mbscasestr-tests (Makefile.am): Likewise.
9456         * modules/mbschr-tests (Makefile.am): Likewise.
9457         * modules/mbscspn-tests (Makefile.am): Likewise.
9458         * modules/mbsinit-tests (Makefile.am): Likewise.
9459         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9460         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9461         * modules/mbspbrk-tests (Makefile.am): Likewise.
9462         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9463         * modules/mbsrchr-tests (Makefile.am): Likewise.
9464         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9465         * modules/mbsspn-tests (Makefile.am): Likewise.
9466         * modules/mbsstr-tests (Makefile.am): Likewise.
9467         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9468         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9469         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9470         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9471         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9472         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9473         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9474         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9475         * modules/wcrtomb-tests (Makefile.am): Likewise.
9476         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9477         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9478         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9479         assignments from TESTS_ENVIRONMENT.
9480         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9481         augmentation.
9482         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9483         * modules/atexit-tests (Makefile.am): Likewise.
9484         * modules/binary-io-tests (Makefile.am): Likewise.
9485         * modules/closein-tests (Makefile.am): Likewise.
9486         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9487         * modules/exclude-tests (Makefile.am): Likewise.
9488         * modules/fflush-tests (Makefile.am): Likewise.
9489         * modules/fpending-tests (Makefile.am): Likewise.
9490         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9491         * modules/freadahead-tests (Makefile.am): Likewise.
9492         * modules/freadptr-tests (Makefile.am): Likewise.
9493         * modules/freadseek-tests (Makefile.am): Likewise.
9494         * modules/fseek-tests (Makefile.am): Likewise.
9495         * modules/fseeko-tests (Makefile.am): Likewise.
9496         * modules/ftell-tests (Makefile.am): Likewise.
9497         * modules/ftello-tests (Makefile.am): Likewise.
9498         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9499         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9500         * modules/lseek-tests (Makefile.am): Likewise.
9501         * modules/parse-duration-tests (Makefile.am): Likewise.
9502         * modules/perror-tests (Makefile.am): Likewise.
9503         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9504         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9505         * modules/pipe-tests (Makefile.am): Likewise.
9506         * modules/pread-tests (Makefile.am): Likewise.
9507         * modules/printf-posix-tests (Makefile.am): Likewise.
9508         * modules/select-tests (Makefile.am): Likewise.
9509         * modules/sigpipe-tests (Makefile.am): Likewise.
9510         * modules/tsearch-tests (Makefile.am): Likewise.
9511         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9512         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9513         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9514         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9515         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9516         * modules/version-etc-tests (Makefile.am): Likewise.
9517         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9518         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9519         * modules/xalloc-die-tests (Makefile.am): Likewise.
9520         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9521         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9522         * modules/xstrtol-tests (Makefile.am): Likewise.
9523         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9524         * modules/yesno-tests (Makefile.am): Likewise.
9525         Suggested by Jim Meyering.
9526
9527 2010-01-24  Bruno Haible  <bruno@clisp.org>
9528
9529         More documentation.
9530         * doc/gnulib.texi (Writing modules): New chapter.
9531         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9532         the new chapter.
9533
9534 2010-01-24  Jim Meyering  <meyering@redhat.com>
9535
9536         maint.mk: do not prepend "./" after filtering
9537         * top/maint.mk (_prepend_srcdir_prefix): New variable
9538         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9539         "./" when $(srcdir) is ".".
9540
9541         define STREQ(a,b) consistently, removing useless parentheses
9542         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9543         since the only risk is that "a" or "b" contains an unparenthesized
9544         comma, but if either did that, STREQ would have 3 or more arguments.
9545         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9546         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9547         * lib/hash-triple.c (STREQ): Likewise.
9548         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9549         * lib/getugroups.c (STREQ): Likewise.
9550
9551 2010-01-23  Jim Meyering  <meyering@redhat.com>
9552
9553         maint.mk: fix syntax-check in a non-srcdir build directory
9554         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9555         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9556
9557 2010-01-22  Jim Meyering  <meyering@redhat.com>
9558
9559         userspec: add unit tests
9560         * tests/test-userspec.c: New file.
9561         * modules/userspec-tests: Likewise.
9562
9563 2010-01-21  Jim Meyering  <meyering@redhat.com>
9564
9565         maint.mk: handle source file names containing "." robustly
9566         * top/maint.mk (_dot_escaped_srcdir): Define.
9567         (VC_LIST): Use it in LHS of sed substitution.
9568
9569 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9570
9571         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9572         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9573         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9574         from a non-srcdir build.
9575
9576 2010-01-20  Eric Blake  <ebb9@byu.net>
9577
9578         warn-on-use: use instead of link-warning
9579         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9580         * modules/unistd (Depends-on, Makefile.am): Likewise.
9581         * modules/arpa_inet (Depends-on): Replace link-warning with
9582         warn-on-use.
9583         (Makefile.am): Update rules accordingly.
9584         * modules/ctype (Depends-on, Makefile.am): Likewise.
9585         * modules/dirent (Depends-on, Makefile.am): Likewise.
9586         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9587         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9588         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9589         * modules/locale (Depends-on, Makefile.am): Likewise.
9590         * modules/math (Depends-on, Makefile.am): Likewise.
9591         * modules/search (Depends-on, Makefile.am): Likewise.
9592         * modules/signal (Depends-on, Makefile.am): Likewise.
9593         * modules/spawn (Depends-on, Makefile.am): Likewise.
9594         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9595         * modules/string (Depends-on, Makefile.am): Likewise.
9596         * modules/strings (Depends-on, Makefile.am): Likewise.
9597         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9598         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9599         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9600         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9601         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9602         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9603         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9604         * modules/wchar (Depends-on, Makefile.am): Likewise.
9605         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9606         should be poisoned.
9607         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9608         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9609         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9610         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9611         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9612         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9613         * m4/math_h.m4 (gl_MATH_H): Likewise.
9614         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9615         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9616         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9617         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9618         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9620         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9621         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9622         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9626         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9627         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9628         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9629         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9630         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9631         GL_LINK_WARNING.
9632         * lib/ctype.in.h: Likewise.
9633         * lib/dirent.in.h: Likewise.
9634         * lib/fcntl.in.h: Likewise.
9635         * lib/inttypes.in.h: Likewise.
9636         * lib/langinfo.in.h: Likewise.
9637         * lib/locale.in.h: Likewise.
9638         * lib/math.in.h: Likewise.
9639         * lib/search.in.h: Likewise.
9640         * lib/signal.in.h: Likewise.
9641         * lib/spawn.in.h: Likewise.
9642         * lib/stdio.in.h: Likewise.
9643         * lib/stdlib.in.h: Likewise.
9644         * lib/string.in.h: Likewise.
9645         * lib/strings.in.h: Likewise.
9646         * lib/sys_file.in.h: Likewise.
9647         * lib/sys_ioctl.in.h: Likewise.
9648         * lib/sys_select.in.h: Likewise.
9649         * lib/sys_socket.in.h: Likewise.
9650         * lib/sys_stat.in.h: Likewise.
9651         * lib/sys_times.in.h: Likewise.
9652         * lib/sys_utsname.in.h: Likewise.
9653         * lib/unistd.in.h: Likewise.
9654         * lib/wchar.in.h: Likewise.
9655
9656 2010-01-20  Bruno Haible  <bruno@clisp.org>
9657
9658         Avoid duplicate -lm.
9659         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9660         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9661         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9662         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9663         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9664         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9665         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9666         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9667         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9668         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9669         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9670         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9671         Reported by Paolo Bonzini.
9672
9673 2010-01-19  Bruno Haible  <bruno@clisp.org>
9674
9675         langinfo, nl_langinfo: Relicense under LGPLv2+.
9676         * modules/langinfo (License): Change to LGPLv2+.
9677         * modules/nl_langinfo (License): Likewise.
9678         Patch by David Lutterkort <lutter@redhat.com>.
9679
9680 2010-01-19  Bruno Haible  <bruno@clisp.org>
9681
9682         Avoid compilation error with cc on OSF/1 5.1.
9683         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9684         statement, not before.
9685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9686
9687 2010-01-18  Bruno Haible  <bruno@clisp.org>
9688
9689         Avoid a link error due to the __printf__ symbol.
9690         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9691         and 2.6.x.
9692         (__format__, __printf__): Remove definitions.
9693         * lib/argp-fmtstream.h: Likewise.
9694         * lib/argp.h: Likewise.
9695         * lib/error.h: Likewise.
9696         * lib/vasnprintf.h: Likewise.
9697         * lib/xprintf.h: Likewise.
9698         * lib/xvasprintf.h: Likewise.
9699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9700
9701 2010-01-18  Bruno Haible  <bruno@clisp.org>
9702
9703         Tests for module 'tanl'.
9704         * modules/tanl-tests: New file.
9705         * tests/test-tanl.c: New file.
9706
9707         Tests for module 'sqrtl'.
9708         * modules/sqrtl-tests: New file.
9709         * tests/test-sqrtl.c: New file.
9710
9711         Tests for module 'sinl'.
9712         * modules/sinl-tests: New file.
9713         * tests/test-sinl.c: New file.
9714
9715         Tests for module 'logl'.
9716         * modules/logl-tests: New file.
9717         * tests/test-logl.c: New file.
9718
9719         Tests for module 'expl'.
9720         * modules/expl-tests: New file.
9721         * tests/test-expl.c: New file.
9722
9723         Tests for module 'cosl'.
9724         * modules/cosl-tests: New file.
9725         * tests/test-cosl.c: New file.
9726
9727         Tests for module 'atanl'.
9728         * modules/atanl-tests: New file.
9729         * tests/test-atanl.c: New file.
9730
9731         Tests for module 'asinl'.
9732         * modules/asinl-tests: New file.
9733         * tests/test-asinl.c: New file.
9734
9735         Tests for module 'acosl'.
9736         * modules/acosl-tests: New file.
9737         * tests/test-acosl.c: New file.
9738
9739         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9740         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9741         tanl): Use the standard gnulib idiom.
9742         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9743         * lib/sinl.c: Likewise.
9744         * lib/tanl.c: Don't include trigl.c.
9745         (kernel_tanl): Make static.
9746         * lib/sincosl.c: Include trigl.h first.
9747         * lib/trigl.c: Likewise.
9748         * m4/acosl.m4: New file.
9749         * m4/asinl.m4: New file.
9750         * m4/atanl.m4: New file.
9751         * m4/cosl.m4: New file.
9752         * m4/expl.m4: New file.
9753         * m4/logl.m4: New file.
9754         * m4/sinl.m4: New file.
9755         * m4/sqrtl.m4: New file.
9756         * m4/tanl.m4: New file.
9757         * m4/mathl.m4: Remove file.
9758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9759         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9760         Don't initialize GNULIB_MATHL.
9761         * modules/acosl: New file.
9762         * modules/asinl: New file.
9763         * modules/atanl: New file.
9764         * modules/cosl: New file.
9765         * modules/expl: New file.
9766         * modules/logl: New file.
9767         * modules/sinl: New file.
9768         * modules/sqrtl: New file.
9769         * modules/tanl: New file.
9770         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9771         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9772         substitute GNULIB_MATHL.
9773         * modules/mathl: Rewritten.
9774         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9775         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9776         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9777         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9778         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9779         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9780         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9781         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9782         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9783
9784 2010-01-18  Bruno Haible  <bruno@clisp.org>
9785
9786         sqrt: Make gl_FUNC_SQRT requirable.
9787         * m4/sqrt.m4: New file.
9788         * modules/sqrt (Files): Add it.
9789         (configure.ac): Invoke gl_FUNC_SQRT.
9790
9791 2010-01-18  Bruno Haible  <bruno@clisp.org>
9792
9793         New modules for common <math.h> functions.
9794         * m4/mathfunc.m4: New file.
9795         * modules/acos: New file.
9796         * modules/asin: New file.
9797         * modules/atan: New file.
9798         * modules/atan2: New file.
9799         * modules/cbrt: New file.
9800         * modules/copysign: New file.
9801         * modules/cos: New file.
9802         * modules/cosh: New file.
9803         * modules/erf: New file.
9804         * modules/erfc: New file.
9805         * modules/exp: New file.
9806         * modules/fabs: New file.
9807         * modules/fmod: New file.
9808         * modules/hypot: New file.
9809         * modules/j0: New file.
9810         * modules/j1: New file.
9811         * modules/jn: New file.
9812         * modules/ldexp: New file.
9813         * modules/lgamma: New file.
9814         * modules/log: New file.
9815         * modules/log10: New file.
9816         * modules/log1p: New file.
9817         * modules/logb: New file.
9818         * modules/modf: New file.
9819         * modules/nextafter: New file.
9820         * modules/pow: New file.
9821         * modules/remainder: New file.
9822         * modules/rint: New file.
9823         * modules/sin: New file.
9824         * modules/sinh: New file.
9825         * modules/sqrt: New file.
9826         * modules/tan: New file.
9827         * modules/tanh: New file.
9828         * modules/y0: New file.
9829         * modules/y1: New file.
9830         * modules/yn: New file.
9831         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9832         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9833         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9834         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9835         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9836         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9837         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9838         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9839         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9840         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9841         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9842         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9843         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9844         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9845         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9846         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9847         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9848         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9849         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9850         * doc/posix-functions/log.texi: Mention the 'log' module.
9851         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9852         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9853         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9854         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9855         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9856         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9857         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9858         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9859         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9860         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9861         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9862         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9863         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9864         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9865         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9866         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9867
9868 2010-01-18  Jim Meyering  <meyering@redhat.com>
9869
9870         ignore-value: relax license to LGPLv2+
9871         * modules/ignore-value (License): Relax to LGPLv2+.
9872
9873         getdate: don't leak when TZ contains two or more '"'s
9874         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9875         double quote in TZ after the first one.
9876
9877         readtokens: do not leak internal token_lengths buffer
9878         * lib/readtokens.c (readtokens): Free the local, lengths,
9879         when the supplied "token_lengths" parameter is NULL.
9880
9881 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9882
9883         Fix a couple of missing LIBTHREAD link failures on AIX.
9884         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9885         $(LIBTHREAD).
9886         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9887
9888         Link test-poll against INET_PTON_LIB.
9889         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9890         for inet_pton on Solaris 10.
9891
9892 2010-01-17  Bruno Haible  <bruno@clisp.org>
9893
9894         unistdio/*-sprintf: Fix typo in module description.
9895         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9896         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9897         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9898         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9899         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9900         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9901         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9903
9904 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9905
9906         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9907         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9908         variables in shell case patterns, for AIX and HP-UX ksh.
9909
9910         Split large sed scripts, for HP-UX sed.
9911         * modules/stdio: Split sed scripts around 50 sed commands,
9912         to avoid HP-UX limit of 99 commands, in the near future.
9913         * modules/string: Likewise.
9914         * modules/unistd: Likewise.
9915
9916         gnulib-tool: avoid writing in the current directory.
9917         * gnulib-tool (func_emit_lib_Makefile_am)
9918         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9919         not in the current directory, so concurrent gnulib-tool
9920         instances do not interfere.
9921
9922 2010-01-16  Jim Meyering  <meyering@redhat.com>
9923
9924         doc: update users.txt
9925         * users.txt: Add grep.
9926         (diffutils, gzip): Update URLs.
9927
9928 2010-01-12  Bruno Haible  <bruno@clisp.org>
9929
9930         posix_spawn: Avoid test failure on Cygwin.
9931         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9932         characters.
9933         Reported by Simon Josefsson.
9934
9935 2010-01-12  Bruno Haible  <bruno@clisp.org>
9936
9937         * tests/test-cond.c (main): When skipping the test, show the reason.
9938
9939 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9940
9941         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9942
9943 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9944
9945         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9946         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9947
9948 2010-01-12  Eric Blake  <ebb9@byu.net>
9949
9950         build: guarantee AS_VAR_IF
9951         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9952         (gl_AS_VAR_IF): Move...
9953         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9954         Reported by Simon Josefsson.
9955
9956 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9957
9958         * lib/stdio.in.h: Fix typo.
9959
9960 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9961
9962         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9963         libgpg-error.
9964
9965 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9966
9967         * tests/test-xalloc-die.sh: Use $EXEEXT.
9968
9969 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9970             Bruno Haible  <bruno@clisp.org>
9971
9972         getlogin, getlogin_r: Avoid test failure.
9973         * tests/test-getlogin.c: Include <stdio.h>.
9974         (main): Skip the test when the function fails because stdin is not a
9975         tty.
9976         * tests/test-getlogin_r.c: Include <stdio.h>.
9977         (main): Skip the test when the function fails because stdin is not a
9978         tty.
9979
9980 2010-01-11  Eric Blake  <ebb9@byu.net>
9981
9982         tests: avoid more large file warnings
9983         * tests/test-fflush.c: Avoid warning about ftell use.
9984         * tests/test-fseek.c: Avoid warning about fseek use.
9985
9986 2010-01-10  Bruno Haible  <bruno@clisp.org>
9987
9988         nproc: Work better on Linux when /proc and /sys are not mounted.
9989         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9990         as lower bound when, on glibc/Linux systems,
9991         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9992         Suggested by Pádraig Brady <P@draigbrady.com>.
9993         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9994
9995         nproc: Refactor.
9996         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9997         extracted from num_processors.
9998         (num_processors): Call it.
9999
10000 2010-01-11  Jim Meyering  <meyering@redhat.com>
10001
10002         utimecmp: avoid new warning from upcoming gcc-4.5.0
10003         * lib/utimecmp.c (BILLION): Define using #define rather than an
10004         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10005
10006 2010-01-11  Eric Blake  <ebb9@byu.net>
10007
10008         math: add portability warnings for classification macros
10009         * modules/math (Depends-on): Add warn-on-use.
10010         (Makefile.am): Provide new substitutions.
10011         * m4/math_h.m4 (gl_MATH_H): Require inline.
10012         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10013         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10014         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10015         implement warnings.
10016
10017         unistd: warn on use of environ without module
10018         * modules/unistd (Depends-on): Add warn-on-use.
10019         (Makefile.am): Provide new substitutions.
10020         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10021         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10022
10023         stdio: warn on suspicious uses
10024         * modules/stdio (Depends-on): Add warn-on-use.
10025         (Makefile.am): Provide new substitutions.
10026         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10027         fseeko.
10028         * lib/stdio.in.h (gets): Always warn on use.
10029         (fseek, ftell): Adjust when warnings are issued, and honor
10030         _GL_NO_LARGE_FILES as a way to silence the warning.
10031         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10032         any warning about large file offsets.
10033         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10034         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10035         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10036         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10037         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10038         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10039         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10040         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10041
10042         warn-on-use: new module
10043         * modules/warn-on-use: New file.
10044         * build-aux/warn-on-use.h: Likewise.
10045         * m4/warn-on-use.m4: Likewise.
10046         * MODULES.html.sh (Support for building): Mention it.
10047
10048 2010-01-10  Bruno Haible  <bruno@clisp.org>
10049
10050         Tests for module 'unistr/u32-strdup'.
10051         * modules/unistr/u32-strdup-tests: New file.
10052         * tests/unistr/test-u32-strdup.c: New file.
10053
10054         Tests for module 'unistr/u16-strdup'.
10055         * modules/unistr/u16-strdup-tests: New file.
10056         * tests/unistr/test-u16-strdup.c: New file.
10057
10058         Tests for module 'unistr/u8-strdup'.
10059         * modules/unistr/u8-strdup-tests: New file.
10060         * tests/unistr/test-u8-strdup.c: New file.
10061         * tests/unistr/test-strdup.h: New file.
10062
10063         Tests for module 'unistr/u32-strncmp'.
10064         * modules/unistr/u32-strncmp-tests: New file.
10065         * tests/unistr/test-u32-strncmp.c: New file.
10066
10067         Tests for module 'unistr/u16-strncmp'.
10068         * modules/unistr/u16-strncmp-tests: New file.
10069         * tests/unistr/test-u16-strncmp.c: New file.
10070
10071         Tests for module 'unistr/u8-strncmp'.
10072         * modules/unistr/u8-strncmp-tests: New file.
10073         * tests/unistr/test-u8-strncmp.c: New file.
10074         * tests/unistr/test-strncmp.h: New file.
10075
10076         Tests for module 'unistr/u32-strcoll'.
10077         * modules/unistr/u32-strcoll-tests: New file.
10078         * tests/unistr/test-u32-strcoll.c: New file.
10079
10080         Tests for module 'unistr/u16-strcoll'.
10081         * modules/unistr/u16-strcoll-tests: New file.
10082         * tests/unistr/test-u16-strcoll.c: New file.
10083
10084         Tests for module 'unistr/u8-strcoll'.
10085         * modules/unistr/u8-strcoll-tests: New file.
10086         * tests/unistr/test-u8-strcoll.c: New file.
10087
10088         Tests for module 'unistr/u32-strcmp'.
10089         * modules/unistr/u32-strcmp-tests: New file.
10090         * tests/unistr/test-u32-strcmp.c: New file.
10091         * tests/unistr/test-u32-strcmp.h: New file.
10092
10093         Tests for module 'unistr/u16-strcmp'.
10094         * modules/unistr/u16-strcmp-tests: New file.
10095         * tests/unistr/test-u16-strcmp.c: New file.
10096         * tests/unistr/test-u16-strcmp.h: New file.
10097
10098         Tests for module 'unistr/u8-strcmp'.
10099         * modules/unistr/u8-strcmp-tests: New file.
10100         * tests/unistr/test-u8-strcmp.c: New file.
10101         * tests/unistr/test-u8-strcmp.h: New file.
10102         * tests/unistr/test-strcmp.h: New file.
10103
10104         Tests for module 'unistr/u32-strncat'.
10105         * modules/unistr/u32-strncat-tests: New file.
10106         * tests/unistr/test-u32-strncat.c: New file.
10107
10108         Tests for module 'unistr/u16-strncat'.
10109         * modules/unistr/u16-strncat-tests: New file.
10110         * tests/unistr/test-u16-strncat.c: New file.
10111
10112         Tests for module 'unistr/u8-strncat'.
10113         * modules/unistr/u8-strncat-tests: New file.
10114         * tests/unistr/test-u8-strncat.c: New file.
10115         * tests/unistr/test-strncat.h: New file.
10116
10117         Tests for module 'unistr/u32-strcat'.
10118         * modules/unistr/u32-strcat-tests: New file.
10119         * tests/unistr/test-u32-strcat.c: New file.
10120
10121         Tests for module 'unistr/u16-strcat'.
10122         * modules/unistr/u16-strcat-tests: New file.
10123         * tests/unistr/test-u16-strcat.c: New file.
10124
10125         Tests for module 'unistr/u8-strcat'.
10126         * modules/unistr/u8-strcat-tests: New file.
10127         * tests/unistr/test-u8-strcat.c: New file.
10128         * tests/unistr/test-strcat.h: New file.
10129
10130         Tests for module 'unistr/u32-stpncpy'.
10131         * modules/unistr/u32-stpncpy-tests: New file.
10132         * tests/unistr/test-u32-stpncpy.c: New file.
10133
10134         Tests for module 'unistr/u16-stpncpy'.
10135         * modules/unistr/u16-stpncpy-tests: New file.
10136         * tests/unistr/test-u16-stpncpy.c: New file.
10137
10138         Tests for module 'unistr/u8-stpncpy'.
10139         * modules/unistr/u8-stpncpy-tests: New file.
10140         * tests/unistr/test-u8-stpncpy.c: New file.
10141         * tests/unistr/test-stpncpy.h: New file.
10142
10143         Tests for module 'unistr/u32-strncpy'.
10144         * modules/unistr/u32-strncpy-tests: New file.
10145         * tests/unistr/test-u32-strncpy.c: New file.
10146
10147         Tests for module 'unistr/u16-strncpy'.
10148         * modules/unistr/u16-strncpy-tests: New file.
10149         * tests/unistr/test-u16-strncpy.c: New file.
10150
10151         Tests for module 'unistr/u8-strncpy'.
10152         * modules/unistr/u8-strncpy-tests: New file.
10153         * tests/unistr/test-u8-strncpy.c: New file.
10154         * tests/unistr/test-strncpy.h: New file.
10155
10156         Tests for module 'unistr/u32-stpcpy'.
10157         * modules/unistr/u32-stpcpy-tests: New file.
10158         * tests/unistr/test-u32-stpcpy.c: New file.
10159
10160         Tests for module 'unistr/u16-stpcpy'.
10161         * modules/unistr/u16-stpcpy-tests: New file.
10162         * tests/unistr/test-u16-stpcpy.c: New file.
10163
10164         Tests for module 'unistr/u8-stpcpy'.
10165         * modules/unistr/u8-stpcpy-tests: New file.
10166         * tests/unistr/test-u8-stpcpy.c: New file.
10167         * tests/unistr/test-stpcpy.h: New file.
10168
10169         Tests for module 'unistr/u32-strcpy'.
10170         * modules/unistr/u32-strcpy-tests: New file.
10171         * tests/unistr/test-u32-strcpy.c: New file.
10172
10173         Tests for module 'unistr/u16-strcpy'.
10174         * modules/unistr/u16-strcpy-tests: New file.
10175         * tests/unistr/test-u16-strcpy.c: New file.
10176
10177         Tests for module 'unistr/u8-strcpy'.
10178         * modules/unistr/u8-strcpy-tests: New file.
10179         * tests/unistr/test-u8-strcpy.c: New file.
10180         * tests/unistr/test-strcpy.h: New file.
10181
10182         Tests for module 'unistr/u32-strnlen'.
10183         * modules/unistr/u32-strnlen-tests: New file.
10184         * tests/unistr/test-u32-strnlen.c: New file.
10185
10186         Tests for module 'unistr/u16-strnlen'.
10187         * modules/unistr/u16-strnlen-tests: New file.
10188         * tests/unistr/test-u16-strnlen.c: New file.
10189
10190         Tests for module 'unistr/u8-strnlen'.
10191         * modules/unistr/u8-strnlen-tests: New file.
10192         * tests/unistr/test-u8-strnlen.c: New file.
10193         * tests/unistr/test-strnlen.h: New file.
10194
10195         Tests for module 'unistr/u32-strlen'.
10196         * modules/unistr/u32-strlen-tests: New file.
10197         * tests/unistr/test-u32-strlen.c: New file.
10198
10199         Tests for module 'unistr/u16-strlen'.
10200         * modules/unistr/u16-strlen-tests: New file.
10201         * tests/unistr/test-u16-strlen.c: New file.
10202
10203         Tests for module 'unistr/u8-strlen'.
10204         * modules/unistr/u8-strlen-tests: New file.
10205         * tests/unistr/test-u8-strlen.c: New file.
10206
10207         Tests for module 'unistr/u32-prev'.
10208         * modules/unistr/u32-prev-tests: New file.
10209         * tests/unistr/test-u32-prev.c: New file.
10210
10211         Tests for module 'unistr/u16-prev'.
10212         * modules/unistr/u16-prev-tests: New file.
10213         * tests/unistr/test-u16-prev.c: New file.
10214
10215         Tests for module 'unistr/u8-prev'.
10216         * modules/unistr/u8-prev-tests: New file.
10217         * tests/unistr/test-u8-prev.c: New file.
10218
10219         Tests for module 'unistr/u32-next'.
10220         * modules/unistr/u32-next-tests: New file.
10221         * tests/unistr/test-u32-next.c: New file.
10222
10223         Tests for module 'unistr/u16-next'.
10224         * modules/unistr/u16-next-tests: New file.
10225         * tests/unistr/test-u16-next.c: New file.
10226
10227         Tests for module 'unistr/u8-next'.
10228         * modules/unistr/u8-next-tests: New file.
10229         * tests/unistr/test-u8-next.c: New file.
10230
10231         Tests for module 'unistr/u32-strmbtouc'.
10232         * modules/unistr/u32-strmbtouc-tests: New file.
10233         * tests/unistr/test-u32-strmbtouc.c: New file.
10234
10235         Tests for module 'unistr/u16-strmbtouc'.
10236         * modules/unistr/u16-strmbtouc-tests: New file.
10237         * tests/unistr/test-u16-strmbtouc.c: New file.
10238
10239         Tests for module 'unistr/u8-strmbtouc'.
10240         * modules/unistr/u8-strmbtouc-tests: New file.
10241         * tests/unistr/test-u8-strmbtouc.c: New file.
10242
10243         Tests for module 'unistr/u32-strmblen'.
10244         * modules/unistr/u32-strmblen-tests: New file.
10245         * tests/unistr/test-u32-strmblen.c: New file.
10246
10247         Tests for module 'unistr/u16-strmblen'.
10248         * modules/unistr/u16-strmblen-tests: New file.
10249         * tests/unistr/test-u16-strmblen.c: New file.
10250
10251         Tests for module 'unistr/u8-strmblen'.
10252         * modules/unistr/u8-strmblen-tests: New file.
10253         * tests/unistr/test-u8-strmblen.c: New file.
10254
10255         Tests for module 'unistr/u32-cpy-alloc'.
10256         * modules/unistr/u32-cpy-alloc-tests: New file.
10257         * tests/unistr/test-u32-cpy-alloc.c: New file.
10258
10259         Tests for module 'unistr/u16-cpy-alloc'.
10260         * modules/unistr/u16-cpy-alloc-tests: New file.
10261         * tests/unistr/test-u16-cpy-alloc.c: New file.
10262
10263         Tests for module 'unistr/u8-cpy-alloc'.
10264         * modules/unistr/u8-cpy-alloc-tests: New file.
10265         * tests/unistr/test-u8-cpy-alloc.c: New file.
10266         * tests/unistr/test-cpy-alloc.h: New file.
10267
10268         Tests for module 'unistr/u32-mbsnlen'.
10269         * modules/unistr/u32-mbsnlen-tests: New file.
10270         * tests/unistr/test-u32-mbsnlen.c: New file.
10271
10272         Tests for module 'unistr/u16-mbsnlen'.
10273         * modules/unistr/u16-mbsnlen-tests: New file.
10274         * tests/unistr/test-u16-mbsnlen.c: New file.
10275
10276         Tests for module 'unistr/u8-mbsnlen'.
10277         * modules/unistr/u8-mbsnlen-tests: New file.
10278         * tests/unistr/test-u8-mbsnlen.c: New file.
10279
10280         Tests for module 'unistr/u32-chr'.
10281         * modules/unistr/u32-chr-tests: New file.
10282         * tests/unistr/test-u32-chr.c: New file.
10283
10284         Tests for module 'unistr/u16-chr'.
10285         * modules/unistr/u16-chr-tests: New file.
10286         * tests/unistr/test-u16-chr.c: New file.
10287
10288         Tests for module 'unistr/u8-chr'.
10289         * modules/unistr/u8-chr-tests: New file.
10290         * tests/unistr/test-u8-chr.c: New file.
10291         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10292
10293         Tests for module 'unistr/u32-cmp2'.
10294         * modules/unistr/u32-cmp2-tests: New file.
10295         * tests/unistr/test-u32-cmp2.c: New file.
10296
10297         Tests for module 'unistr/u16-cmp2'.
10298         * modules/unistr/u16-cmp2-tests: New file.
10299         * tests/unistr/test-u16-cmp2.c: New file.
10300
10301         Tests for module 'unistr/u8-cmp2'.
10302         * modules/unistr/u8-cmp2-tests: New file.
10303         * tests/unistr/test-u8-cmp2.c: New file.
10304         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10305
10306         Tests for module 'unistr/u32-cmp'.
10307         * modules/unistr/u32-cmp-tests: New file.
10308         * tests/unistr/test-u32-cmp.c: New file.
10309
10310         Tests for module 'unistr/u16-cmp'.
10311         * modules/unistr/u16-cmp-tests: New file.
10312         * tests/unistr/test-u16-cmp.c: New file.
10313
10314         Tests for module 'unistr/u8-cmp'.
10315         * modules/unistr/u8-cmp-tests: New file.
10316         * tests/unistr/test-u8-cmp.c: New file.
10317         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10318
10319         Tests for module 'unistr/u32-set'.
10320         * modules/unistr/u32-set-tests: New file.
10321         * tests/unistr/test-u32-set.c: New file.
10322
10323         Tests for module 'unistr/u16-set'.
10324         * modules/unistr/u16-set-tests: New file.
10325         * tests/unistr/test-u16-set.c: New file.
10326
10327         Tests for module 'unistr/u8-set'.
10328         * modules/unistr/u8-set-tests: New file.
10329         * tests/unistr/test-u8-set.c: New file.
10330         * tests/unistr/test-set.h: New file.
10331
10332         Tests for module 'unistr/u32-move'.
10333         * modules/unistr/u32-move-tests: New file.
10334         * tests/unistr/test-u32-move.c: New file.
10335
10336         Tests for module 'unistr/u16-move'.
10337         * modules/unistr/u16-move-tests: New file.
10338         * tests/unistr/test-u16-move.c: New file.
10339
10340         Tests for module 'unistr/u8-move'.
10341         * modules/unistr/u8-move-tests: New file.
10342         * tests/unistr/test-u8-move.c: New file.
10343         * tests/unistr/test-move.h: New file.
10344
10345         Tests for module 'unistr/u32-cpy'.
10346         * modules/unistr/u32-cpy-tests: New file.
10347         * tests/unistr/test-u32-cpy.c: New file.
10348
10349         Tests for module 'unistr/u16-cpy'.
10350         * modules/unistr/u16-cpy-tests: New file.
10351         * tests/unistr/test-u16-cpy.c: New file.
10352
10353         Tests for module 'unistr/u8-cpy'.
10354         * modules/unistr/u8-cpy-tests: New file.
10355         * tests/unistr/test-u8-cpy.c: New file.
10356         * tests/unistr/test-cpy.h: New file.
10357
10358 2010-01-09  Bruno Haible  <bruno@clisp.org>
10359
10360         Tests for module 'unistr/u32-uctomb'.
10361         * modules/unistr/u32-uctomb-tests: New file.
10362         * tests/unistr/test-u32-uctomb.c: New file.
10363
10364         Tests for module 'unistr/u16-uctomb'.
10365         * modules/unistr/u16-uctomb-tests: New file.
10366         * tests/unistr/test-u16-uctomb.c: New file.
10367
10368         Tests for module 'unistr/u8-uctomb'.
10369         * modules/unistr/u8-uctomb-tests: New file.
10370         * tests/unistr/test-u8-uctomb.c: New file.
10371
10372         Tests for module 'unistr/u32-mbtoucr'.
10373         * modules/unistr/u32-mbtoucr-tests: New file.
10374         * tests/unistr/test-u32-mbtoucr.c: New file.
10375
10376         Tests for module 'unistr/u16-mbtoucr'.
10377         * modules/unistr/u16-mbtoucr-tests: New file.
10378         * tests/unistr/test-u16-mbtoucr.c: New file.
10379
10380         Tests for module 'unistr/u8-mbtoucr'.
10381         * modules/unistr/u8-mbtoucr-tests: New file.
10382         * tests/unistr/test-u8-mbtoucr.c: New file.
10383
10384         Tests for module 'unistr/u32-mbtouc'.
10385         * modules/unistr/u32-mbtouc-tests: New file.
10386         * tests/unistr/test-u32-mbtouc.c: New file.
10387
10388         Tests for module 'unistr/u16-mbtouc'.
10389         * modules/unistr/u16-mbtouc-tests: New file.
10390         * tests/unistr/test-u16-mbtouc.c: New file.
10391
10392         Tests for module 'unistr/u8-mbtouc'.
10393         * modules/unistr/u8-mbtouc-tests: New file.
10394         * tests/unistr/test-u8-mbtouc.c: New file.
10395
10396         Tests for module 'unistr/u32-mbtouc-unsafe'.
10397         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10398         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10399         * tests/unistr/test-u32-mbtouc.h: New file.
10400
10401         Tests for module 'unistr/u16-mbtouc-unsafe'.
10402         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10403         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10404         * tests/unistr/test-u16-mbtouc.h: New file.
10405
10406         Tests for module 'unistr/u8-mbtouc-unsafe'.
10407         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10408         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10409         * tests/unistr/test-u8-mbtouc.h: New file.
10410
10411         Tests for module 'unistr/u32-mblen'.
10412         * modules/unistr/u32-mblen-tests: New file.
10413         * tests/unistr/test-u32-mblen.c: New file.
10414
10415         Tests for module 'unistr/u16-mblen'.
10416         * modules/unistr/u16-mblen-tests: New file.
10417         * tests/unistr/test-u16-mblen.c: New file.
10418
10419         Tests for module 'unistr/u8-mblen'.
10420         * modules/unistr/u8-mblen-tests: New file.
10421         * tests/unistr/test-u8-mblen.c: New file.
10422
10423         Tests for module 'unistr/u32-to-u16'.
10424         * modules/unistr/u32-to-u16-tests: New file.
10425         * tests/unistr/test-u32-to-u16.c: New file.
10426
10427         Tests for module 'unistr/u32-to-u8'.
10428         * modules/unistr/u32-to-u8-tests: New file.
10429         * tests/unistr/test-u32-to-u8.c: New file.
10430
10431         Tests for module 'unistr/u16-to-u32'.
10432         * modules/unistr/u16-to-u32-tests: New file.
10433         * tests/unistr/test-u16-to-u32.c: New file.
10434
10435         Tests for module 'unistr/u16-to-u8'.
10436         * modules/unistr/u16-to-u8-tests: New file.
10437         * tests/unistr/test-u16-to-u8.c: New file.
10438
10439         Tests for module 'unistr/u8-to-u32'.
10440         * modules/unistr/u8-to-u32-tests: New file.
10441         * tests/unistr/test-u8-to-u32.c: New file.
10442
10443         Tests for module 'unistr/u8-to-u16'.
10444         * modules/unistr/u8-to-u16-tests: New file.
10445         * tests/unistr/test-u8-to-u16.c: New file.
10446
10447         Tests for module 'unistr/u32-check'.
10448         * modules/unistr/u32-check-tests: New file.
10449         * tests/unistr/test-u32-check.c: New file.
10450
10451         Tests for module 'unistr/u16-check'.
10452         * modules/unistr/u16-check-tests: New file.
10453         * tests/unistr/test-u16-check.c: New file.
10454
10455         Tests for module 'unistr/u8-check'.
10456         * modules/unistr/u8-check-tests: New file.
10457         * tests/unistr/test-u8-check.c: New file.
10458
10459         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10460         (category_equals): New function.
10461         (main): Add more tests.
10462         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10463
10464         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10465
10466 2010-01-10  Bruno Haible  <bruno@clisp.org>
10467
10468         unistr/u*-strcoll: Try harder to distinguish different strings.
10469         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10470         compare s1 and s2 to see if they are different.
10471
10472 2010-01-10  Bruno Haible  <bruno@clisp.org>
10473
10474         unistr/u*-stpncpy: Fix the return value.
10475         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10476         description of the return value consistent with stpncpy in glibc.
10477         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10478         written non-NUL unit.
10479
10480 2010-01-10  Bruno Haible  <bruno@clisp.org>
10481
10482         unistr/u*-next: Add missing dependencies.
10483         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10484         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10485         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10486
10487 2010-01-10  Bruno Haible  <bruno@clisp.org>
10488
10489         unistr/u8-mbsnlen: Fix return value for incomplete character.
10490         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10491         u8_mblen.
10492         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10493         Remove unistr/u8-mblen.
10494         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10495         u16_mblen.
10496         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10497         Remove unistr/u16-mblen.
10498
10499 2010-01-10  Bruno Haible  <bruno@clisp.org>
10500
10501         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10502         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10503         Reported by Brian Gough <bjg@gnu.org> and
10504         Chris Clayton <chris2553@googlemail.com> via
10505         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10506
10507 2010-01-09  Bruno Haible  <bruno@clisp.org>
10508
10509         unistr/u16-to-u32: Reject invalid input.
10510         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10511         u16_mbtouc.
10512         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10513         Remove unistr/u16-mbtouc.
10514
10515         unistr/u16-to-u8: Reject invalid input.
10516         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10517         u16_mbtouc.
10518         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10519         Remove unistr/u16-mbtouc.
10520
10521         unistr/u8-to-u32: Reject invalid input.
10522         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10523         u8_mbtouc.
10524         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10525         Remove unistr/u8-mbtouc.
10526
10527         unistr/u8-to-u16: Reject invalid input.
10528         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10529         u8_mbtouc.
10530         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10531         Remove unistr/u8-mbtouc.
10532
10533 2010-01-09  Bruno Haible  <bruno@clisp.org>
10534
10535         Tests for module 'getlogin'.
10536         * modules/getlogin-tests: New file.
10537         * tests/test-getlogin.c: New file.
10538
10539         New module 'getlogin'.
10540         * lib/unistd.in.h (getlogin): New declaration.
10541         * lib/getlogin.c: New file.
10542         * m4/getlogin.m4: New file.
10543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10544         HAVE_GETLOGIN.
10545         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10546         HAVE_GETLOGIN.
10547         * modules/getlogin: New file.
10548         * doc/posix-functions/getlogin.texi: Mention the new module.
10549         Reported by John W. Eaton <jwe@gnu.org>.
10550
10551 2010-01-09  Bruno Haible  <bruno@clisp.org>
10552
10553         getlogin_r: Support for native Windows.
10554         * lib/getlogin_r.c: Include <windows.h>
10555         (getlogin_r): Implement for native Windows.
10556         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10557         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10558         via John W. Eaton <jwe@gnu.org>.
10559
10560 2010-01-09  Bruno Haible  <bruno@clisp.org>
10561
10562         getlogin_r: Small fixes.
10563         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10564         succeeds.
10565         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10566         before testing whether getlogin_r is declared. No need to set
10567         HAVE_DECL_GETLOGIN_R to 1.
10568         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10569
10570 2010-01-09  Bruno Haible  <bruno@clisp.org>
10571
10572         * lib/unistd.in.h (getlogin_r): Add comment.
10573
10574 2010-01-09  Bruno Haible  <bruno@clisp.org>
10575
10576         Tests for module 'getlogin_r'.
10577         * modules/getlogin_r-tests: New file.
10578         * tests/test-getlogin_r.c: New file.
10579
10580 2010-01-09  Jim Meyering  <meyering@redhat.com>
10581
10582         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10583         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10584         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10585
10586 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10587
10588         * lib/dup2.c (rpl_dup2): Improve comment.
10589
10590 2010-01-08  Eric Blake  <ebb9@byu.net>
10591
10592         maint.mk: allow packages to add makefile @@ exceptions
10593         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10594         (sc_makefile_check): Rename...
10595         (sc_makefile_at_at_check): ...to this, and use hook.
10596
10597         dup2: work around mingw bug
10598         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10599         Reported by Simon Josefsson.
10600
10601 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10602
10603         glob: Fix C++ compilation.
10604         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10605         C++.
10606
10607 2010-01-07  Bruno Haible  <bruno@clisp.org>
10608
10609         Fix indentation of wctype.in.h, broken since 2007-01-06.
10610         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10611
10612 2010-01-07  Bruno Haible  <bruno@clisp.org>
10613
10614         mbslen: Avoid collision with system function.
10615         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10616         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10617         * m4/mbslen.m4: New file.
10618         * modules/mbslen (Files): Add it.
10619         (configure.ac): Invoke gl_MBSLEN.
10620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10621         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10622         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10623         via Ian Beckwith <ianb@erislabs.net>.
10624
10625 2010-01-07  Bruno Haible  <bruno@clisp.org>
10626
10627         dirent: Document the last fix.
10628         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10629
10630 2010-01-07  Bruno Haible  <bruno@clisp.org>
10631
10632         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10633         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10634         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10635         va_list are defined.
10636         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10637         Reported by Eric Blake.
10638
10639 2010-01-07  Bruno Haible  <bruno@clisp.org>
10640
10641         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10642         * modules/xlist (Depends-on): Add 'list',
10643         * modules/xoset (Depends-on): Add 'oset'.
10644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10645
10646 2010-01-07  Bruno Haible  <bruno@clisp.org>
10647
10648         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10649         * doc/posix-functions/strncasecmp.texi: Likewise.
10650
10651 2010-01-07  Bruno Haible  <bruno@clisp.org>
10652
10653         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10654
10655 2010-01-07  John W. Eaton  <jwe@octave.org>
10656
10657         wctype: allow C++ use
10658         * lib/wctype.in.h: Add extern "C" block for C++.
10659
10660 2010-01-06  Eric Blake  <ebb9@byu.net>
10661
10662         maint.mk: detect incorrect GFDL usage
10663         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10664
10665 2010-01-06  Jim Meyering  <meyering@redhat.com>
10666         and Eric Blake  <ebb9@byu.net>
10667
10668         maint.mk: ignore multi-line copyright in NEWS
10669         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10670
10671 2010-01-06  Eric Blake  <ebb9@byu.net>
10672
10673         select: add missing dependency
10674         * modules/select-tests (Depends-on): Move sockets dependency...
10675         * modules/select (Depends-on): ...here.
10676         Reported by Ian Beckwith.
10677
10678         doc: regenerate INSTALL
10679         * doc/INSTALL: Reflect recent autoconf update.
10680         * doc/INSTALL.ISO: Likewise.
10681         * doc/INSTALL.UTF-8: Likewise.
10682
10683         pread: fix compilation on glibc
10684         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10685         Reported by Ralf Wildenhues.
10686
10687         dirent: fix test failure
10688         * lib/dirent.in.h (includes): Guarantee ino_t.
10689         Reported by Ralf Wildenhues.
10690
10691 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10692
10693         linkat, renameat: avoid bad free
10694         * lib/at-func2.c (at_func2): Fix typo.
10695         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10696
10697 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10698
10699         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10700         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10701         to avoid failure of symlink test later.
10702
10703 2010-01-06  Eric Blake  <ebb9@byu.net>
10704
10705         stdio, unistd: guarantee ssize_t
10706         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10707         2008 are exposed when needed.
10708         * lib/stdio.in.h (includes): Likewise.
10709         Reported by Ralf Wildenhues.
10710
10711 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10712
10713         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10714         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10715         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10716
10717 2010-01-06  Jim Meyering  <meyering@redhat.com>
10718
10719         readtokens: this module *does* require xalloc.h
10720         It uses only functions that were omitted by the old syntax-check rule.
10721         * lib/readtokens.c: Include "xalloc.h" once again.
10722         * modules/readtokens (Depends-on): Add xalloc.
10723         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10724
10725 2010-01-05  Eric Blake  <ebb9@byu.net>
10726
10727         maint: support 'make announcement' from a VPATH build
10728         * top/maint.mk (announcement): Look for correct NEWS file.
10729
10730 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10731
10732         utimens (fdutimens): ignore a negative FD, per contract
10733         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10734         when we have a valid file descriptor.  Otherwise, using a brand
10735         new glibc (with just-patched futimens that now fails with EBADF)
10736         would cause this function to fail with ENOSYS.
10737         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10738         See also http://bugzilla.redhat.com/552320.
10739
10740 2010-01-05  Eric Blake  <ebb9@byu.net>
10741
10742         strcase: document what it provides
10743         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10744         gnulib module.
10745         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10746         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10747
10748 2010-01-05  Jim Meyering  <meyering@redhat.com>
10749
10750         maint: remove useless inclusions of "xalloc.h"
10751         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10752         * lib/readtokens.c: Likewise.
10753         * lib/same.c: Likewise.
10754         * modules/getloadavg (Depends-on): Remove xalloc.
10755         * modules/readtokens: Likewise.
10756         * modules/same: Likewise.
10757
10758         maint.mk: include 4 more function names in alloca.h-checking regexp
10759         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10760         regexp.  Before, we would give a false-positive (saying alloca.h
10761         is included unnecessarily) when the only uses involved omitted symbols.
10762
10763         xalloc.h: use consistent formatting
10764         * lib/xalloc.h: Move declarations to start in the first column.
10765
10766 2010-01-05  Eric Blake  <ebb9@byu.net>
10767
10768         mkdir: avoid xalloc
10769         * lib/mkdir.c (includes): Drop unused header.
10770         Reported by John W. Eaton.
10771
10772 2010-01-04  Jim Meyering  <meyering@redhat.com>
10773
10774         nl_langinfo: avoid configure-time syntax error
10775         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10776         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10777         the empty string.  Don't let that provoke a shell syntax error.
10778
10779         regcomp, regexec, fnmatch: avoid array bounds read error
10780         * lib/regcomp.c (build_equiv_class): From glibc:
10781         Use only the low 24 bits of a findidx return value as an index
10782         into the weights array.  Patch by Ulrich Drepper:
10783         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10784         * lib/regexec.c (check_node_accept_bytes): Likewise.
10785         * lib/fnmatch_loop.c (FCT): Likewise.
10786
10787         regcomp: skip collseq lookup when there are no rules
10788         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10789         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10790
10791         regcomp: recognize ill-formed { } expressions
10792         * lib/regcomp.c (parse_dup_op): From glibc:
10793         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10794
10795         regcomp: fix typo in comment
10796         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10797         s/satisfy/satisfies/.
10798
10799         regcomp: sync from glibc: remove dead store
10800         * lib/regcomp.c (duplicate_node_closure): Remove useless
10801         search_duplicated_node call and dead store.
10802
10803         regcomp: sync from glibc; always use nl_langinfo
10804         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10805         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10806         * modules/regex (Depends-on): Add nl_langinfo.
10807
10808 2010-01-04  Eric Blake  <ebb9@byu.net>
10809
10810         fdopendir: fix configure test
10811         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10812
10813 2010-01-01  Bruno Haible  <bruno@clisp.org>
10814
10815         wchar: Remove unused configure check.
10816         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10817
10818 2010-01-01  Eric Blake  <ebb9@byu.net>
10819
10820         headers: make check of system header explicit
10821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10822         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10823         ourselves.
10824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10825         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10826         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10828         internals.
10829         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10830         missing.
10831         Suggested by Bruno Haible.
10832
10833 2010-01-01  Jim Meyering  <meyering@redhat.com>
10834
10835         ChangeLog: tweak to eliminate unnecessary copyright line
10836         * ChangeLog: Remove a copyright line that was mistakenly updated
10837         by today's update-copyright run.  Reported by Eric Blake.
10838
10839         test-update-copyright: don't let envvar setting cause test failure
10840         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10841
10842 2010-01-01  Bruno Haible  <bruno@clisp.org>
10843
10844         localename: Avoid gcc warning.
10845         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10846         function if it is not used.
10847
10848 2010-01-01  Jim Meyering  <meyering@redhat.com>
10849
10850         update nearly all FSF copyright year lists to include 2010
10851         Use the same procedure as for 2009, outlined in
10852         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10853
10854         version-etc: set COPYRIGHT_YEAR to 2010
10855         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10856
10857 2009-12-31  Eric Blake  <ebb9@byu.net>
10858
10859         doc: correct availability of cygwin 1.5.x getopt
10860         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10861         variables.
10862         * doc/posix-functions/opterr.texi (opterr): Likewise.
10863         * doc/posix-functions/optind.texi (optind): Likewise.
10864         * doc/posix-functions/optopt.texi (optopt): Likewise.
10865         * doc/posix-functions/tzname.texi (tzname): Likewise.
10866
10867         openat: update maintainer
10868         * modules/openat (Maintainer): Add myself.
10869
10870         utimens: avoid shadowing warning
10871         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10872         buffers into one, to avoid shadowing, as well as avoiding a
10873         redundant stat.
10874         Reported by Jim Meyering.
10875
10876         test-dup2: avoid compiler warning
10877         * tests/test-dup2.c (is_inheritable): Only define if used.
10878
10879 2010-01-01  Bruno Haible  <bruno@clisp.org>
10880
10881         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10882         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10883         defined, use wctomb instead of wcrtomb.
10884
10885 2010-01-01  Bruno Haible  <bruno@clisp.org>
10886
10887         iconv: Reject native Solaris iconv.
10888         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10889         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10890
10891 2009-12-31  Bruno Haible  <bruno@clisp.org>
10892
10893         * tests/test-signal.c (main): Remove test of 'SIG'.
10894
10895 2009-12-31  Bruno Haible  <bruno@clisp.org>
10896
10897         spawn: Fix incomplete fix.
10898         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10899         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10900         warnings for GNULIB_POSIXCHECK again.
10901         Reported by Eric Blake.
10902
10903 2009-12-31  Bruno Haible  <bruno@clisp.org>
10904
10905         Avoid namespace pollution on glibc systems.
10906         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10907         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10908         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10909         glibc systems.
10910
10911 2009-12-31  Bruno Haible  <bruno@clisp.org>
10912
10913         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10914         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10915         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10916         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10917         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10918         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10919         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10920
10921 2009-12-31  Bruno Haible  <bruno@clisp.org>
10922
10923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10924         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10925         afterwards.
10926
10927 2009-12-31  Bruno Haible  <bruno@clisp.org>
10928
10929         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10930         SYS_UTSNAME_H.
10931
10932 2009-12-31  Bruno Haible  <bruno@clisp.org>
10933
10934         spawn: Fix misapplied patch.
10935         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10936         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10937         warnings for GNULIB_POSIXCHECK.
10938
10939 2009-12-31  Bruno Haible  <bruno@clisp.org>
10940
10941         times: Update after sys_times changed.
10942         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10943         * modules/times (Files): Add it.
10944         (configure.ac): Invoke gl_FUNC_TIMES.
10945
10946 2009-12-31  Bruno Haible  <bruno@clisp.org>
10947
10948         Use AC_C_INLINE where necessary.
10949         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10950         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10951         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10952         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10953         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10954         * m4/mbiter.m4 (gl_MBITER): Likewise.
10955         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10956         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10957         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10958         * modules/u64 (configure.ac): Likewise.
10959
10960 2009-12-31  Bruno Haible  <bruno@clisp.org>
10961
10962         Use AC_C_INLINE instead of module 'inline' where possible.
10963         * modules/inline (Description): Clarify purpose.
10964         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10965         * modules/count-one-bits (Depends-on): Remove inline.
10966         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10967         * modules/openat (Depends-on): Remove inline.
10968         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10969         instead of depending on module 'inline'.
10970         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10971         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10972         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10973         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10974         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10975         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10976         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10977         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10978         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10979         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10980         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10981         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10982         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10983         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10984         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10985         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10986         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10987         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10988         Likewise.
10989         * modules/unictype/property-ascii-hex-digit (Depends-on,
10990         configure.ac): Likewise.
10991         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10992         configure.ac): Likewise.
10993         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10994         configure.ac): Likewise.
10995         * modules/unictype/property-bidi-block-separator (Depends-on,
10996         configure.ac): Likewise.
10997         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10998         configure.ac): Likewise.
10999         * modules/unictype/property-bidi-common-separator (Depends-on,
11000         configure.ac): Likewise.
11001         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11002         Likewise.
11003         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11004         configure.ac): Likewise.
11005         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11006         configure.ac): Likewise.
11007         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11008         configure.ac): Likewise.
11009         * modules/unictype/property-bidi-european-digit (Depends-on,
11010         configure.ac): Likewise.
11011         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11012         configure.ac): Likewise.
11013         * modules/unictype/property-bidi-left-to-right (Depends-on,
11014         configure.ac): Likewise.
11015         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11016         configure.ac): Likewise.
11017         * modules/unictype/property-bidi-other-neutral (Depends-on,
11018         configure.ac): Likewise.
11019         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11020         Likewise.
11021         * modules/unictype/property-bidi-segment-separator (Depends-on,
11022         configure.ac): Likewise.
11023         * modules/unictype/property-bidi-whitespace (Depends-on,
11024         configure.ac): Likewise.
11025         * modules/unictype/property-combining (Depends-on, configure.ac):
11026         Likewise.
11027         * modules/unictype/property-composite (Depends-on, configure.ac):
11028         Likewise.
11029         * modules/unictype/property-currency-symbol (Depends-on,
11030         configure.ac): Likewise.
11031         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11032         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11033         Likewise.
11034         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11035         configure.ac): Likewise.
11036         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11037         Likewise.
11038         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11039         Likewise.
11040         * modules/unictype/property-extender (Depends-on, configure.ac):
11041         Likewise.
11042         * modules/unictype/property-format-control (Depends-on, configure.ac):
11043         Likewise.
11044         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11045         Likewise.
11046         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11047         Likewise.
11048         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11049         Likewise.
11050         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11051         Likewise.
11052         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11053         Likewise.
11054         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11055         Likewise.
11056         * modules/unictype/property-id-start (Depends-on, configure.ac):
11057         Likewise.
11058         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11059         Likewise.
11060         * modules/unictype/property-ids-binary-operator (Depends-on,
11061         configure.ac): Likewise.
11062         * modules/unictype/property-ids-trinary-operator (Depends-on,
11063         configure.ac): Likewise.
11064         * modules/unictype/property-ignorable-control (Depends-on,
11065         configure.ac): Likewise.
11066         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11067         Likewise.
11068         * modules/unictype/property-join-control (Depends-on, configure.ac):
11069         Likewise.
11070         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11071         Likewise.
11072         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11073         Likewise.
11074         * modules/unictype/property-logical-order-exception (Depends-on,
11075         configure.ac): Likewise.
11076         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11077         Likewise.
11078         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11079         * modules/unictype/property-non-break (Depends-on, configure.ac):
11080         Likewise.
11081         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11082         Likewise.
11083         * modules/unictype/property-numeric (Depends-on, configure.ac):
11084         Likewise.
11085         * modules/unictype/property-other-alphabetic (Depends-on,
11086         configure.ac): Likewise.
11087         * modules/unictype/property-other-default-ignorable-code-point
11088         (Depends-on, configure.ac): Likewise.
11089         * modules/unictype/property-other-grapheme-extend (Depends-on,
11090         configure.ac): Likewise.
11091         * modules/unictype/property-other-id-continue (Depends-on,
11092         configure.ac): Likewise.
11093         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11094         Likewise.
11095         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11096         Likewise.
11097         * modules/unictype/property-other-math (Depends-on, configure.ac):
11098         Likewise.
11099         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11100         Likewise.
11101         * modules/unictype/property-paired-punctuation (Depends-on,
11102         configure.ac): Likewise.
11103         * modules/unictype/property-paragraph-separator (Depends-on,
11104         configure.ac): Likewise.
11105         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11106         Likewise.
11107         * modules/unictype/property-pattern-white-space (Depends-on,
11108         configure.ac): Likewise.
11109         * modules/unictype/property-private-use (Depends-on, configure.ac):
11110         Likewise.
11111         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11112         Likewise.
11113         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11114         Likewise.
11115         * modules/unictype/property-radical (Depends-on, configure.ac):
11116         Likewise.
11117         * modules/unictype/property-sentence-terminal (Depends-on,
11118         configure.ac): Likewise.
11119         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11120         Likewise.
11121         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11122         * modules/unictype/property-terminal-punctuation (Depends-on,
11123         configure.ac): Likewise.
11124         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11125         Likewise.
11126         * modules/unictype/property-unassigned-code-value (Depends-on,
11127         configure.ac): Likewise.
11128         * modules/unictype/property-unified-ideograph (Depends-on,
11129         configure.ac): Likewise.
11130         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11131         Likewise.
11132         * modules/unictype/property-variation-selector (Depends-on,
11133         configure.ac): Likewise.
11134         * modules/unictype/property-white-space (Depends-on, configure.ac):
11135         Likewise.
11136         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11137         Likewise.
11138         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11139         Likewise.
11140         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11141         Likewise.
11142         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11143         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11144         Likewise.
11145
11146 2009-12-31  Bruno Haible  <bruno@clisp.org>
11147
11148         Remove unnecessary AC_C_INLINE invocation.
11149         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11150         since 2009-08-21.
11151
11152 2009-12-31  Jim Meyering  <meyering@redhat.com>
11153
11154         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11155         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11156         With this change, we can all remove the gpg_key_ID = ... definition
11157         from our respective cfg.mk files.
11158
11159         maint.mk: create announcement template in ~/, not in /tmp
11160         * top/maint.mk (emit_upload_commands): Adjust.
11161         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11162         Remove temporary file, .ci-msg.
11163
11164 2009-12-31  Eric Blake  <ebb9@byu.net>
11165
11166         link-warning: always build headers with link warnings
11167         * modules/arpa_inet (Makefile.am): Always build replacement
11168         header.
11169         * modules/ctype (Makefile.am): Likewise.
11170         * modules/dirent (Makefile.am): Likewise.
11171         * modules/inttypes (Makefile.am): Likewise.
11172         * modules/langinfo (Makefile.am): Likewise.
11173         * modules/locale (Makefile.am): Likewise.
11174         * modules/spawn (Makefile.am): Likewise.
11175         * modules/sys_file (Makefile.am): Likewise.
11176         * modules/sys_ioctl (Makefile.am): Likewise.
11177         * modules/sys_select (Makefile.am): Likewise.
11178         * modules/sys_socket (Makefile.am): Likewise.
11179         * modules/sys_times (Makefile.am): Likewise.
11180         * modules/sys_utsname (Makefile.am): Likewise.
11181         * modules/sys_wait (Makefile.am): Likewise.
11182         * modules/wchar (Makefile.am): Likewise.
11183         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11184         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11185         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11186         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11187         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11188         Likewise.
11189         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11190         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11191         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11192         Likewise.
11193         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11194         Likewise.
11195         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11196         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11197         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11199         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11200         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11201         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11202         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11203         (gl_WCHAR_H_DEFAULTS): Likewise.
11204
11205 2009-12-31  Eric Blake  <ebb9@byu.net>
11206
11207         signal, spawn: use link warnings
11208         * lib/signal.in.h (sigset_t): Make unconditional.
11209         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11210         (sigpending, sigprocmask, sigaction): Add link warnings.
11211         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11212         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11213         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11214         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11215         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11216         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11217         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11218         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11219         (posix_spawn_file_actions_destroy)
11220         (posix_spawn_file_actions_addopen)
11221         (posix_spawn_file_actions_addclose)
11222         (posix_spawn_file_actions_adddup2): Likewise.
11223         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11224         * tests/test-signal.c (main): Enhance test.
11225
11226         spawn: improve wrapper support
11227         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11228         (gl_SPAWN_H_DEFAULTS): New defaults.
11229         * modules/spawn (Makefile.am): Substitute them.
11230         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11231         Only declare if missing or broken.
11232
11233         sys_times, sys_utsname: use include_next
11234         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11235         header.
11236         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11237         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11238         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11239         * modules/sys_times (Depends-on): Add include_next.
11240         (Makefile.am): Substitute additional values.
11241         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11242         * lib/sys_times.in.h (includes): Include native header, if
11243         available.
11244         * lib/sys_utsname.in.h (includes): Likewise.
11245         * tests/test-sys_times.c (main): Enhance test.
11246
11247         fdutimensat: revert prior patch
11248         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11249         utimens.h.
11250         Reported by Bruno Haible.
11251
11252 2009-12-30  Eric Blake  <ebb9@byu.net>
11253
11254         sys_wait: drop link-warning dependency
11255         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11256         link-warning efforts.
11257         * lib/sys_wait.in.h: Likewise.
11258
11259         fdutimensat: remove bogus dependency
11260         * modules/fdutimensat (Depends-on): Drop inline.
11261
11262         unistd: fix typo
11263         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11264
11265 2009-12-30  Bruno Haible  <bruno@clisp.org>
11266
11267         Fix compilation error with Solaris cc.
11268         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11269         * lib/unicase/u16-is-invariant.c: Likewise.
11270         * lib/unicase/u32-is-invariant.c: Likewise.
11271         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11272
11273 2009-12-30  Bruno Haible  <bruno@clisp.org>
11274
11275         Fix test crash.
11276         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11277         locales.
11278         Reported by Simon Josefsson <simon@josefsson.org>.
11279
11280 2009-12-30  Bruno Haible  <bruno@clisp.org>
11281
11282         Fix compilation error on most platforms.
11283         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11284         Reported by Simon Josefsson <simon@josefsson.org>
11285         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11286
11287 2009-12-30  Eric Blake  <ebb9@byu.net>
11288
11289         futimens, utimensat: work around ntfs-3g bug
11290         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11291         a ctime bug is present, and expand workaround to cover ntfs-3g.
11292         * lib/utimens.c (fdutimens, lutimens): Likewise.
11293         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11294         (validate_timespec): Adjust return value.
11295         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11296         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11297         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11298
11299 2009-12-29  Eric Blake  <ebb9@byu.net>
11300
11301         link-warning: make usage consistent
11302         * modules/ctype (Depends-on): Add link-warning.
11303         (Makefile.am): Update rules accordingly.
11304         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11305         * modules/locale (Depends-on, Makefile.am): Likewise.
11306         * modules/sys_file (Makefile.am): Likewise.
11307         * modules/getopt-posix (Makefile.am): Delete unused link warning
11308         efforts.
11309         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11310         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11311         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11312         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11313
11314         stdio: remove unused variables
11315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11316         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11317         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11318
11319         tests: test more substitute headers
11320         * modules/ctype-tests: New file.
11321         * modules/dirent-tests: Likewise.
11322         * modules/spawn-tests: Likewise.
11323         * modules/sys_file-tests: Likewise.
11324         * modules/sys_ioctl-tests: Likewise.
11325         * modules/sys_wait-tests: Likewise.
11326         * tests/test-ctype.c: Likewise.
11327         * tests/test-dirent.c: Likewise.
11328         * tests/test-spawn.c: Likewise.
11329         * tests/test-sys_file.c: Likewise.
11330         * tests/test-sys_ioctl.c: Likewise.
11331         * tests/test-sys_wait.c: Likewise.
11332         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11333         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11334         whether or not flock is in use.
11335
11336         tests: remove License section from module
11337         * modules/arpa_inet-tests: Remove unneeded section.
11338         * modules/byteswap-tests: Likewise.
11339         * modules/ceilf-tests: Likewise.
11340         * modules/ceill-tests: Likewise.
11341         * modules/crypto/des-tests: Likewise.
11342         * modules/crypto/gc-arcfour-tests: Likewise.
11343         * modules/crypto/gc-arctwo-tests: Likewise.
11344         * modules/crypto/gc-des-tests: Likewise.
11345         * modules/crypto/gc-hmac-md5-tests: Likewise.
11346         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11347         * modules/crypto/gc-md2-tests: Likewise.
11348         * modules/crypto/gc-md4-tests: Likewise.
11349         * modules/crypto/gc-md5-tests: Likewise.
11350         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11351         * modules/crypto/gc-rijndael-tests: Likewise.
11352         * modules/crypto/gc-sha1-tests: Likewise.
11353         * modules/crypto/gc-tests: Likewise.
11354         * modules/crypto/md2-tests: Likewise.
11355         * modules/crypto/md4-tests: Likewise.
11356         * modules/fcntl-h-tests: Likewise.
11357         * modules/floorf-tests: Likewise.
11358         * modules/floorl-tests: Likewise.
11359         * modules/frexp-nolibm-tests: Likewise.
11360         * modules/frexp-tests: Likewise.
11361         * modules/frexpl-nolibm-tests: Likewise.
11362         * modules/frexpl-tests: Likewise.
11363         * modules/getaddrinfo-tests: Likewise.
11364         * modules/inttypes-tests: Likewise.
11365         * modules/isfinite-tests: Likewise.
11366         * modules/isinf-tests: Likewise.
11367         * modules/ldexpl-tests: Likewise.
11368         * modules/locale-tests: Likewise.
11369         * modules/math-tests: Likewise.
11370         * modules/netdb-tests: Likewise.
11371         * modules/netinet_in-tests: Likewise.
11372         * modules/printf-frexp-tests: Likewise.
11373         * modules/printf-frexpl-tests: Likewise.
11374         * modules/priv-set-tests: Likewise.
11375         * modules/random_r-tests: Likewise.
11376         * modules/round-tests: Likewise.
11377         * modules/roundf-tests: Likewise.
11378         * modules/roundl-tests: Likewise.
11379         * modules/search-tests: Likewise.
11380         * modules/select-tests: Likewise.
11381         * modules/signal-tests: Likewise.
11382         * modules/stdbool-tests: Likewise.
11383         * modules/stddef-tests: Likewise.
11384         * modules/stdint-tests: Likewise.
11385         * modules/stdio-tests: Likewise.
11386         * modules/stdlib-tests: Likewise.
11387         * modules/string-tests: Likewise.
11388         * modules/strings-tests: Likewise.
11389         * modules/sys_select-tests: Likewise.
11390         * modules/sys_socket-tests: Likewise.
11391         * modules/sys_stat-tests: Likewise.
11392         * modules/sys_time-tests: Likewise.
11393         * modules/sys_utsname-tests: Likewise.
11394         * modules/sysexits-tests: Likewise.
11395         * modules/time-tests: Likewise.
11396         * modules/trunc-tests: Likewise.
11397         * modules/truncf-tests: Likewise.
11398         * modules/truncl-tests: Likewise.
11399         * modules/tsearch-tests: Likewise.
11400         * modules/unistd-tests: Likewise.
11401         * modules/wchar-tests: Likewise.
11402         * modules/wctype-tests: Likewise.
11403
11404         tests: fix license on several tests
11405         * tests/test-des.c: Update to GPLv3+.
11406         * tests/test-flock.c: Likewise.
11407         * tests/test-fsync.c: Likewise.
11408         * tests/test-futimens.h: Likewise.
11409         * tests/test-gc-arcfour.c: Likewise.
11410         * tests/test-gc-arctwo.c: Likewise.
11411         * tests/test-gc-des.c: Likewise.
11412         * tests/test-gc-hmac-md5.c: Likewise.
11413         * tests/test-gc-hmac-sha1.c: Likewise.
11414         * tests/test-gc-md2.c: Likewise.
11415         * tests/test-gc-md4.c: Likewise.
11416         * tests/test-gc-md5.c: Likewise.
11417         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11418         * tests/test-gc-rijndael.c: Likewise.
11419         * tests/test-gc-sha1.c: Likewise.
11420         * tests/test-gc.c: Likewise.
11421         * tests/test-getcwd.c: Likewise.
11422         * tests/test-link.c: Likewise.
11423         * tests/test-link.h: Likewise.
11424         * tests/test-lutimens.h: Likewise.
11425         * tests/test-md2.c: Likewise.
11426         * tests/test-md4.c: Likewise.
11427         * tests/test-mkdir.h: Likewise.
11428         * tests/test-rename.c: Likewise.
11429         * tests/test-rename.h: Likewise.
11430         * tests/test-safe-alloc.c: Likewise.
11431         * tests/test-utimens-common.h: Likewise.
11432         * tests/test-utimens.h: Likewise.
11433
11434         maint: sync license texts
11435         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11436         * doc/gpl-3.0.texi: Revert copyright year update.
11437         * doc/lgpl-3.0.texi: Likewise.
11438
11439 2009-12-29  Jim Meyering  <meyering@redhat.com>
11440
11441         update nearly all FSF copyright year lists to include 2009
11442         The files named by the following are exempted:
11443             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11444               test -f "$dst" && { echo "$dst"; continue; }
11445               test -d "$dst" || continue
11446               echo "$dst"/$(basename "$src")
11447             done > exempt
11448             git ls-files tests/unictype >> exempt
11449         In the remaining files, convert to all-interval notation if
11450         - there is already at least one year interval like 2000-2003
11451         - the file is maintained by me
11452         - the file is in lib/uni*/, where that style already prevails
11453         Otherwise, use update-copyright's default.
11454
11455 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11456         and Eric Blake  <ebb9@byu.net>
11457
11458         tests: don't require debug system() to pass
11459         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11460         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11461         * tests/test-unlink.h (test_unlink_func): Likewise.
11462         * tests/test-fstatat.c (main): ...into callers.
11463         * tests/test-lstat.c (main): Likewise.
11464         * tests/test-rmdir.c (main): Likewise.
11465         * tests/test-unlink.c (main): Likewise.
11466         * tests/test-unlinkat.c (main): Likewise.
11467         * tests/test-areadlink-with-size.c (main): Don't require a
11468         debug-only system call to pass, aiding cross-testing to mingw.
11469         * tests/test-areadlink.c (main): Likewise.
11470         * tests/test-areadlinkat-with-size.c (main): Likewise.
11471         * tests/test-areadlinkat.c (main): Likewise.
11472         * tests/test-canonicalize-lgpl.c (main): Likewise.
11473         * tests/test-canonicalize.c (main): Likewise.
11474         * tests/test-chown.c (main): Likewise.
11475         * tests/test-fchownat.c (main): Likewise.
11476         * tests/test-lchown.c (main): Likewise.
11477         * tests/test-fdutimensat.c (main): Likewise.
11478         * tests/test-futimens.c (main): Likewise.
11479         * tests/test-link.c (main): Likewise.
11480         * tests/test-linkat.c (main): Likewise.
11481         * tests/test-mkdir.c (main): Likewise.
11482         * tests/test-mkdirat.c (main): Likewise.
11483         * tests/test-mkfifo.c (main): Likewise.
11484         * tests/test-mkfifoat.c (main): Likewise.
11485         * tests/test-mknod.c (main): Likewise.
11486         * tests/test-readlink.c (main): Likewise.
11487         * tests/test-remove.c (main): Likewise.
11488         * tests/test-rename.c (main): Likewise.
11489         * tests/test-renameat.c (main): Likewise.
11490         * tests/test-symlink.c (main): Likewise.
11491         * tests/test-symlinkat.c (main): Likewise.
11492         * tests/test-utimens.c (main): Likewise.
11493         * tests/test-utimensat.c (main): Likewise.
11494
11495 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11496
11497         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11498         on $(UNUSED_PARAMETER_H) to avoid build failure.
11499
11500 2009-12-28  Jim Meyering  <meyering@redhat.com>
11501
11502         update-copyright: you may specify a max. line length other than 72
11503         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11504
11505         maint: use consistent FSF copyright line syntax
11506         * lib/posixtm.c: Add missing comma in FSF copyright line.
11507         * lib/posixtm.h: Likewise.
11508         * lib/getugroups.c: Add missing ", Inc.".
11509
11510         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11511         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11512         FSF copyright line.  Remove trailing blanks.
11513
11514 2009-12-28  Eric Blake  <ebb9@byu.net>
11515
11516         test-dup2: reduce dependencies
11517         * modules/cloexec (Configure.ac): Set witness.
11518         * modules/dup2-tests (Depends-on): Drop cloexec.
11519         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11520         not present.
11521         Suggested by Bruno Haible.
11522
11523 2009-12-26  Bruno Haible  <bruno@clisp.org>
11524
11525         Remove an unneeded dependency.
11526         * modules/fseterr (Depends-on): Remove dup2.
11527
11528 2009-12-26  Eric Blake  <ebb9@byu.net>
11529
11530         tests: use macros.h in more places
11531         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11532         (ASSERT_STREAM): Provide default of stderr.
11533         * tests/test-dirent-safer.c: Include macros.h, using alternate
11534         stream for assertions.
11535         * tests/test-dup-safer.c: Likewise.
11536         * tests/test-freopen-safer.c: Likewise.
11537         * tests/test-getopt.c: Likewise.
11538         * tests/test-openat-safer.c: Likewise.
11539         * tests/test-pipe.c: Likewise.
11540         * tests/test-popen-safer.c: Likewise.
11541         * modules/dirent-safer-tests (Files): Include macros.h.
11542         * modules/unistd-safer-tests (Files): Likewise.
11543         * modules/freopen-safer-tests (Files): Likewise.
11544         * modules/getopt-posix-tests (Files): Likewise.
11545         * modules/openat-safer-tests (Files): Likewise.
11546         * modules/pipe-tests (Files): Likewise.
11547
11548 2009-12-26  Bruno Haible  <bruno@clisp.org>
11549
11550         javacomp: Portability fix.
11551         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11552         that it also works on Solaris.
11553
11554 2009-12-26  Bruno Haible  <bruno@clisp.org>
11555
11556         localename: Fix storage allocation of gl_locale_name_thread's result.
11557         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11558         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11559         all platforms that have 'uselocale'.
11560         (gl_locale_name_thread_unsafe): New function, extracted from
11561         gl_locale_name_thread.
11562         (gl_locale_name_thread): Call struniq on all platforms that have
11563         'uselocale'.
11564         * tests/test-localename.c (test_locale_name_thread): Check that the
11565         resulting strings are permanently allocated.
11566         * modules/localename-tests (Depends-on): Add strdup.
11567
11568 2009-12-26  Bruno Haible  <bruno@clisp.org>
11569
11570         * tests/test-localename.c (categories): Fill in the strings.
11571
11572 2009-12-26  Jim Meyering  <meyering@redhat.com>
11573
11574         isdir: complete the removal of m4/isdir.m4
11575         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11576
11577         isdir: clean up, since at least grep still uses it
11578         * lib/isdir.c: Include "isdir.h".
11579         (S_ISDIR): Remove now-unneeded definition.
11580         * modules/isdir (Files): Add lib/isdir.h.
11581         * lib/isdir.h: New file, with declaration.
11582         * m4/isdir.m4: Remove file -- unneeded.
11583
11584 2009-12-25  Bruno Haible  <bruno@clisp.org>
11585
11586         selinux-h: Make generated .h files standalone.
11587         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11588         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11589         * lib/se-selinux.in.h: Likewise.
11590         * modules/selinux-h (Depends-on): Add unused-parameter.
11591         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11592         selinux/selinux.h and selinux/context.h.
11593         Suggested by Eric Blake.
11594
11595 2009-12-25  Bruno Haible  <bruno@clisp.org>
11596
11597         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11598         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11599         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11600         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11601         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11602
11603 2009-12-24  Bruno Haible  <bruno@clisp.org>
11604
11605         openat: Fix warning.
11606         * lib/openat-proc.c: Include <unistd.h>.
11607
11608 2009-12-24  Bruno Haible  <bruno@clisp.org>
11609
11610         New module 'unused-parameter'.
11611         * build-aux/unused-parameter.h: New file, extracted from earlier
11612         gnulib-common.m4.
11613         * modules/unused-parameter: New file.
11614         * lib/unistr.h: Include unused-parameter.h.
11615         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11616         _GL_UNUSED.
11617         * modules/unistr/base (Depends-on): Add unused-parameter.
11618
11619 2009-12-24  Bruno Haible  <bruno@clisp.org>
11620
11621         Add missing dependencies to 'extensions' module.
11622         * m4/extensions.m4: Add comment.
11623         * modules/accept4 (Depends-on): Add extensions.
11624         * modules/dup3 (Depends-on): Likewise.
11625         * modules/fcntl (Depends-on): Likewise.
11626         * modules/futimens (Depends-on): Likewise.
11627         * modules/mknod (Depends-on): Likewise.
11628         * modules/pipe2 (Depends-on): Likewise.
11629         * modules/stat-time (Depends-on): Likewise.
11630         * modules/strcasestr-simple (Depends-on): Likewise.
11631         * modules/strsignal (Depends-on): Likewise.
11632         * modules/utimensat (Depends-on): Likewise.
11633         * modules/localcharset (Depends-on): Likewise. Needed because of
11634         gl_FCNTL_O_FLAGS.
11635         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11636         AC_TYPE_MBSTATE_T.
11637         * modules/wcsnrtombs (Depends-on): Likewise.
11638         * modules/wcsrtombs (Depends-on): Likewise.
11639
11640 2009-12-24  Bruno Haible  <bruno@clisp.org>
11641
11642         binary-io: Avoid gcc warning due to SET_BINARY.
11643         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11644         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11645
11646 2009-12-24  Bruno Haible  <bruno@clisp.org>
11647
11648         Avoid future namespace pollution on glibc systems.
11649         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11650         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11651         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11652         glibc systems.
11653
11654 2009-12-24  Bruno Haible  <bruno@clisp.org>
11655
11656         Refactor common macros used in tests.
11657         * tests/macros.h: New file.
11658         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11659         and/or <stdlib.h>, if appropriate.
11660         (ASSERT, SIZEOF): Remove macros.
11661         * tests/test-areadlink-with-size.c: Likewise.
11662         * tests/test-areadlinkat.c: Likewise.
11663         * tests/test-areadlinkat-with-size.c: Likewise.
11664         * tests/test-argmatch.c: Likewise.
11665         * tests/test-argv-iter.c: Likewise.
11666         * tests/test-array-mergesort.c: Likewise.
11667         * tests/test-array_list.c: Likewise.
11668         * tests/test-array_oset.c: Likewise.
11669         * tests/test-avltree_list.c: Likewise.
11670         * tests/test-avltree_oset.c: Likewise.
11671         * tests/test-avltreehash_list.c: Likewise.
11672         * tests/test-base64.c: Likewise.
11673         * tests/test-binary-io.c: Likewise.
11674         * tests/test-bitrotate.c: Likewise.
11675         * tests/test-btowc.c: Likewise.
11676         * tests/test-byteswap.c: Likewise.
11677         * tests/test-c-ctype.c: Likewise.
11678         * tests/test-c-stack.c: Likewise.
11679         * tests/test-c-strcasecmp.c: Likewise.
11680         * tests/test-c-strcasestr.c: Likewise.
11681         * tests/test-c-strncasecmp.c: Likewise.
11682         * tests/test-c-strstr.c: Likewise.
11683         * tests/test-canonicalize-lgpl.c: Likewise.
11684         * tests/test-canonicalize.c: Likewise.
11685         * tests/test-carray_list.c: Likewise.
11686         * tests/test-ceilf1.c: Likewise.
11687         * tests/test-ceilf2.c: Likewise.
11688         * tests/test-ceill.c: Likewise.
11689         * tests/test-chown.c: Likewise.
11690         * tests/test-cloexec.c: Likewise.
11691         * tests/test-copy-acl.c: Likewise.
11692         * tests/test-copy-file.c: Likewise.
11693         * tests/test-count-one-bits.c: Likewise.
11694         * tests/test-dprintf-posix.c: Likewise.
11695         * tests/test-dup2.c: Likewise.
11696         * tests/test-dup3.c: Likewise.
11697         * tests/test-duplocale.c: Likewise.
11698         * tests/test-fbufmode.c: Likewise.
11699         * tests/test-fchdir.c: Likewise.
11700         * tests/test-fchownat.c: Likewise.
11701         * tests/test-fcntl-safer.c: Likewise.
11702         * tests/test-fcntl.c: Likewise.
11703         * tests/test-fdopendir.c: Likewise.
11704         * tests/test-fdutimensat.c: Likewise.
11705         * tests/test-fflush2.c: Likewise.
11706         * tests/test-file-has-acl.c: Likewise.
11707         * tests/test-filevercmp.c: Likewise.
11708         * tests/test-flock.c: Likewise.
11709         * tests/test-floorf1.c: Likewise.
11710         * tests/test-floorf2.c: Likewise.
11711         * tests/test-floorl.c: Likewise.
11712         * tests/test-fnmatch.c: Likewise.
11713         * tests/test-fopen.h: Likewise.
11714         * tests/test-fpending.c: Likewise.
11715         * tests/test-fprintf-posix.c: Likewise.
11716         * tests/test-fpurge.c: Likewise.
11717         * tests/test-freadable.c: Likewise.
11718         * tests/test-freadahead.c: Likewise.
11719         * tests/test-freading.c: Likewise.
11720         * tests/test-freadptr.c: Likewise.
11721         * tests/test-freadptr2.c: Likewise.
11722         * tests/test-freadseek.c: Likewise.
11723         * tests/test-freopen.c: Likewise.
11724         * tests/test-frexp.c: Likewise.
11725         * tests/test-frexpl.c: Likewise.
11726         * tests/test-fseek.c: Likewise.
11727         * tests/test-fseeko.c: Likewise.
11728         * tests/test-fstatat.c: Likewise.
11729         * tests/test-fstrcmp.c: Likewise.
11730         * tests/test-fsync.c: Likewise.
11731         * tests/test-ftell.c: Likewise.
11732         * tests/test-ftello.c: Likewise.
11733         * tests/test-func.c: Likewise.
11734         * tests/test-futimens.c: Likewise.
11735         * tests/test-fwritable.c: Likewise.
11736         * tests/test-fwriting.c: Likewise.
11737         * tests/test-getcwd.c: Likewise.
11738         * tests/test-getdate.c: Likewise.
11739         * tests/test-getdelim.c: Likewise.
11740         * tests/test-getdtablesize.c: Likewise.
11741         * tests/test-getgroups.c: Likewise.
11742         * tests/test-getline.c: Likewise.
11743         * tests/test-getndelim2.c: Likewise.
11744         * tests/test-glob.c: Likewise.
11745         * tests/test-hash.c: Likewise.
11746         * tests/test-i-ring.c: Likewise.
11747         * tests/test-iconv-utf.c: Likewise.
11748         * tests/test-iconv.c: Likewise.
11749         * tests/test-idpriv-drop.c: Likewise.
11750         * tests/test-idpriv-droptemp.c: Likewise.
11751         * tests/test-inet_ntop.c: Likewise.
11752         * tests/test-inet_pton.c: Likewise.
11753         * tests/test-isblank.c: Likewise.
11754         * tests/test-isfinite.c: Likewise.
11755         * tests/test-isinf.c: Likewise.
11756         * tests/test-isnan.c: Likewise.
11757         * tests/test-isnand.h: Likewise.
11758         * tests/test-isnanf.h: Likewise.
11759         * tests/test-isnanl.h: Likewise.
11760         * tests/test-lchown.c: Likewise.
11761         * tests/test-ldexpl.c: Likewise.
11762         * tests/test-link.c: Likewise.
11763         * tests/test-linkat.c: Likewise.
11764         * tests/test-linked_list.c: Likewise.
11765         * tests/test-linkedhash_list.c: Likewise.
11766         * tests/test-localename.c: Likewise.
11767         * tests/test-lseek.c: Likewise.
11768         * tests/test-lstat.c: Likewise.
11769         * tests/test-mbmemcasecmp.c: Likewise.
11770         * tests/test-mbmemcasecoll.c: Likewise.
11771         * tests/test-mbrtowc.c: Likewise.
11772         * tests/test-mbscasecmp.c: Likewise.
11773         * tests/test-mbscasestr1.c: Likewise.
11774         * tests/test-mbscasestr2.c: Likewise.
11775         * tests/test-mbscasestr3.c: Likewise.
11776         * tests/test-mbscasestr4.c: Likewise.
11777         * tests/test-mbschr.c: Likewise.
11778         * tests/test-mbscspn.c: Likewise.
11779         * tests/test-mbsinit.c: Likewise.
11780         * tests/test-mbsncasecmp.c: Likewise.
11781         * tests/test-mbsnrtowcs.c: Likewise.
11782         * tests/test-mbspbrk.c: Likewise.
11783         * tests/test-mbspcasecmp.c: Likewise.
11784         * tests/test-mbsrchr.c: Likewise.
11785         * tests/test-mbsrtowcs.c: Likewise.
11786         * tests/test-mbsspn.c: Likewise.
11787         * tests/test-mbsstr1.c: Likewise.
11788         * tests/test-mbsstr2.c: Likewise.
11789         * tests/test-mbsstr3.c: Likewise.
11790         * tests/test-memchr.c: Likewise.
11791         * tests/test-memchr2.c: Likewise.
11792         * tests/test-memcmp.c: Likewise.
11793         * tests/test-memmem.c: Likewise.
11794         * tests/test-memrchr.c: Likewise.
11795         * tests/test-mkdir.c: Likewise.
11796         * tests/test-mkdirat.c: Likewise.
11797         * tests/test-mkfifo.c: Likewise.
11798         * tests/test-mkfifoat.c: Likewise.
11799         * tests/test-mknod.c: Likewise.
11800         * tests/test-nanosleep.c: Likewise.
11801         * tests/test-nl_langinfo.c: Likewise.
11802         * tests/test-obstack-printf.c: Likewise.
11803         * tests/test-open.c: Likewise.
11804         * tests/test-openat.c: Likewise.
11805         * tests/test-pipe-filter-gi1.c: Likewise.
11806         * tests/test-pipe-filter-gi2-main.c: Likewise.
11807         * tests/test-pipe-filter-ii1.c: Likewise.
11808         * tests/test-pipe-filter-ii2-main.c: Likewise.
11809         * tests/test-pipe2.c: Likewise.
11810         * tests/test-popen.h: Likewise.
11811         * tests/test-posixtm.c: Likewise.
11812         * tests/test-pread.c: Likewise.
11813         * tests/test-printf-frexp.c: Likewise.
11814         * tests/test-printf-frexpl.c: Likewise.
11815         * tests/test-printf-posix.c: Likewise.
11816         * tests/test-priv-set.c: Likewise.
11817         * tests/test-quotearg.c: Likewise.
11818         * tests/test-random_r.c: Likewise.
11819         * tests/test-rawmemchr.c: Likewise.
11820         * tests/test-rbtree_list.c: Likewise.
11821         * tests/test-rbtree_oset.c: Likewise.
11822         * tests/test-rbtreehash_list.c: Likewise.
11823         * tests/test-readlink.c: Likewise.
11824         * tests/test-remove.c: Likewise.
11825         * tests/test-rename.c: Likewise.
11826         * tests/test-renameat.c: Likewise.
11827         * tests/test-rmdir.c: Likewise.
11828         * tests/test-round1.c: Likewise.
11829         * tests/test-roundf1.c: Likewise.
11830         * tests/test-roundl.c: Likewise.
11831         * tests/test-safe-alloc.c: Likewise.
11832         * tests/test-sameacls.c: Likewise.
11833         * tests/test-set-mode-acl.c: Likewise.
11834         * tests/test-setenv.c: Likewise.
11835         * tests/test-sigaction.c: Likewise.
11836         * tests/test-signbit.c: Likewise.
11837         * tests/test-sleep.c: Likewise.
11838         * tests/test-snprintf-posix.c: Likewise.
11839         * tests/test-snprintf.c: Likewise.
11840         * tests/test-sprintf-posix.c: Likewise.
11841         * tests/test-stat-time.c: Likewise.
11842         * tests/test-stat.c: Likewise.
11843         * tests/test-strcasestr.c: Likewise.
11844         * tests/test-strchrnul.c: Likewise.
11845         * tests/test-strerror.c: Likewise.
11846         * tests/test-striconv.c: Likewise.
11847         * tests/test-striconveh.c: Likewise.
11848         * tests/test-striconveha.c: Likewise.
11849         * tests/test-strsignal.c: Likewise.
11850         * tests/test-strstr.c: Likewise.
11851         * tests/test-strtod.c: Likewise.
11852         * tests/test-strverscmp.c: Likewise.
11853         * tests/test-symlink.c: Likewise.
11854         * tests/test-symlinkat.c: Likewise.
11855         * tests/test-trunc1.c: Likewise.
11856         * tests/test-trunc2.c: Likewise.
11857         * tests/test-truncf1.c: Likewise.
11858         * tests/test-truncf2.c: Likewise.
11859         * tests/test-truncl.c: Likewise.
11860         * tests/test-uname.c: Likewise.
11861         * tests/test-unlink.c: Likewise.
11862         * tests/test-unlinkat.c: Likewise.
11863         * tests/test-unsetenv.c: Likewise.
11864         * tests/test-usleep.c: Likewise.
11865         * tests/test-utimens.c: Likewise.
11866         * tests/test-utimensat.c: Likewise.
11867         * tests/test-vasnprintf-posix.c: Likewise.
11868         * tests/test-vasnprintf-posix2.c: Likewise.
11869         * tests/test-vasnprintf.c: Likewise.
11870         * tests/test-vasprintf-posix.c: Likewise.
11871         * tests/test-vasprintf.c: Likewise.
11872         * tests/test-vdprintf-posix.c: Likewise.
11873         * tests/test-vfprintf-posix.c: Likewise.
11874         * tests/test-vprintf-posix.c: Likewise.
11875         * tests/test-vsnprintf-posix.c: Likewise.
11876         * tests/test-vsnprintf.c: Likewise.
11877         * tests/test-vsprintf-posix.c: Likewise.
11878         * tests/test-wcrtomb.c: Likewise.
11879         * tests/test-wcsnrtombs.c: Likewise.
11880         * tests/test-wcsrtombs.c: Likewise.
11881         * tests/test-wctype.c: Likewise.
11882         * tests/test-wcwidth.c: Likewise.
11883         * tests/test-xfprintf-posix.c: Likewise.
11884         * tests/test-xmemdup0.c: Likewise.
11885         * tests/test-xprintf-posix.c: Likewise.
11886         * tests/test-xvasprintf.c: Likewise.
11887         * tests/unicase/test-locale-language.c: Likewise.
11888         * tests/unicase/test-mapping-part1.h: Likewise.
11889         * tests/unicase/test-predicate-part1.h: Likewise.
11890         * tests/unicase/test-u8-casecmp.c: Likewise.
11891         * tests/unicase/test-u8-casecoll.c: Likewise.
11892         * tests/unicase/test-u8-casefold.c: Likewise.
11893         * tests/unicase/test-u8-is-cased.c: Likewise.
11894         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11895         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11896         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11897         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11898         * tests/unicase/test-u8-tolower.c: Likewise.
11899         * tests/unicase/test-u8-totitle.c: Likewise.
11900         * tests/unicase/test-u8-toupper.c: Likewise.
11901         * tests/unicase/test-u16-casecmp.c: Likewise.
11902         * tests/unicase/test-u16-casecoll.c: Likewise.
11903         * tests/unicase/test-u16-casefold.c: Likewise.
11904         * tests/unicase/test-u16-is-cased.c: Likewise.
11905         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11906         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11907         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11908         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11909         * tests/unicase/test-u16-tolower.c: Likewise.
11910         * tests/unicase/test-u16-totitle.c: Likewise.
11911         * tests/unicase/test-u16-toupper.c: Likewise.
11912         * tests/unicase/test-u32-casecmp.c: Likewise.
11913         * tests/unicase/test-u32-casecoll.c: Likewise.
11914         * tests/unicase/test-u32-casefold.c: Likewise.
11915         * tests/unicase/test-u32-is-cased.c: Likewise.
11916         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11917         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11918         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11919         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11920         * tests/unicase/test-u32-tolower.c: Likewise.
11921         * tests/unicase/test-u32-totitle.c: Likewise.
11922         * tests/unicase/test-u32-toupper.c: Likewise.
11923         * tests/unicase/test-ulc-casecmp.c: Likewise.
11924         * tests/unicase/test-ulc-casecoll.c: Likewise.
11925         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11926         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11927         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11928         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11929         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11930         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11931         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11932         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11933         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11934         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11935         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11936         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11937         * tests/unictype/test-bidi_byname.c: Likewise.
11938         * tests/unictype/test-bidi_name.c: Likewise.
11939         * tests/unictype/test-bidi_of.c: Likewise.
11940         * tests/unictype/test-bidi_test.c: Likewise.
11941         * tests/unictype/test-block_list.c: Likewise.
11942         * tests/unictype/test-block_of.c: Likewise.
11943         * tests/unictype/test-block_test.c: Likewise.
11944         * tests/unictype/test-categ_and.c: Likewise.
11945         * tests/unictype/test-categ_and_not.c: Likewise.
11946         * tests/unictype/test-categ_byname.c: Likewise.
11947         * tests/unictype/test-categ_name.c: Likewise.
11948         * tests/unictype/test-categ_none.c: Likewise.
11949         * tests/unictype/test-categ_of.c: Likewise.
11950         * tests/unictype/test-categ_or.c: Likewise.
11951         * tests/unictype/test-categ_test_withtable.c: Likewise.
11952         * tests/unictype/test-combining.c: Likewise.
11953         * tests/unictype/test-decdigit.c: Likewise.
11954         * tests/unictype/test-digit.c: Likewise.
11955         * tests/unictype/test-mirror.c: Likewise.
11956         * tests/unictype/test-numeric.c: Likewise.
11957         * tests/unictype/test-pr_byname.c: Likewise.
11958         * tests/unictype/test-pr_test.c: Likewise.
11959         * tests/unictype/test-predicate-part1.h: Likewise.
11960         * tests/unictype/test-scripts.c: Likewise.
11961         * tests/unictype/test-sy_c_ident.c: Likewise.
11962         * tests/unictype/test-sy_java_ident.c: Likewise.
11963         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11964         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11965         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11966         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11967         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11968         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11969         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11970         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11971         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11972         * tests/uninorm/test-compat-decomposition.c: Likewise.
11973         * tests/uninorm/test-composition.c: Likewise.
11974         * tests/uninorm/test-decomposing-form.c: Likewise.
11975         * tests/uninorm/test-decomposition.c: Likewise.
11976         * tests/uninorm/test-u8-nfc.c: Likewise.
11977         * tests/uninorm/test-u8-nfd.c: Likewise.
11978         * tests/uninorm/test-u8-nfkc.c: Likewise.
11979         * tests/uninorm/test-u8-nfkd.c: Likewise.
11980         * tests/uninorm/test-u8-normcmp.c: Likewise.
11981         * tests/uninorm/test-u8-normcoll.c: Likewise.
11982         * tests/uninorm/test-u16-nfc.c: Likewise.
11983         * tests/uninorm/test-u16-nfd.c: Likewise.
11984         * tests/uninorm/test-u16-nfkc.c: Likewise.
11985         * tests/uninorm/test-u16-nfkd.c: Likewise.
11986         * tests/uninorm/test-u16-normcmp.c: Likewise.
11987         * tests/uninorm/test-u16-normcoll.c: Likewise.
11988         * tests/uninorm/test-u32-nfc.c: Likewise.
11989         * tests/uninorm/test-u32-nfd.c: Likewise.
11990         * tests/uninorm/test-u32-nfkc.c: Likewise.
11991         * tests/uninorm/test-u32-nfkd.c: Likewise.
11992         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11993         * tests/uninorm/test-u32-normcmp.c: Likewise.
11994         * tests/uninorm/test-u32-normcoll.c: Likewise.
11995         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11996         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11997         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11998         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11999         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12000         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12001         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12002         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12003         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12004         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12005         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12006         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12007         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12008         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12009         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12010         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12011         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12012         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12013         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12014         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12015         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12016         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12017         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12018         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12019         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12020         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12021         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12022         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12023         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12024         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12025         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12026         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12027         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12028         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12029         * tests/uniwidth/test-u8-width.c: Likewise.
12030         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12031         * tests/uniwidth/test-u16-width.c: Likewise.
12032         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12033         * tests/uniwidth/test-u32-width.c: Likewise.
12034         * tests/uniwidth/test-uc_width.c: Likewise.
12035         * tests/uniwidth/test-uc_width2.c: Likewise.
12036         * modules/acl-tests (Files): Add tests/macros.h.
12037         * modules/areadlink-tests (Files): Likewise.
12038         * modules/areadlink-with-size-tests (Files): Likewise.
12039         * modules/areadlinkat-tests (Files): Likewise.
12040         * modules/areadlinkat-with-size-tests (Files): Likewise.
12041         * modules/argmatch-tests (Files): Likewise.
12042         * modules/argv-iter-tests (Files): Likewise.
12043         * modules/array-list-tests (Files): Likewise.
12044         * modules/array-mergesort-tests (Files): Likewise.
12045         * modules/array-oset-tests (Files): Likewise.
12046         * modules/avltree-list-tests (Files): Likewise.
12047         * modules/avltree-oset-tests (Files): Likewise.
12048         * modules/avltreehash-list-tests (Files): Likewise.
12049         * modules/base64-tests (Files): Likewise.
12050         * modules/binary-io-tests (Files): Likewise.
12051         * modules/bitrotate-tests (Files): Likewise.
12052         * modules/btowc-tests (Files): Likewise.
12053         * modules/byteswap-tests (Files): Likewise.
12054         * modules/c-ctype-tests (Files): Likewise.
12055         * modules/c-stack-tests (Files): Likewise.
12056         * modules/c-strcase-tests (Files): Likewise.
12057         * modules/c-strcasestr-tests (Files): Likewise.
12058         * modules/c-strstr-tests (Files): Likewise.
12059         * modules/canonicalize-lgpl-tests (Files): Likewise.
12060         * modules/canonicalize-tests (Files): Likewise.
12061         * modules/carray-list-tests (Files): Likewise.
12062         * modules/ceilf-tests (Files): Likewise.
12063         * modules/ceill-tests (Files): Likewise.
12064         * modules/chown-tests (Files): Likewise.
12065         * modules/cloexec-tests (Files): Likewise.
12066         * modules/copy-file-tests (Files): Likewise.
12067         * modules/count-one-bits-tests (Files): Likewise.
12068         * modules/dprintf-posix-tests (Files): Likewise.
12069         * modules/dup2-tests (Files): Likewise.
12070         * modules/dup3-tests (Files): Likewise.
12071         * modules/duplocale-tests (Files): Likewise.
12072         * modules/fbufmode-tests (Files): Likewise.
12073         * modules/fchdir-tests (Files): Likewise.
12074         * modules/fcntl-safer-tests (Files): Likewise.
12075         * modules/fcntl-tests (Files): Likewise.
12076         * modules/fdopendir-tests (Files): Likewise.
12077         * modules/fdutimensat-tests (Files): Likewise.
12078         * modules/fflush-tests (Files): Likewise.
12079         * modules/filevercmp-tests (Files): Likewise.
12080         * modules/flock-tests (Files): Likewise.
12081         * modules/floorf-tests (Files): Likewise.
12082         * modules/floorl-tests (Files): Likewise.
12083         * modules/fnmatch-tests (Files): Likewise.
12084         * modules/fopen-safer-tests (Files): Likewise.
12085         * modules/fopen-tests (Files): Likewise.
12086         * modules/fpending-tests (Files): Likewise.
12087         * modules/fprintf-posix-tests (Files): Likewise.
12088         * modules/fpurge-tests (Files): Likewise.
12089         * modules/freadable-tests (Files): Likewise.
12090         * modules/freadahead-tests (Files): Likewise.
12091         * modules/freading-tests (Files): Likewise.
12092         * modules/freadptr-tests (Files): Likewise.
12093         * modules/freadseek-tests (Files): Likewise.
12094         * modules/freopen-tests (Files): Likewise.
12095         * modules/frexp-nolibm-tests (Files): Likewise.
12096         * modules/frexp-tests (Files): Likewise.
12097         * modules/frexpl-nolibm-tests (Files): Likewise.
12098         * modules/frexpl-tests (Files): Likewise.
12099         * modules/fseek-tests (Files): Likewise.
12100         * modules/fseeko-tests (Files): Likewise.
12101         * modules/fstrcmp-tests (Files): Likewise.
12102         * modules/fsync-tests (Files): Likewise.
12103         * modules/ftell-tests (Files): Likewise.
12104         * modules/ftello-tests (Files): Likewise.
12105         * modules/func-tests (Files): Likewise.
12106         * modules/futimens-tests (Files): Likewise.
12107         * modules/fwritable-tests (Files): Likewise.
12108         * modules/fwriting-tests (Files): Likewise.
12109         * modules/getcwd-tests (Files): Likewise.
12110         * modules/getdate-tests (Files): Likewise.
12111         * modules/getdelim-tests (Files): Likewise.
12112         * modules/getdtablesize-tests (Files): Likewise.
12113         * modules/getgroups-tests (Files): Likewise.
12114         * modules/getline-tests (Files): Likewise.
12115         * modules/getndelim2-tests (Files): Likewise.
12116         * modules/glob-tests (Files): Likewise.
12117         * modules/hash-tests (Files): Likewise.
12118         * modules/i-ring-tests (Files): Likewise.
12119         * modules/iconv-tests (Files): Likewise.
12120         * modules/iconv_open-utf-tests (Files): Likewise.
12121         * modules/idpriv-drop-tests (Files): Likewise.
12122         * modules/idpriv-droptemp-tests (Files): Likewise.
12123         * modules/inet_ntop-tests (Files): Likewise.
12124         * modules/inet_pton-tests (Files): Likewise.
12125         * modules/isblank-tests (Files): Likewise.
12126         * modules/isfinite-tests (Files): Likewise.
12127         * modules/isinf-tests (Files): Likewise.
12128         * modules/isnan-tests (Files): Likewise.
12129         * modules/isnand-nolibm-tests (Files): Likewise.
12130         * modules/isnand-tests (Files): Likewise.
12131         * modules/isnanf-nolibm-tests (Files): Likewise.
12132         * modules/isnanf-tests (Files): Likewise.
12133         * modules/isnanl-nolibm-tests (Files): Likewise.
12134         * modules/isnanl-tests (Files): Likewise.
12135         * modules/lchown-tests (Files): Likewise.
12136         * modules/ldexpl-tests (Files): Likewise.
12137         * modules/link-tests (Files): Likewise.
12138         * modules/linkat-tests (Files): Likewise.
12139         * modules/linked-list-tests (Files): Likewise.
12140         * modules/linkedhash-list-tests (Files): Likewise.
12141         * modules/localename-tests (Files): Likewise.
12142         * modules/lseek-tests (Files): Likewise.
12143         * modules/lstat-tests (Files): Likewise.
12144         * modules/mbmemcasecmp-tests (Files): Likewise.
12145         * modules/mbmemcasecoll-tests (Files): Likewise.
12146         * modules/mbrtowc-tests (Files): Likewise.
12147         * modules/mbscasecmp-tests (Files): Likewise.
12148         * modules/mbscasestr-tests (Files): Likewise.
12149         * modules/mbschr-tests (Files): Likewise.
12150         * modules/mbscspn-tests (Files): Likewise.
12151         * modules/mbsinit-tests (Files): Likewise.
12152         * modules/mbsncasecmp-tests (Files): Likewise.
12153         * modules/mbsnrtowcs-tests (Files): Likewise.
12154         * modules/mbspbrk-tests (Files): Likewise.
12155         * modules/mbspcasecmp-tests (Files): Likewise.
12156         * modules/mbsrchr-tests (Files): Likewise.
12157         * modules/mbsrtowcs-tests (Files): Likewise.
12158         * modules/mbsspn-tests (Files): Likewise.
12159         * modules/mbsstr-tests (Files): Likewise.
12160         * modules/memchr-tests (Files): Likewise.
12161         * modules/memchr2-tests (Files): Likewise.
12162         * modules/memcmp-tests (Files): Likewise.
12163         * modules/memmem-tests (Files): Likewise.
12164         * modules/memrchr-tests (Files): Likewise.
12165         * modules/mkdir-tests (Files): Likewise.
12166         * modules/mkfifo-tests (Files): Likewise.
12167         * modules/mkfifoat-tests (Files): Likewise.
12168         * modules/mknod-tests (Files): Likewise.
12169         * modules/nanosleep-tests (Files): Likewise.
12170         * modules/nl_langinfo-tests (Files): Likewise.
12171         * modules/obstack-printf-tests (Files): Likewise.
12172         * modules/open-tests (Files): Likewise.
12173         * modules/openat-tests (Files): Likewise.
12174         * modules/pipe-filter-gi-tests (Files): Likewise.
12175         * modules/pipe-filter-ii-tests (Files): Likewise.
12176         * modules/pipe2-tests (Files): Likewise.
12177         * modules/popen-safer-tests (Files): Likewise.
12178         * modules/popen-tests (Files): Likewise.
12179         * modules/posixtm-tests (Files): Likewise.
12180         * modules/pread-tests (Files): Likewise.
12181         * modules/printf-frexp-tests (Files): Likewise.
12182         * modules/printf-frexpl-tests (Files): Likewise.
12183         * modules/printf-posix-tests (Files): Likewise.
12184         * modules/priv-set-tests (Files): Likewise.
12185         * modules/quotearg-tests (Files): Likewise.
12186         * modules/random_r-tests (Files): Likewise.
12187         * modules/rawmemchr-tests (Files): Likewise.
12188         * modules/rbtree-list-tests (Files): Likewise.
12189         * modules/rbtree-oset-tests (Files): Likewise.
12190         * modules/rbtreehash-list-tests (Files): Likewise.
12191         * modules/readlink-tests (Files): Likewise.
12192         * modules/remove-tests (Files): Likewise.
12193         * modules/rename-tests (Files): Likewise.
12194         * modules/renameat-tests (Files): Likewise.
12195         * modules/rmdir-tests (Files): Likewise.
12196         * modules/round-tests (Files): Likewise.
12197         * modules/roundf-tests (Files): Likewise.
12198         * modules/roundl-tests (Files): Likewise.
12199         * modules/safe-alloc-tests (Files): Likewise.
12200         * modules/setenv-tests (Files): Likewise.
12201         * modules/sigaction-tests (Files): Likewise.
12202         * modules/signbit-tests (Files): Likewise.
12203         * modules/sleep-tests (Files): Likewise.
12204         * modules/snprintf-posix-tests (Files): Likewise.
12205         * modules/snprintf-tests (Files): Likewise.
12206         * modules/sprintf-posix-tests (Files): Likewise.
12207         * modules/stat-tests (Files): Likewise.
12208         * modules/stat-time-tests (Files): Likewise.
12209         * modules/strcasestr-tests (Files): Likewise.
12210         * modules/strchrnul-tests (Files): Likewise.
12211         * modules/strerror-tests (Files): Likewise.
12212         * modules/striconv-tests (Files): Likewise.
12213         * modules/striconveh-tests (Files): Likewise.
12214         * modules/striconveha-tests (Files): Likewise.
12215         * modules/strsignal-tests (Files): Likewise.
12216         * modules/strstr-tests (Files): Likewise.
12217         * modules/strtod-tests (Files): Likewise.
12218         * modules/strverscmp-tests (Files): Likewise.
12219         * modules/symlink-tests (Files): Likewise.
12220         * modules/symlinkat-tests (Files): Likewise.
12221         * modules/trunc-tests (Files): Likewise.
12222         * modules/truncf-tests (Files): Likewise.
12223         * modules/truncl-tests (Files): Likewise.
12224         * modules/uname-tests (Files): Likewise.
12225         * modules/unicase/cased-tests (Files): Likewise.
12226         * modules/unicase/ignorable-tests (Files): Likewise.
12227         * modules/unicase/locale-language-tests (Files): Likewise.
12228         * modules/unicase/tolower-tests (Files): Likewise.
12229         * modules/unicase/totitle-tests (Files): Likewise.
12230         * modules/unicase/toupper-tests (Files): Likewise.
12231         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12232         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12233         * modules/unicase/u8-casefold-tests (Files): Likewise.
12234         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12235         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12236         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12237         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12238         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12239         * modules/unicase/u8-tolower-tests (Files): Likewise.
12240         * modules/unicase/u8-totitle-tests (Files): Likewise.
12241         * modules/unicase/u8-toupper-tests (Files): Likewise.
12242         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12243         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12244         * modules/unicase/u16-casefold-tests (Files): Likewise.
12245         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12246         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12247         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12248         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12249         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12250         * modules/unicase/u16-tolower-tests (Files): Likewise.
12251         * modules/unicase/u16-totitle-tests (Files): Likewise.
12252         * modules/unicase/u16-toupper-tests (Files): Likewise.
12253         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12254         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12255         * modules/unicase/u32-casefold-tests (Files): Likewise.
12256         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12257         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12258         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12259         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12260         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12261         * modules/unicase/u32-tolower-tests (Files): Likewise.
12262         * modules/unicase/u32-totitle-tests (Files): Likewise.
12263         * modules/unicase/u32-toupper-tests (Files): Likewise.
12264         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12265         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12266         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12267         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12268         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12269         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12270         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12271         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12272         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12273         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12274         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12275         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12276         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12277         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12278         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12279         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12280         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12281         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12282         * modules/unictype/block-list-tests (Files): Likewise.
12283         * modules/unictype/block-of-tests (Files): Likewise.
12284         * modules/unictype/block-test-tests (Files): Likewise.
12285         * modules/unictype/category-C-tests (Files): Likewise.
12286         * modules/unictype/category-Cc-tests (Files): Likewise.
12287         * modules/unictype/category-Cf-tests (Files): Likewise.
12288         * modules/unictype/category-Cn-tests (Files): Likewise.
12289         * modules/unictype/category-Co-tests (Files): Likewise.
12290         * modules/unictype/category-Cs-tests (Files): Likewise.
12291         * modules/unictype/category-L-tests (Files): Likewise.
12292         * modules/unictype/category-Ll-tests (Files): Likewise.
12293         * modules/unictype/category-Lm-tests (Files): Likewise.
12294         * modules/unictype/category-Lo-tests (Files): Likewise.
12295         * modules/unictype/category-Lt-tests (Files): Likewise.
12296         * modules/unictype/category-Lu-tests (Files): Likewise.
12297         * modules/unictype/category-M-tests (Files): Likewise.
12298         * modules/unictype/category-Mc-tests (Files): Likewise.
12299         * modules/unictype/category-Me-tests (Files): Likewise.
12300         * modules/unictype/category-Mn-tests (Files): Likewise.
12301         * modules/unictype/category-N-tests (Files): Likewise.
12302         * modules/unictype/category-Nd-tests (Files): Likewise.
12303         * modules/unictype/category-Nl-tests (Files): Likewise.
12304         * modules/unictype/category-No-tests (Files): Likewise.
12305         * modules/unictype/category-P-tests (Files): Likewise.
12306         * modules/unictype/category-Pc-tests (Files): Likewise.
12307         * modules/unictype/category-Pd-tests (Files): Likewise.
12308         * modules/unictype/category-Pe-tests (Files): Likewise.
12309         * modules/unictype/category-Pf-tests (Files): Likewise.
12310         * modules/unictype/category-Pi-tests (Files): Likewise.
12311         * modules/unictype/category-Po-tests (Files): Likewise.
12312         * modules/unictype/category-Ps-tests (Files): Likewise.
12313         * modules/unictype/category-S-tests (Files): Likewise.
12314         * modules/unictype/category-Sc-tests (Files): Likewise.
12315         * modules/unictype/category-Sk-tests (Files): Likewise.
12316         * modules/unictype/category-Sm-tests (Files): Likewise.
12317         * modules/unictype/category-So-tests (Files): Likewise.
12318         * modules/unictype/category-Z-tests (Files): Likewise.
12319         * modules/unictype/category-Zl-tests (Files): Likewise.
12320         * modules/unictype/category-Zp-tests (Files): Likewise.
12321         * modules/unictype/category-Zs-tests (Files): Likewise.
12322         * modules/unictype/category-and-not-tests (Files): Likewise.
12323         * modules/unictype/category-and-tests (Files): Likewise.
12324         * modules/unictype/category-byname-tests (Files): Likewise.
12325         * modules/unictype/category-name-tests (Files): Likewise.
12326         * modules/unictype/category-none-tests (Files): Likewise.
12327         * modules/unictype/category-of-tests (Files): Likewise.
12328         * modules/unictype/category-or-tests (Files): Likewise.
12329         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12330         * modules/unictype/combining-class-tests (Files): Likewise.
12331         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12332         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12333         * modules/unictype/ctype-blank-tests (Files): Likewise.
12334         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12335         * modules/unictype/ctype-digit-tests (Files): Likewise.
12336         * modules/unictype/ctype-graph-tests (Files): Likewise.
12337         * modules/unictype/ctype-lower-tests (Files): Likewise.
12338         * modules/unictype/ctype-print-tests (Files): Likewise.
12339         * modules/unictype/ctype-punct-tests (Files): Likewise.
12340         * modules/unictype/ctype-space-tests (Files): Likewise.
12341         * modules/unictype/ctype-upper-tests (Files): Likewise.
12342         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12343         * modules/unictype/decimal-digit-tests (Files): Likewise.
12344         * modules/unictype/digit-tests (Files): Likewise.
12345         * modules/unictype/mirror-tests (Files): Likewise.
12346         * modules/unictype/numeric-tests (Files): Likewise.
12347         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12348         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12349         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12350         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12351         Likewise.
12352         * modules/unictype/property-bidi-block-separator-tests (Files):
12353         Likewise.
12354         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12355         Likewise.
12356         * modules/unictype/property-bidi-common-separator-tests (Files):
12357         Likewise.
12358         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12359         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12360         Likewise.
12361         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12362         Likewise.
12363         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12364         Likewise.
12365         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12366         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12367         Likewise.
12368         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12369         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12370         Likewise.
12371         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12372         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12373         * modules/unictype/property-bidi-segment-separator-tests (Files):
12374         Likewise.
12375         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12376         * modules/unictype/property-byname-tests (Files): Likewise.
12377         * modules/unictype/property-combining-tests (Files): Likewise.
12378         * modules/unictype/property-composite-tests (Files): Likewise.
12379         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12380         * modules/unictype/property-dash-tests (Files): Likewise.
12381         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12382         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12383         Likewise.
12384         * modules/unictype/property-deprecated-tests (Files): Likewise.
12385         * modules/unictype/property-diacritic-tests (Files): Likewise.
12386         * modules/unictype/property-extender-tests (Files): Likewise.
12387         * modules/unictype/property-format-control-tests (Files): Likewise.
12388         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12389         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12390         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12391         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12392         * modules/unictype/property-hyphen-tests (Files): Likewise.
12393         * modules/unictype/property-id-continue-tests (Files): Likewise.
12394         * modules/unictype/property-id-start-tests (Files): Likewise.
12395         * modules/unictype/property-ideographic-tests (Files): Likewise.
12396         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12397         * modules/unictype/property-ids-trinary-operator-tests (Files):
12398         Likewise.
12399         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12400         * modules/unictype/property-iso-control-tests (Files): Likewise.
12401         * modules/unictype/property-join-control-tests (Files): Likewise.
12402         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12403         * modules/unictype/property-line-separator-tests (Files): Likewise.
12404         * modules/unictype/property-logical-order-exception-tests (Files):
12405         Likewise.
12406         * modules/unictype/property-lowercase-tests (Files): Likewise.
12407         * modules/unictype/property-math-tests (Files): Likewise.
12408         * modules/unictype/property-non-break-tests (Files): Likewise.
12409         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12410         * modules/unictype/property-numeric-tests (Files): Likewise.
12411         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12412         * modules/unictype/property-other-default-ignorable-code-point-tests
12413         (Files): Likewise.
12414         * modules/unictype/property-other-grapheme-extend-tests (Files):
12415         Likewise.
12416         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12417         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12418         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12419         * modules/unictype/property-other-math-tests (Files): Likewise.
12420         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12421         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12422         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12423         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12424         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12425         * modules/unictype/property-private-use-tests (Files): Likewise.
12426         * modules/unictype/property-punctuation-tests (Files): Likewise.
12427         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12428         * modules/unictype/property-radical-tests (Files): Likewise.
12429         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12430         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12431         * modules/unictype/property-space-tests (Files): Likewise.
12432         * modules/unictype/property-terminal-punctuation-tests (Files):
12433         Likewise.
12434         * modules/unictype/property-test-tests (Files): Likewise.
12435         * modules/unictype/property-titlecase-tests (Files): Likewise.
12436         * modules/unictype/property-unassigned-code-value-tests (Files):
12437         Likewise.
12438         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12439         * modules/unictype/property-uppercase-tests (Files): Likewise.
12440         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12441         * modules/unictype/property-white-space-tests (Files): Likewise.
12442         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12443         * modules/unictype/property-xid-start-tests (Files): Likewise.
12444         * modules/unictype/property-zero-width-tests (Files): Likewise.
12445         * modules/unictype/scripts-tests (Files): Likewise.
12446         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12447         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12448         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12449         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12450         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12451         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12452         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12453         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12454         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12455         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12456         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12457         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12458         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12459         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12460         * modules/uninorm/composition-tests (Files): Likewise.
12461         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12462         * modules/uninorm/decomposition-tests (Files): Likewise.
12463         * modules/uninorm/filter-tests (Files): Likewise.
12464         * modules/uninorm/nfc-tests (Files): Likewise.
12465         * modules/uninorm/nfd-tests (Files): Likewise.
12466         * modules/uninorm/nfkc-tests (Files): Likewise.
12467         * modules/uninorm/nfkd-tests (Files): Likewise.
12468         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12469         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12470         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12471         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12472         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12473         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12474         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12475         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12476         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12477         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12478         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12479         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12480         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12481         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12482         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12483         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12484         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12485         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12486         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12487         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12488         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12489         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12490         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12491         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12492         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12493         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12494         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12495         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12496         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12497         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12498         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12499         * modules/uniwidth/u8-width-tests (Files): Likewise.
12500         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12501         * modules/uniwidth/u16-width-tests (Files): Likewise.
12502         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12503         * modules/uniwidth/u32-width-tests (Files): Likewise.
12504         * modules/uniwidth/width-tests (Files): Likewise.
12505         * modules/unlink-tests (Files): Likewise.
12506         * modules/unsetenv-tests (Files): Likewise.
12507         * modules/usleep-tests (Files): Likewise.
12508         * modules/utimens-tests (Files): Likewise.
12509         * modules/utimensat-tests (Files): Likewise.
12510         * modules/vasnprintf-posix-tests (Files): Likewise.
12511         * modules/vasnprintf-tests (Files): Likewise.
12512         * modules/vasprintf-posix-tests (Files): Likewise.
12513         * modules/vasprintf-tests (Files): Likewise.
12514         * modules/vdprintf-posix-tests (Files): Likewise.
12515         * modules/vfprintf-posix-tests (Files): Likewise.
12516         * modules/vprintf-posix-tests (Files): Likewise.
12517         * modules/vsnprintf-posix-tests (Files): Likewise.
12518         * modules/vsnprintf-tests (Files): Likewise.
12519         * modules/vsprintf-posix-tests (Files): Likewise.
12520         * modules/wcrtomb-tests (Files): Likewise.
12521         * modules/wcsnrtombs-tests (Files): Likewise.
12522         * modules/wcsrtombs-tests (Files): Likewise.
12523         * modules/wctype-tests (Files): Likewise.
12524         * modules/wcwidth-tests (Files): Likewise.
12525         * modules/xmemdup0-tests (Files): Likewise.
12526         * modules/xprintf-posix-tests (Files): Likewise.
12527         * modules/xvasprintf-tests (Files): Likewise.
12528
12529 2009-12-24  Eric Blake  <ebb9@byu.net>
12530
12531         test-nanosleep: fix typo
12532         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12533         patch.
12534         Reported by Bruno Haible.
12535
12536 2009-12-24  Bruno Haible  <bruno@clisp.org>
12537
12538         Reduce namespace pollution on glibc systems.
12539         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12540         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12541         systems.
12542         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12543         <getopt.h> on glibc systems.
12544         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12545         systems.
12546         * lib/fcntl.c: Include <unistd.h> here instead.
12547
12548 2009-12-24  Bruno Haible  <bruno@clisp.org>
12549
12550         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12551
12552 2009-12-24  Eric Blake  <ebb9@byu.net>
12553
12554         tests: add signature checks
12555         * tests/signature.h (SIGNATURE_CHECK): New file.
12556         * modules/atexit-tests (Files): Use it.
12557         * modules/btowc-tests (Files): Likewise.
12558         * modules/canonicalize-lgpl-tests (Files): Likewise.
12559         * modules/ceilf-tests (Files): Likewise.
12560         * modules/ceill-tests (Files): Likewise.
12561         * modules/chown-tests (Files): Likewise.
12562         * modules/dprintf-posix-tests (Files): Likewise.
12563         * modules/dup2-tests (Files): Likewise.
12564         * modules/dup3-tests (Files): Likewise.
12565         * modules/duplocale-tests (Files): Likewise.
12566         * modules/fchdir-tests (Files): Likewise.
12567         * modules/fcntl-tests (Files): Likewise.
12568         * modules/fdopendir-tests (Files): Likewise.
12569         * modules/fflush-tests (Files): Likewise.
12570         * modules/flock-tests (Files): Likewise.
12571         * modules/floorf-tests (Files): Likewise.
12572         * modules/floorl-tests (Files): Likewise.
12573         * modules/fnmatch-tests (Files): Likewise.
12574         * modules/fopen-tests (Files): Likewise.
12575         * modules/fprintf-posix-tests (Files): Likewise.
12576         * modules/freopen-tests (Files): Likewise.
12577         * modules/frexp-nolibm-tests (Files): Likewise.
12578         * modules/frexp-tests (Files): Likewise.
12579         * modules/frexpl-nolibm-tests (Files): Likewise.
12580         * modules/frexpl-tests (Files): Likewise.
12581         * modules/fseek-tests (Files): Likewise.
12582         * modules/fseeko-tests (Files): Likewise.
12583         * modules/fsync-tests (Files): Likewise.
12584         * modules/ftell-tests (Files): Likewise.
12585         * modules/ftello-tests (Files): Likewise.
12586         * modules/futimens-tests (Files): Likewise.
12587         * modules/getaddrinfo-tests (Files): Likewise.
12588         * modules/getcwd-tests (Files): Likewise.
12589         * modules/getdelim-tests (Files): Likewise.
12590         * modules/getdtablesize-tests (Files): Likewise.
12591         * modules/getgroups-tests (Files): Likewise.
12592         * modules/gethostname-tests (Files): Likewise.
12593         * modules/getline-tests (Files): Likewise.
12594         * modules/getopt-posix-tests (Files): Likewise.
12595         * modules/gettimeofday-tests (Files): Likewise.
12596         * modules/glob-tests (Files): Likewise.
12597         * modules/iconv-tests (Files): Likewise.
12598         * modules/inet_ntop-tests (Files): Likewise.
12599         * modules/inet_pton-tests (Files): Likewise.
12600         * modules/isblank-tests (Files): Likewise.
12601         * modules/lchown-tests (Files): Likewise.
12602         * modules/ldexpl-tests (Files): Likewise.
12603         * modules/link-tests (Files): Likewise.
12604         * modules/linkat-tests (Files): Likewise.
12605         * modules/lseek-tests (Files): Likewise.
12606         * modules/lstat-tests (Files): Likewise.
12607         * modules/mbrtowc-tests (Files): Likewise.
12608         * modules/mbsinit-tests (Files): Likewise.
12609         * modules/mbsnrtowcs-tests (Files): Likewise.
12610         * modules/mbsrtowcs-tests (Files): Likewise.
12611         * modules/memchr-tests (Files): Likewise.
12612         * modules/memcmp-tests (Files): Likewise.
12613         * modules/memmem-tests (Files): Likewise.
12614         * modules/memrchr-tests (Files): Likewise.
12615         * modules/mkdir-tests (Files): Likewise.
12616         * modules/mkfifo-tests (Files): Likewise.
12617         * modules/mkfifoat-tests (Files): Likewise.
12618         * modules/mknod-tests (Files): Likewise.
12619         * modules/nanosleep-tests (Files): Likewise.
12620         * modules/nl_langinfo-tests (Files): Likewise.
12621         * modules/obstack-printf-tests (Files): Likewise.
12622         * modules/open-tests (Files): Likewise.
12623         * modules/openat-tests (Files): Likewise.
12624         * modules/perror-tests (Files): Likewise.
12625         * modules/pipe2-tests (Files): Likewise.
12626         * modules/poll-tests (Files): Likewise.
12627         * modules/popen-tests (Files): Likewise.
12628         * modules/posix_spawn-tests (Files): Likewise.
12629         * modules/posix_spawnp-tests (Files): Likewise.
12630         * modules/pread-tests (Files): Likewise.
12631         * modules/printf-posix-tests (Files): Likewise.
12632         * modules/pty-tests (Files): Likewise.
12633         * modules/random_r-tests (Files): Likewise.
12634         * modules/rawmemchr-tests (Files): Likewise.
12635         * modules/readlink-tests (Files): Likewise.
12636         * modules/remove-tests (Files): Likewise.
12637         * modules/rename-tests (Files): Likewise.
12638         * modules/renameat-tests (Files): Likewise.
12639         * modules/rmdir-tests (Files): Likewise.
12640         * modules/round-tests (Files): Likewise.
12641         * modules/roundf-tests (Files): Likewise.
12642         * modules/roundl-tests (Files): Likewise.
12643         * modules/select-tests (Files): Likewise.
12644         * modules/setenv-tests (Files): Likewise.
12645         * modules/sigaction-tests (Files): Likewise.
12646         * modules/sleep-tests (Files): Likewise.
12647         * modules/snprintf-posix-tests (Files): Likewise.
12648         * modules/snprintf-tests (Files): Likewise.
12649         * modules/sprintf-posix-tests (Files): Likewise.
12650         * modules/stat-tests (Files): Likewise.
12651         * modules/strcasestr-tests (Files): Likewise.
12652         * modules/strchrnul-tests (Files): Likewise.
12653         * modules/strerror-tests (Files): Likewise.
12654         * modules/strsignal-tests (Files): Likewise.
12655         * modules/strstr-tests (Files): Likewise.
12656         * modules/strtod-tests (Files): Likewise.
12657         * modules/strverscmp-tests (Files): Likewise.
12658         * modules/symlink-tests (Files): Likewise.
12659         * modules/symlinkat-tests (Files): Likewise.
12660         * modules/times-tests (Files): Likewise.
12661         * modules/trunc-tests (Files): Likewise.
12662         * modules/truncf-tests (Files): Likewise.
12663         * modules/truncl-tests (Files): Likewise.
12664         * modules/tsearch-tests (Files): Likewise.
12665         * modules/uname-tests (Files): Likewise.
12666         * modules/unlink-tests (Files): Likewise.
12667         * modules/unsetenv-tests (Files): Likewise.
12668         * modules/usleep-tests (Files): Likewise.
12669         * modules/utimensat-tests (Files): Likewise.
12670         * modules/vasprintf-tests (Files): Likewise.
12671         * modules/vdprintf-posix-tests (Files): Likewise.
12672         * modules/vfprintf-posix-tests (Files): Likewise.
12673         * modules/vprintf-posix-tests (Files): Likewise.
12674         * modules/vsnprintf-posix-tests (Files): Likewise.
12675         * modules/vsnprintf-tests (Files): Likewise.
12676         * modules/vsprintf-posix-tests (Files): Likewise.
12677         * modules/wcrtomb-tests (Files): Likewise.
12678         * modules/wcsnrtombs-tests (Files): Likewise.
12679         * modules/wcsrtombs-tests (Files): Likewise.
12680         * modules/wcwidth-tests (Files): Likewise.
12681         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12682         * tests/test-isinf.c (isinf): Likewise.
12683         * tests/test-isnan.c (isnan): Likewise.
12684         * tests/test-signbit.c (signbit): Likewise.
12685         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12686         declaration, either as macro or with correct signature.
12687         (select): Ensure function under test is declared with correct
12688         signature in correct header.
12689         * tests/test-atexit.c (atexit): Likewise.
12690         * tests/test-btowc.c (btowc): Likewise.
12691         * tests/test-canonicalize-lgpl.c (realpath)
12692         (canonicalize_file_name): Likewise.
12693         * tests/test-ceilf1.c (ceilf): Likewise.
12694         * tests/test-ceill.c (ceill): Likewise.
12695         * tests/test-chown.c (chown): Likewise.
12696         * tests/test-dprintf-posix.c (dprintf): Likewise.
12697         * tests/test-dup2.c (dup2): Likewise.
12698         * tests/test-dup3.c (dup3): Likewise.
12699         * tests/test-duplocale.c (duplocale): Likewise.
12700         * tests/test-fchdir.c (fchdir): Likewise.
12701         * tests/test-fchownat.c (fchownat): Likewise.
12702         * tests/test-fcntl.c (fcntl): Likewise.
12703         * tests/test-fdopendir.c (fdopendir): Likewise.
12704         * tests/test-fflush.c (fflush): Likewise.
12705         * tests/test-flock.c (flock): Likewise.
12706         * tests/test-floorf1.c (floorf): Likewise.
12707         * tests/test-floorl.c (floorl): Likewise.
12708         * tests/test-fnmatch.c (fnmatch): Likewise.
12709         * tests/test-fopen.c (fopen): Likewise.
12710         * tests/test-fprintf-posix.c (fprintf): Likewise.
12711         * tests/test-freopen.c (freopen): Likewise.
12712         * tests/test-frexp.c (frexp): Likewise.
12713         * tests/test-frexpl.c (frexpl): Likewise.
12714         * tests/test-fseek.c (fseek): Likewise.
12715         * tests/test-fseeko.c (fseeko): Likewise.
12716         * tests/test-fstatat.c (fstatat): Likewise.
12717         * tests/test-fsync.c (fsync): Likewise.
12718         * tests/test-ftell.c (ftell): Likewise.
12719         * tests/test-ftello.c (ftello): Likewise.
12720         * tests/test-futimens.c (futimens): Likewise.
12721         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12722         (gai_strerror): Likewise.
12723         * tests/test-getcwd.c (getcwd): Likewise.
12724         * tests/test-getdelim.c (getdelim): Likewise.
12725         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12726         * tests/test-getgroups.c (getgroups): Likewise.
12727         * tests/test-gethostname.c (gethostname): Likewise.
12728         * tests/test-getline.c (getline): Likewise.
12729         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12730         Likewise.
12731         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12732         * tests/test-glob.c (glob, globfree): Likewise.
12733         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12734         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12735         * tests/test-inet_pton.c (inet_pton): Likewise.
12736         * tests/test-isblank.c (isblank): Likewise.
12737         * tests/test-lchown.c (lchown): Likewise.
12738         * tests/test-ldexpl.c (ldexpl): Likewise.
12739         * tests/test-link.c (link): Likewise.
12740         * tests/test-linkat.c (linkat): Likewise.
12741         * tests/test-lseek.c (lseek): Likewise.
12742         * tests/test-lstat.c (lstat): Likewise.
12743         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12744         * tests/test-mbsinit.c (mbsinit): Likewise.
12745         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12746         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12747         * tests/test-memchr.c (memchr): Likewise.
12748         * tests/test-memcmp.c (memcmp): Likewise.
12749         * tests/test-memmem.c (memmem): Likewise.
12750         * tests/test-memrchr.c (memrchr): Likewise.
12751         * tests/test-mkdir.c (mkdir): Likewise.
12752         * tests/test-mkdirat.c (mkdirat): Likewise.
12753         * tests/test-mkfifo.c (mkfifo): Likewise.
12754         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12755         * tests/test-mknod.c (mknod): Likewise.
12756         * tests/test-nanosleep.c (nanosleep): Likewise.
12757         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12758         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12759         Likewise.
12760         * tests/test-open.c (open): Likewise.
12761         * tests/test-openat.c (openat): Likewise.
12762         * tests/test-perror.c (perror): Likewise.
12763         * tests/test-pipe2.c (pipe2): Likewise.
12764         * tests/test-poll.c (poll): Likewise.
12765         * tests/test-popen.c (popen, pclose): Likewise.
12766         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12767         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12768         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12769         (posix_spawn_file_actions_destroy)
12770         (posix_spawn_file_actions_addclose)
12771         (posix_spawn_file_actions_addopen)
12772         (posix_spawn_file_actions_adddup2): Likewise.
12773         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12774         * tests/test-pread.c (pread): Likewise.
12775         * tests/test-printf-posix.c (printf): Likewise.
12776         * tests/test-pty.c (openpty, forkpty): Likewise.
12777         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12778         (random_r): Likewise.
12779         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12780         * tests/test-readlink.c (readlink): Likewise.
12781         * tests/test-remove.c (remove): Likewise.
12782         * tests/test-rename.c (rename): Likewise.
12783         * tests/test-renameat.c (renameat): Likewise.
12784         * tests/test-rmdir.c (rmdir): Likewise.
12785         * tests/test-round1.c (round): Likewise.
12786         * tests/test-roundf1.c (roundf): Likewise.
12787         * tests/test-roundl.c (roundl): Likewise.
12788         * tests/test-setenv.c (setenv): Likewise.
12789         * tests/test-sigaction.c (sigaction): Likewise.
12790         * tests/test-sleep.c (sleep): Likewise.
12791         * tests/test-snprintf.c (snprintf): Likewise.
12792         * tests/test-sprintf-posix.c (sprintf): Likewise.
12793         * tests/test-stat.c (stat): Likewise.
12794         * tests/test-stpncpy.c (stpncpy): Likewise.
12795         * tests/test-strcasestr.c (strcasestr): Likewise.
12796         * tests/test-strchrnul.c (strchrnul): Likewise.
12797         * tests/test-strerror.c (strerror): Likewise.
12798         * tests/test-strsignal.c (strsignal): Likewise.
12799         * tests/test-strstr.c (strstr): Likewise.
12800         * tests/test-strtod.c (strtod): Likewise.
12801         * tests/test-strverscmp.c (strverscmp): Likewise.
12802         * tests/test-symlink.c (symlink): Likewise.
12803         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12804         * tests/test-times.c (times): Likewise.
12805         * tests/test-trunc1.c (trunc): Likewise.
12806         * tests/test-truncf1.c (truncf): Likewise.
12807         * tests/test-truncl.c (truncl): Likewise.
12808         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12809         Likewise.
12810         * tests/test-uname.c (uname): Likewise.
12811         * tests/test-unlink.c (unlink): Likewise.
12812         * tests/test-unlinkat.c (unlinkat): Likewise.
12813         * tests/test-unsetenv.c (unsetenv): Likewise.
12814         * tests/test-usleep.c (usleep): Likewise.
12815         * tests/test-utimensat.c (utimensat): Likewise.
12816         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12817         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12818         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12819         * tests/test-vprintf-posix.c (vprintf): Likewise.
12820         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12821         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12822         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12823         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12824         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12825         * tests/test-wcwidth.c (wcwidth): Likewise.
12826
12827         build: pull in conditional headers during GNULIB_POSIXCHECK
12828         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12829         definitions from any conditionally-included headers.
12830         * lib/stdlib.in.h (includes): Likewise.
12831         * lib/unistd.in.h (includes): Likewise.
12832
12833 2009-12-24  Bruno Haible  <bruno@clisp.org>
12834
12835         * tests/test-argv-iter.c: Include header file being tested immediately
12836         after config.h.
12837         * tests/test-base64.c: Likewise.
12838         * tests/test-flock.c: Likewise.
12839         * tests/test-fsync.c: Likewise.
12840         * tests/test-getdate.c: Likewise.
12841         * tests/test-getndelim2.c: Likewise.
12842         * tests/test-isfinite.c: Likewise.
12843         * tests/test-isinf.c: Likewise.
12844         * tests/test-strerror.c: Likewise.
12845         * tests/test-strsignal.c: Likewise.
12846
12847 2009-12-23  Eric Blake  <ebb9@byu.net>
12848
12849         unistd: work around cygwin bug
12850         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12851         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12852         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12853
12854 2009-12-23  Bruno Haible  <bruno@clisp.org>
12855
12856         localename: More tests.
12857         * tests/test-localename.c (SIZEOF): New macro.
12858         (categories): New variable.
12859         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12860         test_locale_name_default): Add test w.r.t. thread locale.
12861         (test_locale_name_thread): New function.
12862         (main): Invoke it.
12863
12864         localename: Make aware of thread locale.
12865         * lib/localename.h (gl_locale_name_thread): New declaration.
12866         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12867         behaviour with respect to thread locale.
12868         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12869         <langinfo.h>, glthread/lock.h.
12870         (SIZE_BITS): New macro.
12871         (string_hash): New function.
12872         (struct hash_node): New type.
12873         (HASH_TABLE_SIZE): New macro.
12874         (struniq_hash_table, struniq_lock): New variables.
12875         (struniq): New function.
12876         (gl_locale_name_thread): New function.
12877         (gl_locale_name): Invoke it.
12878         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12879         * modules/localename (Depends-on): Add lock.
12880         Reported by Mike Gran <spk121@yahoo.com>.
12881
12882 2009-12-23  Eric Blake  <ebb9@byu.net>
12883
12884         va-args: new module
12885         * modules/va-args: New file.
12886         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12887         * MODULES.html.sh (Core language properties): Mention it.
12888
12889         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12890         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12891         named alias for __attribute__((__unused__)).
12892         * lib/chown.c: Update client.
12893         * lib/fchmodat.c: Likewise.
12894         * lib/fts.c: Likewise.
12895         * lib/getdate.y: Likewise.
12896         * lib/getgroups.c: Likewise.
12897         * lib/getopt.c: Likewise.
12898         * lib/getugroups.c: Likewise.
12899         * lib/mkdir.c: Likewise.
12900         * lib/mkfifo.c: Likewise.
12901         * lib/mkfifoat.c: Likewise.
12902         * lib/mknod.c: Likewise.
12903         * lib/mknodat.c: Likewise.
12904         * lib/readlink.c: Likewise.
12905         * lib/se-context.in.h: Likewise.
12906         * lib/se-selinux.in.h: Likewise.
12907         * lib/sockets.c: Likewise.
12908         * lib/symlink.c: Likewise.
12909         * lib/symlinkat.c: Likewise.
12910         * lib/unicodeio.c: Likewise.
12911         * lib/unistr.h: Likewise.
12912         * tests/test-areadlink.c: Likewise.
12913         * tests/test-areadlinkat.c: Likewise.
12914         * tests/test-filenamecat.c: Likewise.
12915         * tests/test-fseeko.c: Likewise.
12916         * tests/test-ftello.c: Likewise.
12917         * tests/test-getdate.c: Likewise.
12918         * tests/test-getgroups.c: Likewise.
12919         * tests/test-gethostname.c: Likewise.
12920         * tests/test-quotearg.c: Likewise.
12921         * tests/test-version-etc.c: Likewise.
12922         * tests/test-xalloc-die.c: Likewise.
12923         * tests/test-xfprintf-posix.c: Likewise.
12924         * tests/test-xprintf-posix.c: Likewise.
12925         * tests/test-xvasprintf.c: Likewise.
12926
12927         tests: avoid compiler warnings
12928         * tests/test-fcntl.c (main): Delete unused parameters.
12929         * tests/test-freopen-safer.c (main): Likewise.
12930         * tests/test-xalloc-die.c (main): Mark unused parameters.
12931         * tests/test-fseeko.c (main): Likewise.
12932         * tests/test-ftello.c (main): Likewise.
12933         * tests/test-nanosleep.c (main): Avoid declaration warning.
12934         * tests/test-sleep.c (main): Likewise.
12935         * tests/test-unsetenv.c (main): Silence warning about string
12936         literal.
12937         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12938
12939 2009-12-23  Bruno Haible  <bruno@clisp.org>
12940
12941         * tests/test-localename.c (test_locale_name): New function, extracted
12942         from main. Also test mixed situations.
12943         (test_locale_name_posix, test_locale_name_environ,
12944         test_locale_name_default): New functions.
12945         (main): Invoke them all.
12946         * modules/localename-tests (configure.ac): Test for newlocale.
12947
12948 2009-12-23  Bruno Haible  <bruno@clisp.org>
12949
12950         unistd: Ensure getcwd gets declared before being overridden.
12951         * lib/unistd.in.h: Conditionally include <io.h>.
12952
12953 2009-12-22  Bruno Haible  <bruno@clisp.org>
12954
12955         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12956         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12957         (gl_WCHAR_H): Invoke it.
12958         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12959         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12960         Reported by Karl Berry <karl@freefriends.org>.
12961
12962 2009-12-22  Eric Blake  <ebb9@byu.net>
12963
12964         math, unistd: avoid redundant includes
12965         * lib/math.in.h (isnan): No need to re-include <math.h>.
12966         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12967
12968         getsubopt: work around cygwin bug
12969         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12970         avoid conflicting with system getsubopt.
12971         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12972         bug.
12973
12974         getopt: synchronize from glibc
12975         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12976         parameter order.  Adjust all callers.
12977         (_getopt_internal_r, main): Adjust quoting in error messages.
12978         Drop considerations for outdated POSIX 1003.2 error message.
12979         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12980         callers.
12981         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12982
12983         test-getopt: test stderr behavior
12984         * modules/getopt-posix-tests (Depends-on): Add dup2.
12985         * tests/test-getopt.c (ASSERT): Avoid stderr.
12986         (main): Move stderr to a temporary file.
12987         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12988         Instead, add parameter to inform caller if output occurred.
12989         (test_getopt): Adjust all existing tests to expect silence, and
12990         add new tests of leading ":".
12991         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12992         glibc shortcomings with leading "-:" or "+:" in optstring.
12993         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12994         Likewise.
12995         * doc/posix-functions/getopt.texi (getopt): Likewise.
12996
12997         test-getopt: enhance test
12998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12999         supports optind=0.
13000         * tests/test-getopt.c (OPTIND_MIN): Move...
13001         * tests/test-getopt.h (OPTIND_MIN): ...here.
13002         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13003         Require that optind=0 works, since modern BSD supports it in
13004         addition to optreset, and since coreutils expects it.
13005         (test_getopt_long_only): New test.
13006         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13007         glibc shortcomings with 'W;', and enforcement of optind=0.
13008         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13009         Likewise.
13010
13011 2009-12-21  Bruno Haible  <bruno@clisp.org>
13012
13013         localename: Improvements for MacOS X and Cygwin.
13014         * lib/localename.h (gl_locale_name_environ): New declaration.
13015         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13016         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13017         (gl_locale_name_posix): Invoke it.
13018         (gl_locale_name_default): Add comments. Use Windows native API also on
13019         Cygwin.
13020
13021 2009-12-21  Bruno Haible  <bruno@clisp.org>
13022
13023         Update list of Win32 locale ids.
13024         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13025         (LANG_SAMI): Renamed from LANG_SAAMI.
13026         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13027         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13028         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13029         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13030         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13031         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13032         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13033         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13034         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13035         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13036         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13037         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13038         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13039         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13040         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13041         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13042         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13043         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13044         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13045         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13046         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13047         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13048         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13049         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13050         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13051         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13052         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13053         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13054         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13055         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13056         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13057         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13058         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13059         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13060         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13061         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13062         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13063         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13064         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13065         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13066         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13067         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13068         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13069         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13070         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13071         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13072         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13073         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13074         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13075         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13076         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13077         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13078         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13079         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13080         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13081         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13082         Add more languages and countries for Sami, Sorbian. Add more countries
13083         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13084         for Pashto. Change country for Syriac, Tswana.
13085
13086 2009-12-21  Eric Blake  <ebb9@byu.net>
13087
13088         test-utimens: avoid spurious failure
13089         * tests/test-chown.h (nap): Factor...
13090         * tests/nap.h: ...into new file.
13091         * tests/test-lchown.h (nap): Avoid duplication.
13092         * tests/test-utimens-common.h (nap): Use shared implementation,
13093         necessary on file systems with 1-second resolution.
13094         * modules/chown-tests (Files): Include new file.
13095         * modules/fdutimensat-tests (Files): Likewise.
13096         * modules/futimens-tests (Files): Likewise.
13097         * modules/lchown-tests (Files): Likewise.
13098         * modules/openat-tests (Files): Likewise.
13099         * modules/utimens-tests (Files): Likewise.
13100         * modules/utimensat-tests (Files): Likewise.
13101
13102 2009-12-19  Eric Blake  <ebb9@byu.net>
13103
13104         futimens, utimensat: work around Linux bug
13105         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13106         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13107         * lib/utimensat.c (rpl_utimensat): Work around it.
13108         * lib/futimens.c (rpl_futimens): Adjust comment.
13109
13110         utimens: work around Linux ctime bug
13111         * lib/utimens.c (detect_ctime_bug): New helper function.
13112         (update_timespec): Differentiate between workaround needed for
13113         this bug vs. what is needed for systems that lack utimensat.
13114         (fdutimens, lutimens): Work around bug.
13115
13116         utimens: check for ctime update
13117         * tests/test-utimens-common.h (check_ctime): Define.
13118         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13119         * tests/test-futimens.h (test_futimens): Likewise.
13120         * tests/test-lutimens.h (test_lutimens): Likewise.
13121         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13122         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13123
13124 2009-12-19  Bruno Haible  <bruno@clisp.org>
13125
13126         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13127         * tests/test-dprintf-posix2.sh: New file.
13128         * tests/test-dprintf-posix2.c: New file.
13129         * modules/dprintf-posix-tests (Files): Add them.
13130         (configure.ac): Check for getrlimit and setrlimit.
13131         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13132
13133 2009-12-19  Bruno Haible  <bruno@clisp.org>
13134
13135         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13136         * tests/test-fprintf-posix3.sh: New file.
13137         * tests/test-fprintf-posix3.c: New file.
13138         * modules/fprintf-posix-tests (Files): Add them.
13139         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13140
13141 2009-12-19  Eric Blake  <ebb9@byu.net>
13142
13143         dirfd: fix prototype
13144         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13145         * lib/dirfd.c (dirfd): Likewise.
13146
13147         canonicalize: reduce memory usage
13148         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13149         allocation to size.
13150         Reported by Solar Designer <solar@openwall.com>.
13151
13152 2009-12-19  Bruno Haible  <bruno@clisp.org>
13153
13154         New module attribute 'Applicability'.
13155         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13156         * gnulib-tool: New option --extract-applicability.
13157         (func_usage): Document it.
13158         (sed_extract_prog): Recognize it.
13159         (func_get_applicability): New function.
13160         (func_import): Generalize handling of 'link-warning' module.
13161         * modules/link-warning (Applicability): New section.
13162         * modules/arg-nonnull (Applicability): New section.
13163         Repoted by Simon Josefsson <simon@josefsson.org>.
13164
13165 2009-12-19  Bruno Haible  <bruno@clisp.org>
13166
13167         fflush: tweak
13168         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13169         * lib/fseeko.c (rpl_fseeko): Likewise.
13170
13171 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13172
13173         * lib/gl_list.h: Fix typo in comment.
13174
13175 2009-12-16  Eric Blake  <ebb9@byu.net>
13176
13177         fcntl: use to simplify other modules
13178         * modules/cloexec (Depends-on): Add fcntl.
13179         * modules/fchdir (Depends-on): Likewise.
13180         * modules/fd-safer-flag (Depends-on): Likewise.
13181         * modules/unistd-safer (Depends-on): Likewise.
13182         * modules/dup3 (configure.ac): Set module indicator.
13183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13184         missing.
13185         * lib/fchdir.c (_gl_register_dup): Fix comment.
13186         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13187         * lib/dup-safer.c (dup_safer): Likewise.
13188         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13189         * lib/dup3.c (dup3): Likewise.
13190         * tests/test-fchdir.c (main): Enhance test.
13191         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
13192
13193         fcntl: port portions of fcntl to mingw
13194         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13195         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13196         replacement for mingw.
13197         * modules/fcntl (Description): Update.
13198         (Depends-on): Add dup2.
13199         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13200         * modules/fcntl-h (Makefile.am): Substitute it.
13201         * lib/fcntl.in.h (fcntl): Update declaration.
13202         (F_DUPFD, F_GETFD): New macros, when needed.
13203         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13204         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13205         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13206         we now guarantee.
13207
13208         fcntl: work around cygwin bug in F_DUPFD
13209         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13210         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13211         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13212         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13213         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13214
13215         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13216         * modules/fcntl (Files): List new files.
13217         (configure.ac): Run a test.
13218         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13219         * lib/fcntl.c (rpl_fcntl): Likewise.
13220         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13221         (gl_FCNTL_H): Always replace fcntl.h.
13222         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13223         * lib/fcntl.in.h (fcntl): Declare replacement.
13224         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13225         needed, plus a witness.
13226         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13227         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13228         * tests/test-fcntl.c: New file.
13229         * modules/fcntl-tests: Likewise.
13230
13231         binary-io: avoid potential compilation warning
13232         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13233         directives.
13234
13235         fflush: avoid compilation error on NetBSD
13236         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13237         between off_t and fpos_t, since the latter is sometimes a struct.
13238         * lib/fseeko.c (rpl_fseeko): Likewise.
13239         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13240
13241 2009-12-15  Eric Blake  <ebb9@byu.net>
13242
13243         fcntl-h, stdio, sys_ioctl: fix declarations
13244         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13245         function must not take arguments.
13246         * lib/sys_ioctl.in.h (ioctl): Likewise.
13247         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13248         (open): Add a link warning.
13249
13250 2009-12-15  Jim Meyering  <meyering@redhat.com>
13251
13252         areadlink, areadlink-with-size: relax license to LGPLv2+
13253         * modules/areadlink (License): Relax to LGPLv2+.
13254         * modules/areadlink-with-size (License): Likewise.
13255
13256 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13257             Bruno Haible  <bruno@clisp.org>
13258
13259         *printf: Fix memory leak.
13260         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13261         * lib/vfprintf.c (vfprintf): Likewise.
13262         * lib/dprintf.c (dprintf): Likewise.
13263         * lib/vdprintf.c (vdprintf): Likewise.
13264
13265 2009-12-14  Eric Blake  <ebb9@byu.net>
13266
13267         accept4: adjust module dependencies
13268         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13269
13270         utimens: one more try at avoiding compiler warning
13271         * lib/utimens.c (lutimens): Lower scope of result.
13272
13273 2009-12-13  Bruno Haible  <bruno@clisp.org>
13274
13275         Move the malloc checking from module 'list' to new module 'xlist'.
13276         * modules/xlist: New file.
13277         * lib/gl_xlist.h: New file.
13278         * lib/gl_xlist.c: New file.
13279         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13280         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13281         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13282         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13283         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13284         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13285         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13286         gl_sortedlist_nx_add): New declarations.
13287         (struct gl_list_implementation): Rename and change methods accordingly.
13288         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13289         (gl_list_nx_create): Renamed from gl_list_create.
13290         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13291         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13292         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13293         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13294         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13295         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13296         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13297         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13298         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13299         gl_list_create_empty.
13300         (gl_list_nx_create): Renamed from gl_list_create.
13301         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13302         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13303         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13304         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13305         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13306         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13307         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13308         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13309         * lib/gl_array_list.c: Don't include xalloc.h.
13310         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13311         NULL upon out-of-memory.
13312         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13313         out-of-memory.
13314         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13315         Change return type to 'int'.
13316         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13317         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13318         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13319         upon out-of-memory.
13320         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13321         upon out-of-memory.
13322         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13323         upon out-of-memory.
13324         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13325         upon out-of-memory.
13326         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13327         out-of-memory.
13328         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13329         Update.
13330         (gl_array_list_implementation): Update.
13331         * lib/gl_carray_list.c: Don't include xalloc.h.
13332         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13333         Return NULL upon out-of-memory.
13334         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13335         out-of-memory.
13336         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13337         Change return type to 'int'.
13338         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13339         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13340         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13341         upon out-of-memory.
13342         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13343         upon out-of-memory.
13344         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13345         out-of-memory.
13346         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13347         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13348         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13349         Update.
13350         (gl_carray_list_implementation): Update.
13351         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13352         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13353         gl_linked_create_empty. Return NULL upon out-of-memory.
13354         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13355         out-of-memory.
13356         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13357         Change return type to 'int'. Return -1 upon out-of-memory.
13358         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13359         out-of-memory.
13360         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13361         upon out-of-memory.
13362         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13363         upon out-of-memory.
13364         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13365         NULL upon out-of-memory.
13366         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13367         upon out-of-memory.
13368         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13369         out-of-memory.
13370         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13371         Update.
13372         * lib/gl_linked_list.c: Don't include xalloc.h.
13373         (gl_linked_list_implementation): Update.
13374         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13375         (add_to_bucket): Change return type to 'int'.
13376         (gl_linkedhash_list_implementation): Update.
13377         * lib/gl_anytree_list1.h (free_subtree): New function.
13378         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13379         gl_tree_create_empty. Return NULL upon out-of-memory.
13380         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13381         Change return type to 'int'. Return -1 upon out-of-memory.
13382         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13383         out-of-memory.
13384         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13385         (gl_tree_remove_node): New function, moved here from
13386         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13387         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13388         Update.
13389         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13390         malloc, not xmalloc. Return NULL upon out-of-memory.
13391         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13392         out-of-memory.
13393         (gl_tree_remove_node_from_tree): New function, extracted from
13394         gl_tree_remove_node.
13395         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13396         upon out-of-memory.
13397         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13398         out-of-memory.
13399         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13400         upon out-of-memory.
13401         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13402         upon out-of-memory.
13403         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13404         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13405         not xmalloc. Return NULL upon out-of-memory.
13406         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13407         out-of-memory.
13408         (gl_tree_remove_node_from_tree): New function, extracted from
13409         gl_tree_remove_node.
13410         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13411         upon out-of-memory.
13412         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13413         out-of-memory.
13414         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13415         upon out-of-memory.
13416         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13417         upon out-of-memory.
13418         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13419         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13420         gl_anytree_list1.h before gl_anyavltree_list2.h.
13421         (gl_avltree_list_implementation): Update.
13422         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13423         gl_anytree_list1.h before gl_anyavltree_list2.h.
13424         (gl_rbtree_list_implementation): Update.
13425         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13426         Change return type to 'int'. Return -1 upon out-of-memory. Use
13427         __builtin_expect.
13428         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13429         (gl_avltreehash_list_implementation): Update.
13430         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13431         (gl_rbtreehash_list_implementation): Update.
13432         * modules/array-list (Depends-on): Remove xalloc.
13433         * modules/carray-list (Depends-on): Likewise.
13434         * modules/linked-list (Depends-on): Likewise.
13435         * modules/linkedhash-list (Depends-on): Likewise.
13436         * modules/avltree-list (Depends-on): Likewise.
13437         * modules/rbtree-list (Depends-on): Likewise.
13438         * modules/avltreehash-list (Depends-on): Likewise.
13439         * modules/rbtreehash-list (Depends-on): Likewise.
13440
13441         * modules/xsublist: New file.
13442         * lib/gl_xsublist.h: New file.
13443         * lib/gl_xsublist.c: New file.
13444         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13445         (gl_sublist_nx_create): New declaration.
13446         * lib/gl_sublist.c: Don't include xalloc.h.
13447         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13448         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13449         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13450         Change return type to 'int'. Return -1 upon out-of-memory.
13451         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13452         upon out-of-memory.
13453         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13454         NULL upon out-of-memory.
13455         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13456         upon out-of-memory.
13457         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13458         NULL upon out-of-memory.
13459         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13460         NULL upon out-of-memory.
13461         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13462         upon out-of-memory.
13463         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13464         (gl_sublist_list_implementation): Update.
13465         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13466         upon out-of-memory.
13467         * modules/sublist (Depends-on): Remove xalloc.
13468
13469         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13470         * tests/test-carray_list.c: Likewise.
13471         * tests/test-linked_list.c: Likewise.
13472         * tests/test-linkedhash_list.c: Likewise.
13473         * tests/test-avltree_list.c: Likewise.
13474         * tests/test-rbtree_list.c: Likewise.
13475         * tests/test-avltreehash_list.c: Likewise.
13476         * tests/test-rbtreehash_list.c: Likewise.
13477         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13478         * modules/carray-list-tests (Makefile.am): Likewise.
13479         * modules/linked-list-tests (Makefile.am): Likewise.
13480         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13481         * modules/avltree-list-tests (Makefile.am): Likewise.
13482         * modules/rbtree-list-tests (Makefile.am): Likewise.
13483         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13484         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13485
13486         * NEWS: Mention the changes.
13487
13488         * lib/clean-temp.c: Include gl_xlist.h.
13489         * modules/clean-temp (Depends-on): Add xlist.
13490
13491         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13492         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13493
13494         * tests/test-array_oset.c: Include gl_xlist.h.
13495         * modules/array-oset-tests (Depends-on): Add xlist.
13496
13497         Reported by José E. Marchesi <jemarch@gnu.org>.
13498
13499 2009-12-13  Bruno Haible  <bruno@clisp.org>
13500
13501         Move the malloc checking from module 'oset' to new module 'xoset'.
13502         * modules/xoset: New file.
13503         * lib/gl_xoset.h: New file.
13504         * lib/gl_xoset.c: New file.
13505         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13506         declarations.
13507         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13508         (struct gl_oset_implementation): Rename and change methods accordingly.
13509         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13510         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13511         'int'. Mark as __warn_unused_result__.
13512         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13513         gl_oset_create_empty.
13514         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13515         'int'.
13516         * lib/gl_array_oset.c: Don't include xalloc.h.
13517         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13518         malloc, not xmalloc.
13519         (grow): Change return type to 'int'. Don't call xalloc_die.
13520         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13521         to 'int'.
13522         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13523         'int'.
13524         (gl_array_oset_implementation): Update.
13525         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13526         gl_tree_create_empty.
13527         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13528         'int'.
13529         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13530         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13531         xmalloc.
13532         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13533         not xmalloc.
13534         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13535         xmalloc.
13536         (gl_avltree_oset_implementation): Update.
13537         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13538         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13539         xmalloc.
13540         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13541         not xmalloc.
13542         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13543         xmalloc.
13544         (gl_rbtree_oset_implementation): Update.
13545         * modules/array-oset (Depends-on): Remove xalloc.
13546         * modules/avltree-oset (Depends-on): Likewise.
13547         * modules/rbtree-oset (Depends-on): Likewise.
13548         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13549         * tests/test-avltree_oset.c: Likewise.
13550         * tests/test-rbtree_oset.c: Likewise.
13551         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13552         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13553         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13554         * NEWS: Mention the change.
13555
13556 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13557
13558         maint.mk: allow a project to override release-prep commands
13559         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13560         commands into a new rule.
13561         (release-prep): New rule.
13562         (release-prep-hook): New overridable variable.
13563
13564 2009-12-13  Bruno Haible  <bruno@clisp.org>
13565
13566         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13567
13568 2009-12-13  Jim Meyering  <meyering@redhat.com>
13569
13570         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13571         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13572
13573 2009-12-12  Bruno Haible  <bruno@clisp.org>
13574
13575         duplocale: Tweak.
13576         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13577
13578 2009-12-12  Karl Berry  <karl@gnu.org>
13579
13580         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13581
13582 2009-12-12  Bruno Haible  <bruno@clisp.org>
13583
13584         * m4/po.m4: Undo incorrect untabification.
13585
13586 2009-12-12  Bruno Haible  <bruno@clisp.org>
13587
13588         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13589         * modules/c-strtod (Depends-on): Add locale.
13590         * modules/c-strtold (Depends-on): Likewise.
13591
13592 2009-12-12  Bruno Haible  <bruno@clisp.org>
13593
13594         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13595
13596 2009-12-11  Eric Blake  <ebb9@byu.net>
13597
13598         setenv: relax requirement in light of POSIX ruling
13599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13600         not NULL.
13601         * tests/test-setenv.c (main): Relax test.
13602         * tests/test-unsetenv.c (main): Likewise.
13603         * doc/posix-functions/setenv.texi (setenv): Document this.
13604         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13605
13606 2009-12-11  Bruno Haible  <bruno@clisp.org>
13607
13608         New module 'fd-safer-flag'.
13609         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13610         * lib/dup-safer.c (dup_safer_flag): Remove function.
13611         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13612         * lib/fd-safer.c (fd_safer_flag): Remove function.
13613         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13614         * modules/cloexec (configure.ac): Drop indicator macro.
13615         * modules/fd-safer-flag: New file.
13616         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13617         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13618         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13619
13620 2009-12-11  Bruno Haible  <bruno@clisp.org>
13621
13622         Tests for module 'nl_langinfo'.
13623         * modules/nl_langinfo-tests: New file.
13624         * tests/test-nl_langinfo.sh: New file.
13625         * tests/test-nl_langinfo.c: New file.
13626
13627         New module 'nl_langinfo'.
13628         * lib/nl_langinfo.c: New file.
13629         * m4/nl_langinfo.m4: New file.
13630         * modules/nl_langinfo: New file.
13631         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13632
13633 2009-12-11  Bruno Haible  <bruno@clisp.org>
13634
13635         Tests for module 'langinfo'.
13636         * modules/langinfo-tests: New file.
13637         * tests/test-langinfo.c: New file.
13638
13639         New module 'langinfo'.
13640         * lib/langinfo.in.h: New file.
13641         * m4/langinfo_h.m4: New file.
13642         * modules/langinfo: New file.
13643         * doc/posix-headers/langinfo.texi: Mention the new module.
13644
13645 2009-12-11  Bruno Haible  <bruno@clisp.org>
13646
13647         * lib/config.charset: Untabify.
13648
13649 2009-12-11  Bruno Haible  <bruno@clisp.org>
13650
13651         * modules/unistd-safer (configure.ac): Drop indicator macro.
13652
13653 2009-12-11  Bruno Haible  <bruno@clisp.org>
13654
13655         Move pipe2-safer code to its own file.
13656         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13657         * lib/pipe-safer.c (pipe2_safer): Remove function.
13658         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13659         (Makefile.am): Add it to lib_SOURCES.
13660
13661 2009-12-10  Bruno Haible  <bruno@clisp.org>
13662
13663         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13664
13665 2009-12-10  Bruno Haible  <bruno@clisp.org>
13666
13667         Declare which arguments expect non-NULL values, for GCC and clang.
13668         * build-aux/arg-nonnull.h: New file.
13669         * modules/arg-nonnull: New file.
13670         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13671         (inet_ntop, inet_pton): Use it.
13672         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13673         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13674         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13675         (open, openat): Use it.
13676         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13677         (fnmatch): Use it.
13678         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13679         (getopt, getopt_long, getopt_long_only): Use it.
13680         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13681         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13682         Use it.
13683         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13684         (iconv_open): Use it.
13685         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13686         (strtoimax, strtoumax): Use it.
13687         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13688         (duplocale): Use it.
13689         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13690         (frexp, frexpl): Use it.
13691         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13692         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13693         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13694         (tsearch, tfind, tdelete, twalk): Use it.
13695         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13696         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13697         sigpending): Use it.
13698         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13699         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13700         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13701         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13702         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13703         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13704         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13705         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13706         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13707         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13708         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13709         Use it.
13710         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13711         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13712         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13713         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13714         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13715         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13716         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13717         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13718         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13719         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13720         strtoull, unsetenv): Use it.
13721         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13722         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13723         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13724         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13725         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13726         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13727         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13728         (strcasecmp, strncasecmp): Use it.
13729         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13730         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13731         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13732         rpl_setsockopt): Use it.
13733         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13734         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13735         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13736         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13737         (gettimeofday): Use it.
13738         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13739         (times): Use it.
13740         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13741         (uname): Use it.
13742         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13743         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13744         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13745         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13746         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13747         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13748         unlinkat, write): Use it.
13749         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13750         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13751         * lib/argv-iter.h: Include arg-nonnull.h.
13752         (_ATTRIBUTE_NONNULL_): Remove macro.
13753         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13754         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13755         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13756         optimization.
13757         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13758         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13759         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13760         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13761         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13762         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13763         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13764         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13765         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13766         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13767         * modules/dirent (Depends-on): Add arg-nonnull.
13768         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13769         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13770         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13771         * modules/fnmatch (Depends-on): Add arg-nonnull.
13772         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13773         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13774         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13775         * modules/glob (Depends-on): Add arg-nonnull.
13776         (Makefile.am): Insert arg-nonnull.h into glob.h.
13777         * modules/iconv_open (Depends-on): Add arg-nonnull.
13778         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13779         * modules/inttypes (Depends-on): Add arg-nonnull.
13780         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13781         * modules/locale (Depends-on): Add arg-nonnull.
13782         (Makefile.am): Insert arg-nonnull.h into locale.h.
13783         * modules/math (Depends-on): Add arg-nonnull.
13784         (Makefile.am): Insert arg-nonnull.h into math.h.
13785         * modules/netdb (Depends-on): Add arg-nonnull.
13786         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13787         * modules/search (Depends-on): Add arg-nonnull.
13788         (Makefile.am): Insert arg-nonnull.h into search.h.
13789         * modules/signal (Depends-on): Add arg-nonnull.
13790         (Makefile.am): Insert arg-nonnull.h into signal.h.
13791         * modules/spawn (Depends-on): Add arg-nonnull.
13792         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13793         * modules/stdio (Depends-on): Add arg-nonnull.
13794         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13795         * modules/stdlib (Depends-on): Add arg-nonnull.
13796         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13797         * modules/string (Depends-on): Add arg-nonnull.
13798         (Makefile.am): Insert arg-nonnull.h into string.h.
13799         * modules/strings (Depends-on): Add arg-nonnull.
13800         (Makefile.am): Insert arg-nonnull.h into strings.h.
13801         * modules/sys_socket (Depends-on): Add arg-nonnull.
13802         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13803         * modules/sys_stat (Depends-on): Add arg-nonnull.
13804         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13805         * modules/sys_time (Depends-on): Add arg-nonnull.
13806         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13807         * modules/sys_times (Depends-on): Add arg-nonnull.
13808         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13809         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13810         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13811         * modules/time (Depends-on): Add arg-nonnull.
13812         (Makefile.am): Insert arg-nonnull.h into time.h.
13813         * modules/unistd (Depends-on): Add arg-nonnull.
13814         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13815         * modules/wchar (Depends-on): Add arg-nonnull.
13816         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13817         * modules/argv-iter (Depends-on): Add arg-nonnull.
13818         * tests/test-canonicalize.c (null_ptr): New function.
13819         (main): Use it.
13820         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13821         (main): Use it.
13822         * tests/test-memmem.c (null_ptr): New function.
13823         (main): Use it.
13824         Reported by Jim Meyering.
13825
13826 2009-12-10  Bruno Haible  <bruno@clisp.org>
13827
13828         Use spaces for indentation, not tabs.
13829         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13830         * m4/*.m4: Untabify.
13831         * build-aux/*.h: Untabify.
13832         * tests/**/*.[hc]: Untabify.
13833         * README: New section "Indent with spaces, not TABs", based on
13834         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13835         * NEWS: Mention the change.
13836
13837 2009-12-10  Bruno Haible  <bruno@clisp.org>
13838
13839         pty test: Fix link error.
13840         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13841         test_pty_LDADD.
13842
13843 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13844
13845         * modules/pty: New file.
13846         * modules/pty-tests: New file.
13847         * m4/pty.m4: New file.
13848         * tests/test-pty.c: New file.
13849         * doc/glibc-headers/pty.texi: Modified.
13850         * doc/glibc-functions/forkpty.texi: Modified.
13851         * doc/glibc-functions/openpty.texi: Modified.
13852
13853 2009-12-10  Bruno Haible  <bruno@clisp.org>
13854
13855         Avoid syntax error in C++ mode.
13856         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13857
13858 2009-12-10  Bruno Haible  <bruno@clisp.org>
13859
13860         Use sed with option -e.
13861         * gnulib-tool (func_version, func_emit_copyright_notice,
13862         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13863         option -e to sed.
13864         * modules/link-warning (Makefile.am): Likewise.
13865
13866 2009-12-10  Jim Meyering  <meyering@redhat.com>
13867
13868         mgetgroups: do not write bytes beyond end of malloc'd buffer
13869         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13870         username, we call getgroups with a one-element-shorter buffer,
13871         but still told it the length was original, max_n_groups.
13872
13873 2009-12-09  Eric Blake  <ebb9@byu.net>
13874
13875         cloexec: relax license
13876         * modules/cloexec (Maintainer): Add myself.
13877         (License): Use LGPL, not GPL.
13878
13879         link-warning: optimize generation
13880         * modules/link-warning (Makefile.am): Reduce process usage.
13881
13882 2009-12-09  Bruno Haible  <bruno@clisp.org>
13883
13884         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13885         workaround was added on 2009-11-17.
13886
13887 2009-12-09  Jim Meyering  <meyering@redhat.com>
13888             Bruno Haible  <bruno@clisp.org>
13889
13890         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13891         * modules/link-warning (Makefile.am): Make the comment-removing sed
13892         command more robust in the face of bootstrap-prepended comment lines.
13893
13894 2009-12-09  Bruno Haible  <bruno@clisp.org>
13895
13896         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13897         most one group.
13898
13899 2009-12-09  Simon Josefsson <simon@josefsson.org>
13900             Bruno Haible  <bruno@clisp.org>
13901
13902         * build-aux/link-warning.h: Add copyright notice.
13903         * modules/link-warning (Makefile.am): Generate link-warning.h from
13904         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13905         * NEWS: Mention change in link-warning module.
13906         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13907         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13908         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13909         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13910         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13911         * modules/math (Makefile.am): Add dependency to math.h.
13912         * modules/search (Makefile.am): Add dependency to search.h.
13913         * modules/signal (Makefile.am): Add dependency to signal.h.
13914         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13915         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13916         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13917         * modules/string (Makefile.am): Add dependency to string.h.
13918         * modules/strings (Makefile.am): Add dependency to strings.h.
13919         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13920         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13921         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13922         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13923         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13924         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13925         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13926         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13927         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13928
13929 2009-12-09  Bruno Haible  <bruno@clisp.org>
13930
13931         fchdir: Optimize away rpl_fstat when possible.
13932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13933         REPLACE_OPEN_DIRECTORY.
13934         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13935
13936 2009-12-09  Bruno Haible  <bruno@clisp.org>
13937
13938         * lib/fchdir.c: Update comment.
13939
13940 2009-12-09  Bruno Haible  <bruno@clisp.org>
13941
13942         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13943
13944 2009-12-08  Eric Blake  <ebb9@byu.net>
13945
13946         fchdir: avoid memory leak on re-registration.
13947         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13948
13949 2009-12-08  Jim Meyering  <meyering@redhat.com>
13950
13951         init.sh: avoid Solaris 10 /bin/sh portability problem
13952         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13953         sourced script:
13954           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13955           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13956           bar
13957         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13958         and two tests used that idiom.
13959         * tests/init.sh: Update suggested usage comments.
13960         (path_prepend_): New function, to be used in place
13961         of the --src-path=DIR option.
13962         (setup_): Move PATH-prepending code into path_prepend_.
13963         * tests/test-pread.sh: Adapt to new usage.
13964         * tests/test-xalloc-die.sh: Likewise.
13965
13966 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13967
13968         * doc/gnulib.texi (Glibc pty.h): Add.
13969         * doc/glibc-functions/forkpty.texi: Add.
13970         * doc/glibc-functions/openpty.texi: Add.
13971         Suggested by Bruno Haible.
13972
13973 2009-12-08  Eric Blake  <ebb9@byu.net>
13974
13975         fchdir: fix logic bugs
13976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13977         * tests/test-fchdir.c (main): Enhance test.
13978         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13979         is in use.
13980
13981         dup2: fix logic bugs
13982         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13983         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13984         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13985         exists.
13986         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13987
13988 2009-12-07  Eric Blake  <ebb9@byu.net>
13989
13990         unlink: fix m4 detection
13991         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13992
13993         unistd-safer: add unit test
13994         * modules/unistd-safer-tests: New file.
13995         * tests/test-dup-safer.c: Likewise.
13996         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13997         * tests/test-dup2.c (setmode): Likewise.
13998         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13999
14000         cloexec: preserve text vs. binary across dup_cloexec
14001         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14002         mode.
14003         * modules/dup2-tests (Depends-on): Add binary-io.
14004         * modules/cloexec-tests (Depends-on): Likewise.
14005         * tests/test-dup2.c (setmode, is_mode): New helpers.
14006         (main): Add tests that translation mode is preserved.
14007         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14008         Reported by Bruno Haible.
14009
14010         mgetgroups: reduce duplicate listings
14011         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14012         resulting array.
14013         * tests/test-chown.h (test_chown): Simplify client.
14014         * tests/test-lchown.h (test_lchown): Likewise.
14015
14016 2009-12-06  Bruno Haible  <bruno@clisp.org>
14017
14018         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14019         value.
14020
14021 2009-12-06  Bruno Haible  <bruno@clisp.org>
14022
14023         * lib/progname.c: Include stdio.h, stdlib.h.
14024         (set_program_name): Reject a NULL argument.
14025
14026 2009-12-05  Eric Blake  <ebb9@byu.net>
14027
14028         pipe2-safer: new module
14029         * modules/pipe2-safer: New file.
14030         * lib/unistd-safer.h (pipe2_safer): New prototype.
14031         * lib/unistd--.h (pipe2): New wrapper.
14032         * lib/pipe-safer.c (pipe2_safer): New function.
14033         * modules/pipe (Depends-on): Add pipe2-safer.
14034         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14035
14036         stdlib-safer: preserve cloexec flag for mkostemp[s]
14037         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14038         fd_safer_flag.
14039
14040         unistd-safer: allow preservation of cloexec status via flag
14041         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14042         prototypes.
14043         * lib/dup-safer.c (dup_safer_flag): New function.
14044         * lib/fd-safer.c (fd_safer_flag): Likewise.
14045         * modules/cloexec (configure.ac): Set witness.
14046
14047         test-dup2: enhance test
14048         * modules/dup2-tests (Depends-on): Add cloexec.
14049         * tests/test-dup2.c (main): Enhance test.
14050
14051         cloexec: add dup_cloexec
14052         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14053         header and comments.
14054         * lib/cloexec.c (set_cloexec_flag): Add comments.
14055         (dup_cloexec): New function, with mingw implementation borrowed
14056         from...
14057         * lib/w32spawn.h (dup_noinherit): ...here.
14058         * modules/execute (Depends-on): Add cloexec.
14059         * modules/pipe (Depends-on): Likewise.
14060         * modules/cloexec (Depends-on): Add dup2.
14061         * modules/cloexec-tests (Files): New file.
14062         * tests/test-cloexec.c: Likewise.
14063
14064         test-xalloc-die: fix test for mingw
14065         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14066         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14067         directory and .exe suffix off argv[0] output.
14068
14069         test-fseeko: fix test for mingw
14070         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14071         than undefining fseek, so test will pass on mingw.
14072
14073 2009-12-05  Bruno Haible  <bruno@clisp.org>
14074
14075         * lib/progname.h (set_program_name): Clarify specification.
14076         * lib/progname.c (set_program_name): Likewise.
14077         Reported by Jim Meyering.
14078
14079 2009-12-05  Jim Meyering  <meyering@redhat.com>
14080
14081         maint.mk: backslash-escape parens in default regexp
14082         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14083         backslash-escape the literal parentheses.
14084
14085         maint.mk: news-date-check: use grep -E
14086         * top/maint.mk (today): Define a Make variable, not a...
14087         (news-date-check): ...shell variable.
14088         (news-date-regexp): Use the Make variable.
14089         Use grep's -E option.  Change the failing diagnostic to mention
14090         the variable, $(news-date-regexp).
14091
14092 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14093
14094         maintainer-makefile: allow customization of NEWS entry format
14095         * top/maint.mk (news-date-regexp): New overridable variable.
14096         (news-date-check): Use it.
14097
14098 2009-12-04  Eric Blake  <ebb9@byu.net>
14099
14100         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14101         * lib/mgetgroups.h (xgetgroups): New prototype.
14102         * lib/mgetgroups.c (xgetgroups): New wrapper.
14103         (mgetgroups): Handle ENOSYS.
14104         * modules/mgetgroups (Depends-on): Add realloc.
14105         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14106
14107         mgetgroups: avoid argument promotion issues with -1
14108         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14109         for invalid gid_t.
14110         * tests/test-chown.h (getegid, test_chown): Likewise.
14111         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14112
14113 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14114
14115         exclude: Fix header file problems.
14116         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14117
14118 2009-12-01  Jim Meyering  <meyering@redhat.com>
14119
14120         fts: fts_open: do not let an empty string cause immediate failure
14121         This is required in support of GNU rm, for which the command
14122         "rm A '' B" must process and remove both A and B, in spite of
14123         the empty string argument.
14124         * lib/fts.c (fts_open): Do not let the presence of an empty string
14125         cause fts_open to fail immediately.  Most fts-using tools must be
14126         able to process all arguments, in order, and can be expected to
14127         diagnose such arguments themselves.
14128
14129 2009-11-30  Eric Blake  <ebb9@byu.net>
14130
14131         utimens: fix compilation error
14132         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14133         Declare variable at right scope.
14134
14135 2009-11-29  Jim Meyering  <meyering@redhat.com>
14136
14137         bootstrap: handle perl-5.11's changed --version output
14138         * build-aux/bootstrap (get_version): Handle perl separately,
14139         since perl-5.11's --version output is different.
14140
14141 2009-11-28  Jim Meyering  <meyering@redhat.com>
14142
14143         userspec: depend on the inttostr module, too
14144         * modules/userspec (Depends-on): Add inttostr.
14145
14146         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14147         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14148         number of MAXUID when it evaluates to (uid_t) -1.
14149         Likewise for group ID.  Reported by Matt McCutchen in
14150         <http://savannah.gnu.org/bugs/?28113>
14151
14152         userspec: reformat to use spaces, not TABs
14153         * lib/userspec.c: Expand TABs to spaces.
14154         Add Emacs' "indent-tabs-mode: nil" hint.
14155
14156 2009-11-27  Eric Blake  <ebb9@byu.net>
14157
14158         getopt-gnu: flush out another BSD bug
14159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14160         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14161         flush out BSD bug.
14162         * tests/test-getopt.h (test_getopt): End lists with NULL.
14163         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14164         (test_getopt_long_posix): Enhance test.
14165         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14166         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14167         getopt-gnu.
14168         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14169         Likewise.
14170
14171 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14172
14173         * modules/idpriv-droptemp-tests (Notice): Fix text.
14174
14175 2009-11-27  Jim Meyering  <meyering@redhat.com>
14176
14177         test-xalloc-die: avoid spurious failure due to libtool argv difference
14178         In a libtool-enabled project, this test would fail due to a difference
14179         in the emitted program name, e.g.,
14180         -test-xalloc-die: memory exhausted
14181         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14182         Use program to avoid that.
14183         * modules/xalloc-die-tests (Depends-on): Add progname.
14184         * tests/test-xalloc-die.c: Include progname.h".
14185         (program_name): Remove decl.
14186         (main): Call set_program_name.
14187         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14188
14189 2009-11-26  Richard Jones  <rjones@redhat.com>
14190
14191         w32sock: leave win32 error in place.
14192         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14193
14194 2009-11-26  Eric Blake  <ebb9@byu.net>
14195
14196         init.sh: suggest to use skip_ and fail_ functions in comments
14197         * tests/init.sh: Add a sentence.
14198
14199 2009-11-25  Bruno Haible  <bruno@clisp.org>
14200
14201         init.sh: add documentation in comments
14202         * tests/init.sh: Add some developer and user documentation.
14203
14204 2009-11-26  Jim Meyering  <meyering@redhat.com>
14205
14206         init.sh: accommodate even those who specify bogus srcdir manually
14207         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14208         configure-time tests to be sanitized, so that there is no need to
14209         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14210         (with no double quotes) suffices.  However, since tests may be
14211         invoked manually, and since you may explicitly set srcdir to the
14212         name of a directory containing spaces, do quote its uses here.
14213         * tests/test-pread.sh: Likewise.
14214         Suggested by Bruno Haible.
14215
14216         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14217         * tests/test-pread.sh: Write no data into the pipe, because
14218         test-pread actually reads none.  This avoids a diagnostic,
14219         "bash: echo: write error: Broken pipe", that arises in the unusual
14220         event something is ignoring SIGPIPE, and might be interpreted
14221         as some sort of failure.  Reported by Bruno Haible.
14222
14223 2009-11-25  Jim Meyering  <meyering@redhat.com>
14224
14225         test-pread: cover failure with ESPIPE and EINVAL
14226         * tests/test-pread.c (main): Test for failure, too.
14227         * tests/test-pread.sh: Invoke with stdin on a pipe.
14228         Suggested by Eric Blake.
14229
14230         pread: improvement and fix
14231         * modules/pread (Depends-on): Depend on lseek, for portability to
14232         e.g., mingw.  Suggested by Eric Blake.
14233         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14234
14235         unistd.in.h: correct declaration of pread
14236         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14237         Reported by Richard W.M. Jones.
14238
14239         test-pread.sh: distribute the test script
14240         * modules/pread-tests (Files): Include test-pread.sh.
14241
14242         test-pread.sh: clean up
14243         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14244         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14245         That is unnecessary, since it's always ".".
14246         Suggestion from Eric Blake.
14247
14248         test-pread.sh: make executable
14249         * tests/test-pread.sh: Set executable bit.
14250         Reported by Eric Blake.
14251
14252         correct typo in test-pread.sh
14253         * tests/test-pread.sh: Add #! line.
14254
14255         test pread
14256         * tests/test-pread.c: New file.
14257         * tests/test-pread.sh: Likewise.
14258         * modules/pread-tests: Likewise.
14259
14260         pread: new module
14261         * modules/pread: New file.
14262         * lib/unistd.in.h (pread): Define/declare.
14263         * lib/pread.c (pread): New file.
14264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14265         * modules/unistd (Makefile.am): Substitute witnesses.
14266         * doc/posix-functions/pread.texi (pread): Update.
14267         * MODULES.html.sh: Add pread.
14268
14269 2009-11-25  Jim Meyering  <meyering@redhat.com>
14270
14271         tests/init.sh: new file to be used via most *.sh tests
14272         * tests/init.sh: New file.
14273
14274 2009-11-25  Eric Blake  <ebb9@byu.net>
14275
14276         utimens: work around older Linux failure with symlinks
14277         * lib/utimens.c (lutimensat_works_really): New variable.
14278         (fdutimens, lutimens): Use it to manage kernels that support
14279         nanosecond times on files, but not on symlinks.
14280         Reported by OndÅ™ej Vašík.
14281
14282         utimes: fix configure grammar
14283         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14284
14285 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14286
14287         regex: Fix fastmap for multibyte character ranges.
14288         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14289         characters when a multibyte character range is included.
14290
14291 2009-11-22  Andy Wingo  <wingo@pobox.com>
14292
14293         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14294         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14295
14296 2009-11-24  Bruno Haible  <bruno@clisp.org>
14297
14298         doc: Most *_l functions exist in MacOS X 10.5.
14299         * doc/posix-functions/duplocale.texi: Update platforms list.
14300         * doc/posix-functions/freelocale.texi: Likewise.
14301         * doc/posix-functions/newlocale.texi: Likewise.
14302         * doc/posix-functions/uselocale.texi: Likewise.
14303         * doc/posix-functions/isalnum_l.texi: Likewise.
14304         * doc/posix-functions/isalpha_l.texi: Likewise.
14305         * doc/posix-functions/isblank_l.texi: Likewise.
14306         * doc/posix-functions/iscntrl_l.texi: Likewise.
14307         * doc/posix-functions/isdigit_l.texi: Likewise.
14308         * doc/posix-functions/isgraph_l.texi: Likewise.
14309         * doc/posix-functions/islower_l.texi: Likewise.
14310         * doc/posix-functions/isprint_l.texi: Likewise.
14311         * doc/posix-functions/ispunct_l.texi: Likewise.
14312         * doc/posix-functions/isspace_l.texi: Likewise.
14313         * doc/posix-functions/isupper_l.texi: Likewise.
14314         * doc/posix-functions/iswalnum_l.texi: Likewise.
14315         * doc/posix-functions/iswalpha_l.texi: Likewise.
14316         * doc/posix-functions/iswblank_l.texi: Likewise.
14317         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14318         * doc/posix-functions/iswctype_l.texi: Likewise.
14319         * doc/posix-functions/iswdigit_l.texi: Likewise.
14320         * doc/posix-functions/iswgraph_l.texi: Likewise.
14321         * doc/posix-functions/iswlower_l.texi: Likewise.
14322         * doc/posix-functions/iswprint_l.texi: Likewise.
14323         * doc/posix-functions/iswpunct_l.texi: Likewise.
14324         * doc/posix-functions/iswspace_l.texi: Likewise.
14325         * doc/posix-functions/iswupper_l.texi: Likewise.
14326         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14327         * doc/posix-functions/isxdigit_l.texi: Likewise.
14328         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14329         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14330         * doc/posix-functions/strcoll_l.texi: Likewise.
14331         * doc/posix-functions/strfmon_l.texi: Likewise.
14332         * doc/posix-functions/strftime_l.texi: Likewise.
14333         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14334         * doc/posix-functions/strxfrm_l.texi: Likewise.
14335         * doc/posix-functions/tolower_l.texi: Likewise.
14336         * doc/posix-functions/toupper_l.texi: Likewise.
14337         * doc/posix-functions/towctrans_l.texi: Likewise.
14338         * doc/posix-functions/towlower_l.texi: Likewise.
14339         * doc/posix-functions/towupper_l.texi: Likewise.
14340         * doc/posix-functions/wcscoll_l.texi: Likewise.
14341         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14342         * doc/posix-functions/wctrans_l.texi: Likewise.
14343         * doc/posix-functions/wctype_l.texi: Likewise.
14344         * doc/glibc-functions/strptime_l.texi: Likewise.
14345         * doc/glibc-functions/strtod_l.texi: Likewise.
14346         * doc/glibc-functions/strtof_l.texi: Likewise.
14347         * doc/glibc-functions/strtol_l.texi: Likewise.
14348         * doc/glibc-functions/strtold_l.texi: Likewise.
14349         * doc/glibc-functions/strtoll_l.texi: Likewise.
14350         * doc/glibc-functions/strtoul_l.texi: Likewise.
14351         * doc/glibc-functions/strtoull_l.texi: Likewise.
14352         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14353         * doc/glibc-functions/wcstod_l.texi: Likewise.
14354         * doc/glibc-functions/wcstof_l.texi: Likewise.
14355         * doc/glibc-functions/wcstol_l.texi: Likewise.
14356         * doc/glibc-functions/wcstold_l.texi: Likewise.
14357         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14358         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14359         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14360
14361 2009-11-24  Bruno Haible  <bruno@clisp.org>
14362
14363         duplocale: Fix logic bug.
14364         * lib/duplocale.c: Don't include <langinfo.h>.
14365         (_NL_LOCALE_NAME): Remove macro.
14366         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14367         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14368
14369 2009-11-23  Jim Meyering  <meyering@redhat.com>
14370
14371         test-update-copyright: don't hard-code /usr/bin/perl
14372         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14373         perl to print the current year.  Gilles Espinasse reported that
14374         the replaced use of perl was hard-coded as /usr/bin/perl.
14375
14376 2009-11-23  Bruno Haible  <bruno@clisp.org>
14377
14378         duplocale: Add support for glibc 2.3.x.
14379         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14380
14381 2009-11-22  Bruno Haible  <bruno@clisp.org>
14382
14383         vasnprintf: Tiny optimization.
14384         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14385         MacOS X.
14386
14387 2009-11-22  Bruno Haible  <bruno@clisp.org>
14388
14389         Tests for module 'duplocale'.
14390         * modules/duplocale-tests: New file.
14391         * tests/test-duplocale.c: New file.
14392
14393         New module 'duplocale'.
14394         * m4/duplocale.m4: New file.
14395         * lib/locale.in.h (duplocale): New declaration.
14396         * lib/duplocale.c: New file.
14397         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14398         gl_LOCALE_H_DEFAULTS): New macros.
14399         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14400         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14401         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14402         REPLACE_DUPLOCALE.
14403         * modules/duplocale: New file.
14404         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14405
14406 2009-11-22  Bruno Haible  <bruno@clisp.org>
14407
14408         * modules/locale-tests (configure.ac): Test for newlocale function.
14409         * tests/test-locale.c: When the system has extended locale functions,
14410         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14411
14412         locale: Make locale_t available when possible.
14413         * lib/locale.in.h: Include <xlocale.h> when it exists.
14414         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14415         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14416         * modules/locale (Depends-on): Add extensions.
14417         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14418         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14419
14420 2009-11-22  Bruno Haible  <bruno@clisp.org>
14421
14422         Add comments.
14423         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14424         invocation.
14425         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14426         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14427         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14428
14429 2009-11-22  Bruno Haible  <bruno@clisp.org>
14430
14431         error: account for the possibility of freopen (stdout).
14432         * lib/error.c: Include <unistd.h>.
14433         (flush_stdout): New function, extracted from error and error_at_line.
14434         Determine stdout's fd dynamically.
14435         (error, error_at_line): Invoke flush_stdout.
14436         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14437         * modules/error (Depends-on): Add unistd.
14438
14439 2009-11-22  Bruno Haible  <bruno@clisp.org>
14440
14441         diffseq: Add comment.
14442         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14443
14444 2009-11-22  Jim Meyering  <meyering@redhat.com>
14445
14446         c-stack: avoid defining an unused static function
14447         * lib/c-stack.c (find_stack_direction): Do not define this function
14448         when it will not be used.
14449
14450         diffseq: avoid spurious gcc warnings
14451         * lib/diffseq.h (IF_LINT2): Define.
14452         (compareseq): Use it to initialize two members of "part".
14453         This avoids two used-uninitialized warnings.
14454
14455 2009-11-21  Jim Meyering  <meyering@redhat.com>
14456
14457         c-stack: avoid "ignoring return value of `write'" warning
14458         * lib/c-stack.c: Include "ignore-value.h".
14459         (die): Explicitly ignore each write return value.
14460         * modules/c-stack (Depends-on): Add ignore-value.
14461
14462 2009-11-21  Bruno Haible  <bruno@clisp.org>
14463
14464         diffseq: reduce scope of variable 'best'.
14465         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14466         variable, earlier used for two different purposes.
14467
14468 2009-11-21  Jim Meyering  <meyering@redhat.com>
14469
14470         diffseq: remove useless assignment to "best"
14471         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14472         assignment.  At that point "best" is already guaranteed to be zero.
14473
14474 2009-11-20  Eric Blake  <ebb9@byu.net>
14475
14476         build: mention ftp redirector in release announcements
14477         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14478         values that used to come from cfg.mk; mention FTP redirect URL.
14479         * build-aux/announce-gen: Mention the mirror list.
14480         Suggested by Karl Berry.
14481
14482         nanosleep: improve port to mingw
14483         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14485         LIB_NANOSLEEP, but only when needed.
14486         * modules/select (Link): Document LIBSOCKET.
14487         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14488         enough.
14489
14490         nanosleep: work around cygwin bug
14491         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14492         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14493         bug.
14494         (getnow): Delete, not needed.
14495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14496         LIB_CLOCK_GETTIME.
14497         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14498         clock-time, gettime.
14499         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14500         bug.
14501         * modules/nanosleep-tests: New test.
14502         * tests/test-nanosleep.c: New file.
14503
14504         sleep: work around cygwin bug
14505         * lib/sleep.c (rpl_sleep): Work around the bug.
14506         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14507         (gl_PREREQ_SLEEP): Delete unused macro.
14508         * modules/sleep (Depends-on): Add verify.
14509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14510         * modules/unistd (Makefile.am): Substitute witness.
14511         * lib/unistd.in.h (sleep): Update prototype.
14512         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14513         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14514         * modules/sleep-tests (Depends-on): Check for alarm.
14515
14516 2009-11-20  Jim Meyering  <meyering@redhat.com>
14517
14518         maint.mk: improve sc_prohibit_magic_number_exit
14519         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14520         so it does not match uses like System.exit(1).
14521         Add comments showing how to correct all offenders.
14522
14523 2009-11-19  Eric Blake  <ebb9@byu.net>
14524
14525         xalloc-die-tests: add missing library
14526         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14527
14528         test-xvasprintf: silence compiler warnings
14529         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14530         empty string from gcc.
14531
14532 2009-11-19  Jim Meyering  <meyering@redhat.com>
14533
14534         xfreopen: new module, from coreutils
14535         * modules/xfreopen: New module.
14536         * lib/xfreopen.c: New file.
14537         * lib/xfreopen.h: New file.
14538         * MODULES.html.sh (File stream based Input/Output"): Add it.
14539
14540 2009-11-19  Eric Blake  <ebb9@byu.net>
14541
14542         manywarnings: depend on warnings
14543         * modules/manywarnings (Depends-on): Add warnings.
14544
14545         build: avoid compiler warnings
14546         * lib/select.c (rpl_select): Delete unused variable.
14547         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14548
14549 2009-11-18  Eric Blake  <ebb9@byu.net>
14550
14551         tests: avoid false negative with --with-packager
14552         * tests/test-version-etc.sh: Discard packager information.
14553         * tests/test-argp-version-etc-1.sh: Likewise.
14554         Reported by Mike Frysinger.
14555
14556         utimens: fix regression on Solaris
14557         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14558         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14559         can only change fd timestamps via futimesat.  Instead, use an
14560         additional witness macro to avoid BSD bug.
14561         Reported by Jim Meyering.
14562
14563 2009-11-17  Eric Blake  <ebb9@byu.net>
14564
14565         usleep: use it to simplify tests
14566         * modules/stat-time-tests (Depends-on): Add usleep.
14567         (configure.ac): Drop usleep check.
14568         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14569         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14570         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14571         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14572         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14573         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14574         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14575         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14576         Likewise.
14577         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14578         * tests/test-lchown.h (nap): Likewise.
14579         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14580         * tests/test-stat-time.c (nap): Likewise.
14581         * tests/test-utimens-common.h (nap): Update comments.
14582
14583         usleep: new module
14584         * modules/usleep: New file.
14585         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14586         * lib/usleep.c (usleep): Likewise.
14587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14588         * modules/unistd (Makefile.am): Substitute witnesses.
14589         * lib/unistd.in.h (usleep): Add declaration.
14590         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14591         * MODULES.html.sh (Date and time): Likewise.
14592         * modules/usleep-tests (Depends-on): New test.
14593         * tests/test-usleep.c: New file.
14594
14595         chown: work around OpenBSD bug
14596         * lib/chown.c (rpl_chown): Work around the bug.
14597         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14598         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14599         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14600         * modules/chown (Depends-on): Add stdbool.
14601         * modules/lchown (Depends-on): Likewise.
14602         * doc/posix-functions/chown.texi (chown): Document the bug.
14603         * doc/posix-functions/lchown.texi (lchown): Likewise.
14604         * tests/test-lchown.h (test_chown): Relax test.
14605
14606         mkstemp: avoid conflict with C++ keyword template
14607         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14608         * lib/mkostemp.c (mkostemp): Likewise.
14609         * lib/mkostemps.c (mkostemps): Likewise.
14610         * lib/mkstemp.c (mkstemp): Likewise.
14611         * lib/mkstemps.c (mkstemps): Likewise.
14612
14613         xalloc-die-tests: optimize
14614         * tests/test-xalloc-die.sh: Reduce number of processes.
14615
14616 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14617
14618         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14619         patch from ludo@gnu.org (Ludovic Courtès).
14620
14621 2009-11-17  Jim Meyering  <meyering@redhat.com>
14622
14623         version-etc: use proper license string
14624         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14625         * modules/version-etc-fsf: Likewise.
14626
14627 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14628
14629         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14630         printed to stdout.  Deal with EOL differences.
14631
14632 2009-11-17  Eric Blake  <ebb9@byu.net>
14633
14634         unsetenv: work around Solaris bug
14635         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14636         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14637         Reported by Jim Meyering.
14638
14639         vasnprintf: avoid compiler warnings
14640         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14641         variables.
14642         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14643
14644 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14645
14646         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14647         settings since xalloc-die is no longer the self test,
14648         xalloc-die.sh is.
14649
14650 2009-11-17  Jim Meyering  <meyering@redhat.com>
14651
14652         test-xalloc-die.sh: make the code agree with the commit log
14653         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14654         at the end, just in case you happen to have a test-xalloc-die
14655         program in some other PATH directory.
14656
14657         test-xalloc-die.sh: fix a portability bug
14658         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14659         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14660         Otherwise, argv[0] (as often seen in diagnostics) would be too
14661         system-dependent, sometimes with, and sometimes without the leading "./".
14662
14663         version-etc-fsf: relax license to LGPLv3+
14664         * modules/version-etc-fsf (License): Relax license.
14665
14666 2009-11-16  Eric Blake  <ebb9@byu.net>
14667
14668         xalloc-die-tests: avoid printing null pointer
14669         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14670         shell script.
14671         * tests/test-xalloc-die.c (program_name): Declare.
14672         * tests/test-xalloc-die.sh (tmpfiles): New file.
14673
14674         setenv, unsetenv: work around various bugs
14675         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14676         (setenv) [HAVE_SETENV]: Work around bugs.
14677         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14678         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14679         for bugs.
14680         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14681         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14683         * modules/stdlib (Makefile.am): Update substitutions.
14684         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14685         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14686         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14687         * modules/setenv-tests: New test.
14688         * modules/unsetenv-tests: Likewise.
14689         * tests/test-setenv.c: New file.
14690         * tests/test-unsetenv.c: Likewise.
14691
14692 2009-11-16  Jim Meyering  <meyering@redhat.com>
14693
14694         version-etc: relax license to LGPLv3+
14695         * modules/version-etc (License): Relax license.
14696
14697         better AC_REQUIRE expanded-before-required-warning avoidance
14698         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14699         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14700         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14701         which is no longer needed.
14702
14703 2009-11-16  Eric Blake  <ebb9@byu.net>
14704
14705         test-freading: clean up temporary file
14706         * tests/test-freading.c (main): Remove file on success, and use
14707         ASSERT more liberally.
14708         Reported by Jim Meyering.
14709
14710 2009-11-16  Jim Meyering  <meyering@redhat.com>
14711
14712         avoid new AC_REQUIRE expanded-before-required warnings
14713         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14714         merely using it.
14715         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14716         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14717
14718 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14719
14720         * tests/test-xalloc-die.c: New file.
14721         * modules/xalloc-die-tests: New file.
14722         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14723         XFAIL_TESTS so it can be appended by modules.
14724
14725 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14726
14727         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14728         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14729
14730 2009-11-14  Eric Blake  <ebb9@byu.net>
14731
14732         fnmatch: avoid compiler warning
14733         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14734         to silence compiler warning about mismatch signedness in ?:.
14735         Reported by Robert Millan.
14736
14737         intprops: add double-inclusion guard
14738         * lib/intprops.h: Allow idempotent includes.
14739         Suggested by Bruce Korb.
14740
14741         openat: detect Solaris fchownat bug
14742         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14743         penalizing glibc chownat when only lchownat is broken.
14744         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14745         trailing slash bugs.
14746         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14747         * modules/openat-tests (Files): Include more files.
14748         (Depends-on): Add mgetgroups, sleep, stat-time.
14749         (configure.ac): Add additional checks.
14750         (Makefile.am): Build new test.
14751         * tests/test-fchownat.c: New file.
14752
14753         lchown: detect Solaris and FreeBSD bug
14754         * lib/lchown.c (rpl_lchown): Work around bug.
14755         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14757         * modules/unistd (Makefile.am): Populate it.
14758         * lib/unistd.in.h (lchown): Update declaration.
14759         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14760         * modules/lchown-tests: New file.
14761         * tests/test-lchown.h (test_lchown): Likewise.
14762         * tests/test-lchown.c (main): Likewise.
14763
14764         chown: detect Solaris and FreeBSD bug
14765         * lib/chown.c (rpl_chown): Work around bug.
14766         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14767         (gl_PREREQ_CHOWN): Delete.
14768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14769         * modules/unistd (Makefile.am): Populate it.
14770         * lib/unistd.in.h (chown): Update declaration.
14771         * lib/lchown.c (chown): Update client.
14772         * modules/lchown (Depends-on): Add lstat.
14773         * doc/posix-functions/chown.texi (chown): Document the bug.
14774         * doc/posix-functions/getgroups.texi (getgroups): Document
14775         getgroups pitfall.
14776         * modules/chown-tests: New file.
14777         * tests/test-chown.h (test_chown): Likewise.
14778         * tests/test-chown.c (main): Likewise.
14779
14780 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14781
14782         gnulib-tool: correctly detect absence of m4 directories
14783         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14784
14785 2009-11-14  Jim Meyering  <meyering@redhat.com>
14786
14787         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14788         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14789
14790 2009-11-14  John W. Eaton  <jwe@gnu.org>
14791
14792         strftime.h: wrap funtion declaration in extern "C" block
14793         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14794
14795 2009-11-13  Eric Blake  <ebb9@byu.net>
14796
14797         getgroups: avoid compiler warning
14798         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14799
14800         getgroups: work around FreeBSD bug
14801         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14802         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14803         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14804         * tests/test-getgroups.c (main): Fix buffer overrun.
14805
14806         getgroups: avoid compilation failure
14807         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14808         * modules/getgroups (Depends-on): Add stdint.
14809
14810 2009-11-13  Jim Meyering  <meyering@redhat.com>
14811
14812         test-getgroups: avoid compilation failure
14813         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14814
14815 2009-11-13  Eric Blake  <ebb9@byu.net>
14816
14817         mgetgroups: new module, taken from coreutils
14818         * modules/mgetgroups: New file.
14819         * lib/mgetgroups.h: Likewise.
14820         * lib/mgetgroups.c (mgetgroups): Likewise.
14821         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14822         * MODULES.html.sh (Users and groups): Mention it.
14823
14824         getgroups: don't expose GETGROUPS_T to user
14825         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14826         an element at a time if GETGROUPS_T is wrong size.
14827         * lib/getugroups.h (getugroups): Change signature.
14828         * lib/unistd.in.h (getgroups): Likewise.
14829         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14830         signature needs fixing.
14831         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14832         AC_TYPE_GETGROUPS.
14833         * modules/group-member (Depends-on): Add getgroups.
14834         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14835         (group_member): Rely on getgroups replacement.
14836         * lib/getugroups.c (getugroups): Use gid_t.
14837         * tests/test-getgroups.c (main): Likewise.
14838         * NEWS: Mention the signature change.
14839         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14840         problem with signature.
14841         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14842         GETGROUPS_T is still useful for setgroups.
14843
14844         getgroups, getugroups: provide stubs for mingw
14845         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14846         * lib/getugroups.c (getugroups): Likewise.
14847         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14848         function.  Modernize replacement scheme.
14849         (gl_PREREQ_GETGROUPS): Delete.
14850         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14851         * modules/getgroups (configure.ac): Declare witness.
14852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14853         * modules/unistd (Depends-on): Substitute witness.
14854         * lib/unistd.in.h (getgroups): Declare replacement.
14855
14856         getgroups: avoid calling exit
14857         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14858         drop xalloc.
14859         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14860         dependencies.
14861         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14862         exiting, in the rare case of malloc failure.
14863
14864         getgroups: fix logic error
14865         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14866         has more than 20 groups.
14867         * modules/getgroups-tests: New test.
14868         * tests/test-getgroups.c: New file.
14869
14870 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14871
14872         * tests/test-base64.c: Improve.
14873
14874 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14875
14876         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14877         Blake <ebb9@byu.net>.
14878
14879 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14880
14881         * tests/test-xvasprintf.c: Add %s%s related checks.
14882
14883 2009-11-12  Eric Blake  <ebb9@byu.net>
14884
14885         version-etc: match standards.texi style
14886         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14887         and use <> only for URLs.
14888
14889 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14890
14891         fts: do not fail on a submount during traversal
14892         * lib/fts.c (fts_build): Read the stat info again after opening
14893         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14894         Original report at http://bugzilla.redhat.com/501848.
14895
14896 2009-11-12  Jim Meyering  <meyering@redhat.com>
14897
14898         bootstrap: sync from coreutils
14899         * build-aux/bootstrap (bootstrap_epilogue): New function.
14900         Use git_modules_config in one more place.  This make bootstrap's
14901         --gnulib-srcdir option more useful for testing.
14902
14903         bootstrap: generalize autoheader check
14904         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14905         AC_CONFIG_HEADERS.
14906
14907 2009-11-11  Eric Blake  <ebb9@byu.net>
14908
14909         mkfifoat: use new modules for Solaris and BSD bugs
14910         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14911         * lib/mkfifoat.c (mknodat): Split...
14912         * lib/mknodat.c (mknodat): ...into new file.
14913         * modules/mkfifoat (Files): Ship new file.
14914         (Depends-on): Add mkfifo, mknod.
14915         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14916         (Depends-on): Add symlink.
14917         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14918         redundant with test_mkfifo.h.
14919         (do_mkfifoat, do_mknodat): New helpers.
14920
14921         mknod: new module
14922         * modules/mknod: New file.
14923         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14924         * lib/mknod.c (mknod): Likewise.
14925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14926         defaults.
14927         * modules/sys_stat (Makefile.am): Substitute them.
14928         * lib/sys_stat.in.h (mknod): Declare replacement.
14929         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14930         Document it.
14931         * doc/posix-functions/mknod.texi (mknod): Likewise.
14932         * modules/mknod-tests: New test.
14933         * tests/test-mknod.c: Likewise.
14934
14935         mkfifo: new module
14936         * modules/mkfifo: New file.
14937         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14938         * lib/mkfifo.c (mkfifo): Likewise.
14939         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14940         defaults.
14941         * modules/sys_stat (Makefile.am): Substitute them.
14942         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14943         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14944         Document it.
14945         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14946         * modules/mkfifo-tests: New test.
14947         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14948         from test-mkfifoat.c.
14949         * tests/test-mkfifo.c: New file.
14950
14951         readlink: detect FreeBSD bug
14952         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14953         slash on symlink.
14954         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14955         * tests/test-readlink.h (test_readlink): Enhance test.
14956
14957         symlink: detect FreeBSD bug
14958         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14959         slash on symlink.
14960         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14961         * tests/test-symlink.h (test_symlink): Enhance test.
14962
14963 2009-11-10  Eric Blake  <ebb9@byu.net>
14964
14965         link: detect FreeBSD bug
14966         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14967         symlink.
14968         * doc/posix-functions/link.texi (link): Document the bug.
14969         * tests/test-link.h (test_link): Enhance test.
14970         * tests/test-linkat.c (main): Update caller.
14971
14972         unlink, remove: detect FreeBSD bug
14973         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14974         slash on symlink.
14975         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14976         * doc/posix-functions/remove.texi (remove): Likewise.
14977         * tests/test-unlink.h (test_unlink): Enhance test.
14978         * tests/test-remove.c (main): Likewise.
14979
14980 2009-11-09  Eric Blake  <ebb9@byu.net>
14981
14982         rename: detect FreeBSD bug
14983         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14984         slash on symlink.
14985         * modules/renameat-tests (Depends-on): Add filenamecat.
14986         * tests/test-rename.h (test_rename): Allow one more errno.
14987         * tests/test-renameat.c (main): Likewise.
14988         * doc/posix-functions/rename.texi (rename): Document the bug.
14989
14990         open: detect FreeBSD bug
14991         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14992         symlink.
14993         * doc/posix-functions/open.texi (open): Document the bug.
14994         * doc/posix-functions/utimes.texi (utimes): Likewise.
14995         * tests/test-open.h (test_open): Add parameters, and test symlink
14996         handling.
14997         * tests/test-open.c (main): Adjust caller.
14998         * tests/test-fcntl-safer.c (main): Likewise.
14999         * modules/open-tests (Depends-on): Add stdbool, symlink.
15000         * modules/fcntl-safer-tests (Depends-on): Likewise.
15001         * tests/test-openat.c (main): Add test-open tests.
15002
15003         stat: detect FreeBSD bug
15004         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15005         symlink.
15006         * doc/posix-functions/stat.texi (stat): Document the bug.
15007         * tests/test-stat.h (test_stat_func): Add argument.
15008         * tests/test-stat.c (main): Adjust caller.
15009         * tests/test-fstatat.c (main): Likewise.
15010         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15011         Reported by Jim Meyering.
15012
15013 2009-11-09  James Youngman  <jay@gnu.org>
15014
15015         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15016         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15017
15018 2009-11-08  Jim Meyering  <meyering@redhat.com>
15019
15020         utimens: remove invalid futimesat call
15021         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15022         It used the file descriptor of the target file as the DIR_FD
15023         parameter and NULL as the file name.  That caused failure with
15024         errno == EFAULT on FreeBSD-8.0-rc2
15025
15026 2009-11-07  Eric Blake  <ebb9@byu.net>
15027
15028         fflush, freadseek: use fseeko, not fseek
15029         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15030         (clear_ungetc_buffer): Avoid potential problems on large files.
15031         * lib/freadseek.c (freadseek): Likewise.
15032         * modules/freadseek (Depends-on): Add fseeko.
15033         * modules/fseek (configure.ac): Set a witness.
15034         * tests/test-fflush.c (main): Use fseeko.
15035         * tests/test-fpurge.c (fseek): Disable link warning.
15036         * tests/test-freadable.c (fseek): Likewise.
15037         * tests/test-freading.c (fseek): Likewise.
15038         * tests/test-fseeko.c (fseek): Likewise.
15039         * tests/test-ftell.c (fseek): Likewise.
15040         * tests/test-ftello.c (fseek): Likewise.
15041         * tests/test-fwritable.c (fseek): Likewise.
15042         * tests/test-fwriting.c (fseek): Likewise.
15043
15044 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15045
15046         * modules/memchr (Depends-on): Drop getpagesize dependency.
15047
15048 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15049
15050         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15051         Reported by Ludovic Courtès.
15052         * build-aux/pmccabe2html: Improve example usage.
15053         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15054
15055 2009-11-06  Jim Meyering  <meyering@redhat.com>
15056
15057         do-release-commit-and-tag: New module.
15058         Automate the release-commit and tag process.
15059         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15060         * modules/do-release-commit-and-tag: New file.
15061         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15062
15063 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15064
15065         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15066         because test-select.c uses inet_pton.
15067
15068 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15069
15070         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15071         GETADDRINFO_LIB.  Bump serial number.
15072         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15073         Suggested by Eric Blake <ebb9@byu.net>.
15074
15075 2009-11-05  Eric Blake  <ebb9@byu.net>
15076
15077         strtod: detect darwin bug
15078         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15079         Reported by Leo Davis.
15080
15081         freopen-safer: new module
15082         * modules/freopen-safer: New module.
15083         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15084         * lib/freopen-safer.c (freopen_safer): New file.
15085         * lib/stdio-safer.h (freopen_safer): New declaration.
15086         * lib/stdio--.h (freopen): New override.
15087         * MODULES.html.sh (File stream based Input/Output): Mention it.
15088         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15089         freopen-safer module.
15090         * doc/posix-functions/stderr.texi (stderr): Likewise.
15091         * doc/posix-functions/stdin.texi (stdin): Likewise.
15092         * doc/posix-functions/stdout.texi (stdout): Likewise.
15093         * modules/freopen-safer-tests: New test.
15094         * tests/test-reopen-safer.c: New file.
15095
15096 2009-11-05  Jim Meyering  <meyering@redhat.com>
15097
15098         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15099         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15100
15101 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15102
15103         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15104
15105 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15106
15107         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15108
15109 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15110
15111         Fix link error.
15112         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15113         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15114
15115 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15116
15117         * tests/test-func.c: Also test value of __func__.
15118
15119 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15120
15121         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15122         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15123
15124 2009-11-05  Bruno Haible  <bruno@clisp.org>
15125
15126         Fix link error.
15127         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15128         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15129         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15130
15131 2009-11-05  Bruno Haible  <bruno@clisp.org>
15132
15133         Tests for module 'inet_pton'.
15134         * modules/inet_pton-tests: New file.
15135         * tests/test-inet_pton.c: New file.
15136
15137 2009-11-05  Bruno Haible  <bruno@clisp.org>
15138
15139         Tests for module 'inet_ntop'.
15140         * modules/inet_ntop-tests: New file.
15141         * tests/test-inet_ntop.c: New file.
15142
15143 2009-11-04  Eric Blake  <ebb9@byu.net>
15144
15145         stdlib-safer: wrap all mkstemp variants
15146         * modules/mkostemp (configure.ac): Set witness.
15147         * modules/mkostemps (configure.ac): Likewise.
15148         * modules/mkstemps (configure.ac): Likewise.
15149         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15150         (mkstemps_safer): Wrap more functions.
15151         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15152         wrapping.
15153         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15154         (mkstemps_safer): Implement the wrappers.
15155
15156         mkstemps, mkostemps: new modules
15157         * modules/mkostemps: New module.
15158         * modules/mkstemps: Likewise.
15159         * lib/mkostemps.c (mkostemps): New file.
15160         * lib/mkstemps.c (mkstemps): Likewise.
15161         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15162         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15164         * modules/stdlib (Makefile.am): Substitute them.
15165         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15166         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15167         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15168         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15169         * MODULES.html.sh (File system functions): Mention them.
15170
15171         tempname: resync from glibc
15172         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15173         same values for __GT_FILE as glibc.  Abort even when assertions
15174         are disabled.
15175         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15176         match its value otherwise.  Allow idempotent inclusion.
15177         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15178         * lib/mkostemp.c (mkostemp): Likewise.
15179         * lib/mkstemp.c (mkstemp): Likewise.
15180         * lib/tmpfile.c (tmpfile): Likewise.
15181         * NEWS: Document this.
15182
15183         utimens: fix use of futimens on older Linux
15184         * lib/utimens.c (fdutimens): Use updated, rather than original,
15185         timespec to avoid bug in older Linux kernel.
15186         Reported by Simon Josefsson.
15187
15188 2009-11-04  Bruno Haible  <bruno@clisp.org>
15189
15190         Make num_processors more flexible and consistent.
15191         * lib/nproc.h (enum nproc_query): New type.
15192         (num_processors): Add a 'query' argument.
15193         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15194         (num_processors): Add a 'query' argument. Test the value of the
15195         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15196         mingw, count the number of CPUs available for the current process.
15197         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15198         Check for sched_getaffinity and sched_getaffinity_np.
15199         * modules/nproc (Depends-on): Add c-ctype, extensions.
15200         * NEWS: Mention the change.
15201
15202 2009-11-03  Bruno Haible  <bruno@clisp.org>
15203
15204         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15205
15206 2009-11-03  Jim Meyering  <meyering@redhat.com>
15207
15208         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15209         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15210         if it is defined.
15211
15212 2009-11-02  Eric Blake  <ebb9@byu.net>
15213
15214         mktime, timegm: share common declaration
15215         * lib/mktime-internal.h: New file.
15216         * lib/mktime.c: Use it rather than open-coding a declaration.
15217         * lib/timegm.c: Likewise.
15218         * modules/mktime (Files): Ship it.
15219         * modules/timegm (Files): Likewise.
15220         Suggested by Bruno Haible.
15221
15222         test-update-copyright: update test to match script changes
15223         * tests/test-update-copyright.sh: Avoid hard-coding perl
15224         location.  Don't update *.bak created by earlier runs.
15225
15226 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15227             Simon Josefsson  <simon@josefsson.org>
15228             Bruno Haible  <bruno@clisp.org>
15229
15230         Fix link error on Solaris 8.
15231         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15232         also in libnsl. Define also INET_PTON_LIB.
15233         * modules/inet_pton (Link): New section.
15234
15235 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15236             Bruno Haible  <bruno@clisp.org>
15237
15238         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15239         * modules/inet_ntop (Link): New section.
15240         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15241
15242 2009-11-02  Eric Blake  <ebb9@byu.net>
15243
15244         maint: avoid compiler warnings in m4 macros
15245         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15247
15248 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15249
15250         * m4/pmccabe2html.m4: Remove file.
15251         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15252         function.  Change maintainer.
15253         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15254         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15255         Courtès).
15256
15257 2009-10-31  Eric Blake  <ebb9@byu.net>
15258
15259         fseeko: fix m4 regression
15260         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15261         regression from 2009-10-27.
15262         Reported by Ralf Wildenhues.
15263
15264 2009-10-31  Jim Meyering  <meyering@redhat.com>
15265
15266         inttostr: aesthetics and improved (compile-time) safety
15267         Define inttype_is_signed rather than inttype_is_unsigned,
15268         since the sole use is via "#if inttype_is_signed".
15269         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15270         inttype_is_unsigned.
15271         * lib/offtostr.c (inttype_is_signed): Likewise.
15272         * lib/uinttostr.c (inttype_is_signed): Likewise.
15273         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15274         * lib/inttostr.c (inttostr): Use verify to cross-check the
15275         inttype_is_signed value and the signedness of the actual type.
15276         * modules/inttostr (Depends-on): Add verify.
15277
15278 2009-10-30  Eric Blake  <ebb9@byu.net>
15279
15280         build: avoid compiler warnings
15281         * lib/fchmodat.c (lchmod): Mark unused variables.
15282         * lib/getopt.c (_getopt_initialize): Likewise.
15283         * lib/mktime.c (__mktime_internal): Provide prototype.
15284         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15285         older gcc that do not understand #pragma GCC diagnostic.
15286         * lib/uinttostr.c (inttype_is_unsigned): Define.
15287         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15288
15289 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15290
15291         stat: fix compilation on AIX
15292         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15293         only see struct stat64.
15294
15295 2009-10-30  Eric Blake  <ebb9@byu.net>
15296
15297         exclude: make more robust
15298         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15299         rather than masking a coding bug.
15300         Suggested by Bruno Haible.
15301
15302 2009-10-30  Jim Meyering  <meyering@redhat.com>
15303
15304         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15305         Rather than putting #!/usr/bin/perl on the first line,
15306         start with a variant of what's recommended by "man perlrun" that
15307         invokes the first "perl" program from your shell's search path.
15308         * build-aux/gitlog-to-changelog: Replace #!... as above.
15309         Add a "Local Variables" perl mode setting.
15310         Prompted by a patch from Ludovic Courtès.
15311         Improved by Eric Blake.
15312         * build-aux/useless-if-before-free: Likewise.
15313         * build-aux/announce-gen: Likewise.
15314         * build-aux/update-copyright: Likewise.
15315
15316 2009-10-29  Eric Blake  <ebb9@byu.net>
15317
15318         filenamecat-lgpl: adjust clients
15319         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15320         filenamecat.
15321         * modules/renameat (Depends-on): Likewise.
15322
15323         filenamecat: split into filenamecat-lgpl
15324         * modules/filenamecat-lgpl: New module.
15325         * modules/filenamecat (Files): Move library-safe files into
15326         filenamecat-lgpl.
15327         (Depends-on): Add filenamecat-lgpl.
15328         (configure.ac): Declare witness.
15329         * lib/filenamecat.h (file_name_concat): Only declare when using
15330         GPL module.
15331         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15332         Move...
15333         * lib/filenamecat-lgpl.c: ...into new file.
15334         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15335         (gl_FILE_NAME_CONCAT): Use it.
15336         * MODULES.html.sh (File system functions): Mention new module.
15337
15338         argp: avoid memory leak
15339         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15340         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15341         base_name, since the latter malloc()s and can call exit().
15342         Leak introduced 2006-07-03.
15343
15344         dirname-lgpl: adjust clients that don't need full dirname
15345         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15346         * modules/filenamecat (Depends-on): Likewise.
15347         * modules/linkat (Depends-on): Likewise.
15348         * modules/mkancesdirs (Depends-on): Likewise.
15349         * modules/mkdir (Depends-on): Likewise.
15350         * modules/openat (Depends-on): Likewise.
15351         * modules/savewd (Depends-on): Likewise.
15352         * modules/rename (Depends-on): Likewise.
15353         (License): Relax license.
15354         * modules/mkdir-tests (Depends-on): Drop progname.
15355         (Makefile.am): Delete unneeded LDADD.
15356         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15357
15358         dirname: split into dirname-lgpl
15359         * modules/dirname-lgpl: New module.
15360         * modules/dirname (Files): Move library-safe files into
15361         dirname-lgpl.
15362         (Depends-on): Add dirname-lgpl.
15363         (configure.ac): Declare witness.
15364         * modules/double-slash-root (License): Relax license.
15365         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15366         module.
15367         * lib/dirname.c (dir_len, mdir_name): Move...
15368         * lib/dirname-lgpl.c: ...into new file.
15369         * lib/basename.c (last_component, base_len): Move...
15370         * lib/basename-lgpl.c: ...into new file.
15371         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15372         (gl_DIRNAME): Use it.
15373         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15374         Mention new module.
15375         * modules/dirname-tests (Depends-on): Add progname.
15376         * tests/test-dirname.c (program_name): Delete.
15377
15378         mkdir: make safe for libraries
15379         * modules/mkdir (Depends-on): Drop xalloc.
15380         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15381         exit.
15382
15383         tests: avoid some compiler warnings
15384         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15385         literals.
15386         * tests/test-memchr.c (main): Avoid type mismatch.
15387         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15388         * tests/test-base64.c (main): Likewise.
15389         * tests/test-getdelim.c (main): Likewise.
15390         * tests/test-gethostname.c (main): Likewise.
15391         * tests/test-getline.c (main): Likewise.
15392         * tests/test-netinet_in.c (main): Likewise.
15393         * tests/test-select.c (open_server_socket, main): Likewise.
15394         * tests/test-select-stdin.c (main): Likewise.
15395         * tests/test-sockets.c (main): Likewise.
15396         * tests/test-strsignal.c (main): Likewise.
15397         * tests/test-sys_select.c (main): Likewise.
15398         * tests/test-sys_socket.c (main): Likewise.
15399         * tests/test-u64.c (main): Likewise.
15400         * tests/test-xfprintf-posix.c (main): Likewise.
15401         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15402
15403         sockets: avoid compiler warning
15404         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15405
15406         maint: detect usage(1) and other suspicious exits
15407         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15408
15409 2009-10-29  Jim Meyering  <meyering@redhat.com>
15410
15411         timespec: long-to-int truncation could make timespec_cmp malfunction
15412         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15413         a multiple of 2^32 nanoseconds as no difference.
15414
15415 2009-10-28  Jim Meyering  <meyering@redhat.com>
15416
15417         fprintftime: wrap macro code argument in "do {...} while(0)"
15418         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15419         cpy macro must be a statement that can be followed by a semicolon.
15420         Now that the else clause contains a comment and is hence longer
15421         than one line, I require curly braces.  That in turn requires
15422         that we wrap this code block in the standard do...while(0).
15423
15424         fprintftime: remove stray semicolon from previous change
15425         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15426
15427         fprintftime: avoid a warning about ignored fwrite return value
15428         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15429         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15430         that is unsafe.
15431         * modules/fprintftime (Depends-on): Add ignore-value.
15432
15433         exclude: avoid an unwarranted warning
15434         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15435
15436 2009-10-27  Eric Blake  <ebb9@byu.net>
15437
15438         fseek: avoid compilation failure when fflush is replaced
15439         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15440         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15441         module is in use.
15442         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15443         module is not in use; since REPLACE_FSEEK worked otherwise.
15444         (GNULIB_FTELLO): Likewise for ftell.
15445         Reported by Ian Beckwith and others.
15446
15447 2009-10-27  Bruno Haible  <bruno@clisp.org>
15448
15449         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15450         Reported by Jim Meyering.
15451
15452 2009-10-27  Jim Meyering  <jim@meyering.net>
15453             Bruno Haible  <bruno@clisp.org>
15454
15455         Avoid warning despite dropping the return value of fwrite.
15456         * lib/unicodeio.c: Include ignore-value.h.
15457         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15458         * modules/unicodeio (Depends-on): Add ignore-value.
15459
15460 2009-10-26  Eric Blake  <ebb9@byu.net>
15461
15462         areadlinkat: fix fallback path
15463         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15464         pointer and zero.
15465
15466 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15467
15468         Use a better IO block size for modern systems
15469         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15470         * lib/md2.c: Likewise.
15471         * lib/md4.c: Likewise.
15472         * lib/md5.c: Likewise.
15473         * lib/sha1.c: Likewise.
15474         * lib/sha256.c: Likewise.
15475         * lib/sha512.c: Likewise.
15476
15477 2009-10-22  Eric Blake  <ebb9@byu.net>
15478
15479         tests: avoid several compiler warnings
15480         * tests/test-getcwd.c (main): Avoid buffer underflow.
15481         * tests/test-getdate.c (main): String literals are not safe with
15482         putenv, so use setenv.  Declare unused argument.
15483         * modules/getdate-tests (Depends-on): Add setenv.
15484         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15485         problems with string literals in char *.
15486         * tests/test-hash.c (main): Avoid shadowing declaration.
15487         (insert_new): Treat string literals as char const *.
15488         * tests/test-getopt.h (test_getopt): Likewise.
15489         (getopt_loop): Alter types to minimize casting elsewhere.
15490         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15491         (test_getopt_long_posix): Likewise.
15492         (do_getopt_long): Add wrapper to minimize casting.
15493         * tests/test-atexit.c (clear_temp_file): Use void.
15494         * tests/test-areadlink-with-size.c (main): Declare unused
15495         arguments.
15496         * tests/test-areadlink.c (main): Likewise.
15497         * tests/test-areadlinkat-with-size.c (main): Likewise.
15498         * tests/test-areadlinkat.c (main): Likewise.
15499         * tests/test-canonicalize-lgpl.c (main): Likewise.
15500         * tests/test-canonicalize.c (main): Likewise.
15501         * tests/test-dirent-safer.c (main): Likewise.
15502         * tests/test-dirname.c (main): Likewise.
15503         * tests/test-dup2.c (main): Likewise.
15504         * tests/test-fchdir.c (main): Likewise.
15505         * tests/test-fcntl-h.c (main): Likewise.
15506         * tests/test-fcntl-safer.c (main): Likewise.
15507         * tests/test-fdopendir.c (main): Likewise.
15508         * tests/test-fdutimensat.c (main): Likewise.
15509         * tests/test-fflush.c (main): Likewise.
15510         * tests/test-filenamecat.c (main): Likewise.
15511         * tests/test-filevercmp.c (main): Likewise.
15512         * tests/test-fopen-safer.c (main): Likewise.
15513         * tests/test-fopen.c (main): Likewise.
15514         * tests/test-fpending.c (main): Likewise.
15515         * tests/test-fpurge.c (main): Likewise.
15516         * tests/test-freading.c (main): Likewise.
15517         * tests/test-fstatat.c (main): Likewise.
15518         * tests/test-fsync.c (main): Likewise.
15519         * tests/test-futimens.c (main): Likewise.
15520         * tests/test-getndelim2.c (main): Likewise.
15521         * tests/test-gettimeofday.c (main): Likewise.
15522         * tests/test-getopt.c (main): Likewise.
15523         * tests/test-i-ring.c (main): Likewise.
15524         * tests/test-inttypes.c (main): Likewise.
15525         * tests/test-link.c (main): Likewise.
15526         * tests/test-lstat.c (main): Likewise.
15527         * tests/test-math.c (main): Likewise.
15528         * tests/test-md5.c (main): Likewise.
15529         * tests/test-memchr2.c (main): Likewise.
15530         * tests/test-memrchr.c (main): Likewise.
15531         * tests/test-mkdir.c (main): Likewise.
15532         * tests/test-mkdirat.c (main): Likewise.
15533         * tests/test-mkfifoat.c (main): Likewise.
15534         * tests/test-open.c (main): Likewise.
15535         * tests/test-openat-safer.c (main): Likewise.
15536         * tests/test-openat.c (main): Likewise.
15537         * tests/test-quotearg.c (main): Likewise.
15538         * tests/test-rawmemchr.c (main): Likewise.
15539         * tests/test-readlink.c (main): Likewise.
15540         * tests/test-remove.c (main): Likewise.
15541         * tests/test-rename.c (main): Likewise.
15542         * tests/test-renameat.c (main): Likewise.
15543         * tests/test-rmdir.c (main): Likewise.
15544         * tests/test-sha1.c (main): Likewise.
15545         * tests/test-signal.c (main): Likewise.
15546         * tests/test-sigaction.c (main): Likewise.
15547         * tests/test-stat.c (main): Likewise.
15548         * tests/test-stat-time.c (main): Likewise.
15549         * tests/test-stddef.c (main): Likewise.
15550         * tests/test-stdint.c (main): Likewise.
15551         * tests/test-stdio.c (main): Likewise.
15552         * tests/test-stdlib.c (main): Likewise.
15553         * tests/test-strchrnul.c (main): Likewise.
15554         * tests/test-strerror.c (main): Likewise.
15555         * tests/test-string.c (main): Likewise.
15556         * tests/test-strtod.c (main): Likewise.
15557         * tests/test-strverscmp.c (main): Likewise.
15558         * tests/test-symlink.c (main): Likewise.
15559         * tests/test-symlinkat.c (main): Likewise.
15560         * tests/test-sys_stat.c (main): Likewise.
15561         * tests/test-sys_time.c (main): Likewise.
15562         * tests/test-time.c (main): Likewise.
15563         * tests/test-unistd.c (main): Likewise.
15564         * tests/test-unlink.c (main): Likewise.
15565         * tests/test-unlinkat.c (main): Likewise.
15566         * tests/test-utimens.c (main): Likewise.
15567         * tests/test-utimensat.c (main): Likewise.
15568         * tests/test-version-etc.c (main): Likewise.
15569         * tests/test-wchar.c (main): Likewise.
15570         * tests/test-wctype.c (main): Likewise.
15571         * tests/test-xprintf-posix.c (main): Likewise.
15572         * tests/test-posixtm.c (main): Likewise.
15573         (STREQ): Delete unused macro.
15574         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15575         shadowed variables.
15576         * tests/test-memchr.c (main): Likewise.
15577
15578 2009-10-21  Eric Blake  <ebb9@byu.net>
15579
15580         areadlinkat: avoid failure on older glibc
15581         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15582         rather than mis-comparing 0 against FUNC_RESULT of char*.
15583
15584 2009-10-21  Bruno Haible  <bruno@clisp.org>
15585
15586         * modules/stpncpy (License): Relicense under LGPLv2+.
15587         Reported by David Lutterkort <lutter@redhat.com>.
15588
15589 2009-10-20  Eric Blake  <ebb9@byu.net>
15590
15591         utimensat: work around Solaris 9 bug
15592         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15593         has trailing slash bugs.
15594         * tests/test-lutimens.h (test_lutimens): Enhance test.
15595         * tests/test-utimens.h (test_utimens): Likewise.
15596         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15597         * doc/posix-functions/utimes.texi (utimes): Likewise.
15598         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15599         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15600         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15601         * doc/posix-functions/futimens.texi (futimens): Likewise.
15602
15603         fdutimensat: new module
15604         * modules/fdutimensat: New file.
15605         * lib/fdutimensat.c (fdutimensat): Likewise.
15606         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15607         * MODULES.html.sh (File system functions): Mention module.
15608         * modules/fdutimensat-tests: New test.
15609         * tests/test-fdutimensat.c: Likewise.
15610
15611         doc: regenerate INSTALL
15612         * doc/INSTALL: Reflect recent autoconf update.
15613         * doc/INSTALL.ISO: Likewise.
15614         * doc/INSTALL.UTF-8: Likewise.
15615
15616 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15617
15618         acl: warn if ACL support is not detected
15619         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15620
15621 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15622
15623         * lib/nproc.h: Add extern "C" block for C++.
15624
15625 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15626             Bruno Haible  <bruno@clisp.org>
15627
15628         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15629         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15630         * doc/posix-functions/isalpha.texi: Likewise.
15631         * doc/posix-functions/isblank.texi: Likewise.
15632         * doc/posix-functions/iscntrl.texi: Likewise.
15633         * doc/posix-functions/isdigit.texi: Likewise.
15634         * doc/posix-functions/isgraph.texi: Likewise.
15635         * doc/posix-functions/islower.texi: Likewise.
15636         * doc/posix-functions/isprint.texi: Likewise.
15637         * doc/posix-functions/ispunct.texi: Likewise.
15638         * doc/posix-functions/isspace.texi: Likewise.
15639         * doc/posix-functions/isupper.texi: Likewise.
15640         * doc/posix-functions/isxdigit.texi: Likewise.
15641
15642 2009-10-18  Bruno Haible  <bruno@clisp.org>
15643
15644         Tests for module 'isblank'.
15645         * modules/isblank-tests: New file.
15646         * tests/test-isblank.c: New file.
15647
15648         New module 'isblank'.
15649         * lib/isblank.c: New file.
15650         * m4/isblank.m4: New file.
15651         * modules/isblank: New file.
15652         * doc/posix-functions/isblank.texi: Mention the new module.
15653
15654 2009-10-18  Bruno Haible  <bruno@clisp.org>
15655
15656         New module 'ctype'.
15657         * lib/ctype.in.h: New file.
15658         * m4/ctype.m4: New file.
15659         * modules/ctype: New file.
15660         * doc/posix-headers/ctype.texi: Mention the new module.
15661
15662 2009-10-18  Jim Meyering  <meyering@redhat.com>
15663
15664         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15665         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15666         right after its initialization, rather than farther down.
15667         Keeping these in close proximity makes it easier to ensure
15668         that each such variable is initialized.  E.g.,
15669
15670             LIB_CLOCK_GETTIME=
15671             AC_SUBST([LIB_CLOCK_GETTIME])
15672
15673         This change also increments these serial numbers.
15674         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15675         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15677
15678 2009-10-18  Bruno Haible  <bruno@clisp.org>
15679
15680         Don't let environment variables perturb build.
15681         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15682         (gl_PREREQ_GETHRXTIME): ... not here.
15683
15684 2009-10-18  Bruno Haible  <bruno@clisp.org>
15685
15686         Avoid symlink attack in localcharset module.
15687         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15688         (O_NOFOLLOW): Define fallback.
15689         (get_charset_aliases): Don't open the file if it is a symbolic link.
15690         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15691         gl_FCNTL_H.
15692         (gl_FCNTL_H): Require it.
15693         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15694         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15695         Reported by Fergal Glynn <fglynn@veracode.com>.
15696
15697 2009-10-18  Bruno Haible  <bruno@clisp.org>
15698
15699         Implement nproc for mingw.
15700         * lib/nproc.c: Include <windows.h>
15701         (num_processors): On native Windows platforms, try GetSystemInfo.
15702
15703 2009-10-18  Bruno Haible  <bruno@clisp.org>
15704
15705         Implement nproc for IRIX.
15706         * lib/nproc.c: Include <sys/sysmp.h>.
15707         (num_processors): On IRIX systems, try sysmp.
15708         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15709
15710 2009-10-18  Bruno Haible  <bruno@clisp.org>
15711
15712         Implement nproc for HP-UX.
15713         * lib/nproc.c: Include <sys/pstat.h>
15714         (num_processors): On HP-UX systems, try pstat_getdynamic.
15715         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15716         pstat_getdynamic.
15717
15718 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15719             Bruno Haible  <bruno@clisp.org>
15720
15721         Implement nproc for NetBSD, OpenBSD.
15722         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15723         (ARRAY_SIZE): New macro.
15724         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15725         * m4/nproc.m4: New file.
15726         * modules/nproc (Files): Add m4/nproc.m4.
15727         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15728         (Makefile.am): Instead, augment lib_SOURCES.
15729
15730 2009-10-18  Bruno Haible  <bruno@clisp.org>
15731
15732         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15733         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15734         sys/param.h.
15735
15736 2009-10-16  Eric Blake  <ebb9@byu.net>
15737
15738         utimensat: new module
15739         * modules/utimensat: New file.
15740         * lib/utimensat.c (utimensat): Likewise.
15741         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15742         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15743         so we can work around Linux bugs.
15744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15745         * modules/sys_stat (Makefile.am): Substitute them.
15746         * lib/sys_stat.in.h (utimensat): Declare it.
15747         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15748         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15749         * modules/utimensat-tests: New test.
15750         * tests/test-utimensat.c: Likewise.
15751
15752         utimens: let lutimens work on non-symlinks
15753         * lib/utimens.c (lutimens): Fall back to utimens rather than
15754         failing with ENOSYS, when file is not a symlink.
15755         (utimens): Reduce redirection.
15756         * tests/test-lutimens.h (test_lutimens): Update test to cover
15757         non-symlinks.
15758         * tests/test-utimens.h (test_utimens): Update test to cover
15759         symlinks.
15760         * tests/test-utimens.c (main): Update caller.
15761
15762         utimens: cache whether utimensat syscall works
15763         * lib/utimens.c (utimensat_works_really): New cache variable.
15764         (fdutimens, lutimens): Use it to avoid failing syscall.
15765
15766         test-stat-time, test-utimens: improve portability
15767         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15768         ext4 on alpha, and for cygwin.
15769         * tests/test-utimens-common.h: New file.
15770         (nap): Factor delays into single function.
15771         * tests/test-lutimens.h (test_lutimens): Use new header.
15772         * tests/test-futimens.h (test_futimens): Likewise.
15773         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15774         timestamps to occur from same machine, as was done previously for
15775         test_utimens.
15776         * modules/utimens-tests (Files): Ship new file.
15777         * modules/futimens-tests (Files): Likewise.
15778         Reported in part by Jim Meyering.
15779
15780         sys_stat: sort replacement declarations
15781         * lib/sys_stat.in.h: Sort declarations.
15782         * lib/futimens.c (futimens): Fix typo.
15783
15784 2009-10-15  Jim Meyering  <meyering@redhat.com>
15785
15786         don't let environment settings perturb build
15787         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15788         could cause a configure-time and/or build-time malfunction.
15789         Typically, a configure-time function-in-library test is performed
15790         via code like this:
15791
15792           LIB_VAR=
15793           AC_SUBST([LIB_VAR])
15794           prefix_saved_LIBS=$LIBS
15795             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15796                        [test "$ac_cv_search_FUNC" = "none required" ||
15797                         LIB_VAR=$ac_cv_search_FUNC])
15798           LIBS=$prefix_saved_LIBS
15799
15800         However, in each of the files affected by this change, the LIB_VAR=
15801         initialization was omitted.  Thus, when set in the environment, its
15802         value would propagate into generated Makefiles when FUNC is not found
15803         in LIB_NAME.
15804         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15807
15808 2009-10-14  Eric Blake  <ebb9@byu.net>
15809
15810         fchdir: avoid infinite recursion in mingw
15811         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15812         recursing.
15813
15814         test-stat-time: port to mingw
15815         * tests/test-stat-time.c (force_unlink): Return a value.
15816         (test_ctime) [W32]: Fix compilation error.
15817         (nap): Don't call usleep with too large an argument.  Use
15818         force_unlink.
15819         * doc/pastposix-functions/usleep.texi (usleep): Document the
15820         portability issue.
15821
15822 2009-10-13  Jim Meyering  <meyering@redhat.com>
15823
15824         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15825         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15826         * modules/pipe-filter-ii: Likewise.
15827         * modules/sys_socket-tests: Likewise.
15828         * modules/tsearch-tests: Likewise.
15829         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15830         (check): Depend on it.
15831
15832 2009-10-12  Eric Blake  <ebb9@byu.net>
15833
15834         utimens-tests: port to NFS file systems
15835         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15836         comparisons to avoid spurious failures from timestamp drift
15837         between NFS machines.
15838
15839 2009-10-12  Eric Blake  <ebb9@byu.net>
15840
15841         stat-time-tests: minor cleanups
15842         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15843         * tests/test-stat-time.c (nap): Separate assignment from call.
15844         Suggested by Paolo Bonzini and Bruno Haible.
15845
15846         sys_stat: guarantee struct timespec
15847         * lib/sys_stat.in.h (includes): Always include <time.h>
15848         * modules/sys_stat (Depends-on): Add time.
15849         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15850         mode_t permission values.
15851         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15852         get at subsecond timestamps.
15853
15854 2009-10-10  Eric Blake  <ebb9@byu.net>
15855
15856         futimens: new module
15857         * modules/futimens: New file.
15858         * lib/futimens.c (futimens): Likewise.
15859         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15860         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15861         we can work around Linux bugs.
15862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15863         * modules/sys_stat (Makefile.am): Substitute them.
15864         * lib/sys_stat.in.h (futimens): Declare it.
15865         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15866         * doc/posix-functions/futimens.texi (futimens): Likewise.
15867         * modules/futimens-tests: New test.
15868         * tests/test-futimens.c: Likewise.
15869
15870         utimens: introduce fdutimens
15871         * lib/utimens.h (fdutimens): New prototype.
15872         * lib/utimens.c (gl_futimens): Move guts...
15873         (fdutimens): ...to new interface.
15874         * tests/test-utimens.c (do_fdutimens): Use it.
15875
15876         utimens: add UTIME_NOW and UTIME_OMIT support
15877         * lib/utimens.c (validate_timespec, update_timespec): New helper
15878         functions.
15879         (gl_futimens, lutimens): Use them.
15880         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15881         stdbool, sys_stat.
15882         (Link): Mention resulting library dependency.
15883         * modules/utimecmp (Link): Likewise.
15884         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15885         (Makefile.am): Pick up library dependency.
15886         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15887         definition.
15888         * tests/test-sys_stat.c: Test the definitions.
15889         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15890         * NEWS: Document library dependency.
15891
15892         utimecmp: support symlink timestamps
15893         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15894         hashing when possible.  Use pathconf when available.
15895         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15896         * modules/utimecmp (Depends-on): Add lstat.
15897
15898         utimens: add lutimens interface
15899         * lib/utimens.c (lutimens): New function.
15900         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15901         * lib/utimens.h (lutimens): Declare new interface.
15902         * tests/test-utimens.c (main): Enhance test.
15903         * tests/test-lutimens.h (test_lutimens): New file.
15904         * modules/utimens-tests (Files): Distribute it.
15905         (Depends-on): Add symlink.
15906         (configure.ac): Check for usleep.
15907
15908         utimens: validate futimens usage
15909         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15910         fewer syscalls on failure later on.  Avoid compiler warning on
15911         mingw.
15912         * modules/utimens (Depends-on): Add dup2.
15913
15914         utimens: add test
15915         * modules/utimens-tests: New test.
15916         * tests/test-utimens.h: New file.
15917         * tests/test-futimens.h: Likewise.
15918         * tests/test-utimens.c: Likewise.
15919
15920         doc: mention timestamp portability issues
15921         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15922         instead.
15923         * doc/posix-functions/utime.texi (utime): Likewise.
15924         * doc/posix-functions/utimes.texi (utimes): Likewise.
15925         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15926         instead.
15927         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15928         module.
15929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15930         Mention weakness with symlink timestamps.
15931         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15932         to utimensat/futimens instead.
15933         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15934
15935         test-dup2: enhance test
15936         * tests/test-dup2.c (main): Also check AT_FDCWD.
15937
15938         test-stat-time: avoid more spurious failures
15939         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15940         xfs; and avoid race if the two timestamps cross quantization edge.
15941
15942         relocatable: prefer 'file system' over 'filesystem'
15943         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15944         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15945         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15946         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15947         * lib/relocatable.c (compute_curr_prefix): Likewise.
15948
15949 2009-10-10  Jim Meyering  <meyering@redhat.com>
15950
15951         stat-time-tests: check for the usleep function
15952         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15953
15954 2009-10-10  Bruno Haible  <bruno@clisp.org>
15955
15956         * modules/xnanosleep: Put the Link section after the Include section.
15957
15958 2009-10-09  Eric Blake  <ebb9@byu.net>
15959
15960         dup2: work around FreeBSD 6.1 bug
15961         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15962         * doc/posix-functions/dup2.texi (dup2): Document it.
15963         Reported by Nelson H. F. Beebe and Jim Meyering.
15964
15965         test-stat-time: port to buggy NFS clients
15966         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15967         (test_ctime): Also skip test if mtime and ctime are skewed.
15968
15969         maint: prefer 'file system' over 'filesystem'
15970         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15971         * doc/posix-functions/lstat.texi (lstat): Likewise.
15972         * lib/file-has-acl.c (file_has_acl): Likewise.
15973         * lib/fwriteerror.c [TEST]: Likewise.
15974         * tests/test-areadlink.h (test_areadlink): Likewise.
15975         * tests/test-areadlinkat-with-size.c (main): Likewise.
15976         * tests/test-areadlinkat.c (main): Likewise.
15977         * tests/test-canonicalize-lgpl.c (main): Likewise.
15978         * tests/test-canonicalize.c (main): Likewise.
15979         * tests/test-fstatat.c (main): Likewise.
15980         * tests/test-linkat.c (main): Likewise.
15981         * tests/test-lstat.h (test_lstat_func): Likewise.
15982         * tests/test-mkdir.h (test_mkdir): Likewise.
15983         * tests/test-readlink.h (test_readlink): Likewise.
15984         * tests/test-remove.c (main): Likewise.
15985         * tests/test-rename.h (test_rename): Likewise.
15986         * tests/test-renameat.c (main): Likewise.
15987         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15988         * tests/test-symlink.h (test_symlink): Likewise.
15989         * tests/test-symlinkat.c (main): Likewise.
15990         * tests/test-unlink.h (test_unlink_func): Likewise.
15991         * tests/test-unlinkat.c (main): Likewise.
15992
15993         maint: make realtime library usage explicit
15994         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15995         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15996         * modules/settime (Link): Likewise.
15997         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15998
15999         test-stat-time: speed up execution
16000         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16001         warning on mingw.
16002         (nap): New helper function.
16003         (prepare_test): Use it to reduce sleep time.
16004         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16005         execution.
16006         * modules/stat-time-tests (configure.ac): Check for usleep.
16007
16008 2009-10-09  Jim Meyering  <meyering@redhat.com>
16009
16010         selinux-h: always use getfilecon wrappers
16011         * lib/getfilecon.c: New file.
16012         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16013         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16014         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16015         (fgetfilecon): Provide a stub.
16016         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16017         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16018         file unconditionally.
16019         When <selinux/selinux.h> is found, arrange to use wrappers.
16020         * modules/selinux-h (Files): Add getfilecon.c.
16021         (Makefile.am): Substitute include-next-related bits
16022         into the now-always-generated selinux/selinux.h file.
16023         * doc/glibc-functions/lgetfilecon.texi: New file.
16024         * doc/glibc-functions/fgetfilecon.texi: New file.
16025         * doc/glibc-functions/getfilecon.texi: New file.
16026         * doc/glibc-functions/getfilecon-desc.texi: New file.
16027         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16028         which to pull in the new files.
16029         * MODULES.html.sh (Misc): Add selinux-h.
16030
16031 2009-10-08  Jim Meyering  <meyering@redhat.com>
16032
16033         unistd: fix comment typo
16034         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16035
16036 2009-10-08  Eric Blake  <ebb9@byu.net>
16037
16038         areadlink: use SIZE_MAX consistently
16039         * modules/areadlink (Depends-on): Add stdint.
16040         * modules/areadlink-with-size (Depends-on): Likewise.
16041         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16042         gives NULL; drop sys/types, since unistd gives size_t; and add
16043         stdint for SIZE_MAX.
16044         (SIZE_MAX): Rely on headers.
16045         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16046         and add stdint.
16047         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16048         (SIZE_MAX): Likewise.
16049         (INITIAL_BUF_SIZE): Turn into enum.
16050         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16051
16052 2009-10-08  Jim Meyering  <meyering@redhat.com>
16053
16054         areadlinkat: avoid compilation failure
16055         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16056         Fix typo in comment.
16057
16058 2009-10-07  Eric Blake  <ebb9@byu.net>
16059
16060         areadlinkat-with-size: new module
16061         * modules/areadlinkat-with-size: New module.
16062         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16063         * lib/areadlink.h (areadlinkat): Declare it.
16064         * MODULES.html.sh (File system functions): Mention it.
16065         * modules/areadlinkat-with-size-tests: New test.
16066         * tests/test-areadlinkat-with-size.c: New file.
16067
16068         xreadlinkat: new module
16069         * modules/xreadlinkat: New module.
16070         * lib/xreadlinkat.c (xreadlinkat): New file.
16071         * lib/xreadlink.h (xreadlinkat): Declare it.
16072         * MODULES.html.sh (File system functions): Mention it.
16073
16074         areadlinkat: new module
16075         * lib/at-func.c (FUNC_FAIL): New define.
16076         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16077         * modules/areadlinkat: New module.
16078         * lib/linkat.c (areadlinkat): Move...
16079         * lib/areadlinkat.c (areadlinkat): ...to new file.
16080         * lib/areadlink.h (areadlinkat): Declare it.
16081         * modules/linkat (Depends-on): Add areadlinkat.
16082         * MODULES.html.sh (File system functions): Mention it.
16083         * modules/areadlinkat-tests: New test.
16084         * tests/test-areadlinkat.c: New file.
16085
16086         areadlink, areadlink-with-size: add tests
16087         * modules/areadlink-tests: New test.
16088         * modules/areadlink-with-size-tests: Likewise.
16089         * tests/test-areadlink.h: New file.
16090         * tests/test-areadlink.c: Likewise.
16091         * tests/test-areadlink-with-size.c: Likewise.
16092
16093         maint: minor cleanups
16094         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16095         _UNUSED_PARAMETER_ instead.
16096         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16097         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16098         * modules/linkat-tests (Files): Distribute test-link.h.
16099
16100         openat, utimens: whitespace cleanup
16101         * lib/openat.c: Prefer space throughout, rather than mix of 8
16102         spaces vs. tabs.
16103         * lib/at-func.c: Likewise.
16104         * lib/utimens.c: Likewise.
16105
16106         openat: avoid using wrong fd
16107         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16108         working directory chooses same fd.
16109         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16110
16111         mkdir, mkdirat: fix cygwin 1.5.x bug
16112         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16113         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16114         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16115         bug.
16116         (gl_PREREQ_MKDIR): Delete unused macro.
16117         * modules/mkdir (Files): Track file rename.
16118         (configure.ac): Update macro name.
16119         * modules/openat (Depends-on): Add mkdir.
16120         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16121
16122         mkdir, mkdirat: add tests
16123         * modules/mkdir-tests: New test.
16124         * tests/test-mkdir.h: New file.
16125         * tests/test-mkdir.c: Likewise.
16126         * tests/test-mkdirat.c: Likewise.
16127         * modules/openat-tests (Files): Add new files.
16128         (Makefile.am): Run new test.
16129
16130 2009-10-06  Eric Blake  <ebb9@byu.net>
16131
16132         doc: tweak *at function documentation
16133         * doc/posix-functions/faccessat.texi (faccessat): Mention
16134         known issue with replacement.
16135         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16136         * doc/posix-functions/linkat.texi (linkat): Likewise.
16137         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16138         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16139         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16140         * doc/posix-functions/renameat.texi (renameat): Likewise.
16141         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16142
16143         openat: fix GNU/Hurd bug in unlinkat
16144         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16145         broken.
16146         * doc/posix-functions/unlink.texi (unlink): Document this.
16147         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16148
16149         fdopendir: fix GNU/Hurd bug
16150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16151         allowing non-directory fds.
16152         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16153         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16154         * modules/dirent (Makefile.am): Substitute it.
16155         * lib/dirent.in.h (fdopendir): Declare replacement.
16156         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16157         * tests/test-fdopendir.c (main): Test something other than
16158         /dev/null, since on Hurd that behaves like a directory.
16159
16160         test-symlink: port to GNU/Hurd
16161         * tests/test-symlink.h (test_symlink): Relax expected errno.
16162
16163         doc: tweak more cygwin information
16164         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16165         now compatible with glibc.
16166         * doc/posix-functions/getopt.texi (getopt): Likewise.
16167
16168         getopt-gnu: add another test
16169         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16170         guarantee behavior relied on by m4.
16171         * tests/test-getopt.c (main): Use it.
16172         * modules/getopt-posix-tests (Depends-on): Add setenv.
16173         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16174
16175         getopt: fix compilation on darwin
16176         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16177         include.
16178         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16179         Reported by Ludovic Courtès.
16180
16181 2009-10-06  Bruno Haible  <bruno@clisp.org>
16182
16183         * modules/size_max (Description): Discourage its use.
16184         Reported by Simon Josefsson.
16185
16186 2009-10-06  Jim Meyering  <meyering@redhat.com>
16187
16188         linkat: avoid compilation failure
16189         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16190
16191 2009-10-05  Eric Blake  <ebb9@byu.net>
16192
16193         linkat: support Linux 2.6.17
16194         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16195         linkat on Linux, but allow cache variable override.
16196         * lib/linkat.c (rpl_linkat): Define override.
16197         * modules/linkat (Depends-on): Add symlinkat.
16198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16199         * modules/unistd (Makefile.am): Substitute it.
16200         * lib/unistd.in.h (linkat): Declare replacement.
16201         Reported by Pádraig Brady.
16202
16203         quotearg: port test to systems with C.UTF-8 locale
16204         * tests/test-quotearg.c (struct result_strings): Add another
16205         member, differentiating between C.ASCII and C.UTF-8 handling.
16206         (compare_strings): Add parameter.
16207         (main): Adjust all callers.
16208
16209         getopt: avoid clash with FreeBSD _getopt_internal
16210         * lib/getopt.in.h (_getopt_internal): Override the name.
16211         * lib/getopt_int.h (includes): Pick up any overrides.
16212         Reported by Reuben Thomas.
16213
16214         hash: allow C89 compilation
16215         * lib/hash.c (check_tuning): Move declaration before statement.
16216         Reported by Reuben Thomas.
16217
16218 2009-10-05  Karl Berry  <karl@gnu.org>
16219
16220         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16221
16222 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16223             Bruno Haible  <bruno@clisp.org>
16224
16225         * lib/uname.c (uname): Use a table-driven algorithm to compute
16226         Windows NT versions.
16227
16228 2009-10-04  Bruno Haible  <bruno@clisp.org>
16229
16230         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16231         program_invocation_short_name.
16232         * modules/progname (configure.ac): Test for presence of
16233         program_invocation_short_name.
16234         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16235
16236 2009-10-04  Bruno Haible  <bruno@clisp.org>
16237
16238         * lib/progname.c (set_program_name): Fix comment.
16239         Reported by Jim Meyering.
16240
16241 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16242             Bruno Haible  <bruno@clisp.org>
16243
16244         * lib/uname.c: Include <string.h>.
16245         (uname): Do only one call to GetVersionEx in the common case.
16246
16247 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16248             Bruno Haible  <bruno@clisp.org>
16249
16250         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16251         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16252         (uname): Add support for Windows CE and various non-x86 CPU types.
16253
16254 2009-10-03  Bruno Haible  <bruno@clisp.org>
16255
16256         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16257         invocation to tests/configure.ac.
16258         Reported by Ian Beckwith <ianb@erislabs.net>.
16259
16260 2009-10-02  Eric Blake  <ebb9@byu.net>
16261
16262         fchdir: avoid compiler warning
16263         * lib/fchdir.c (canonicalize_file_name)
16264         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16265
16266         test-open: support mingw errno values
16267         * tests/test-open.h (test_open): Relax test.
16268         * tests/test-fopen.h (test_fopen): Likewise.
16269         * tests/test-openat-safer.c (main): Likewise.
16270
16271         open: fix opening directory on mingw
16272         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16273
16274         test-open: on GNU/Hurd, /dev/null is a directory
16275         * tests/test-fopen.h (main): Rename...
16276         (test_fopen): ...to this.  Use a guaranteed non-directory when
16277         confirming open behavior on trailing slash.
16278         * tests/test-openat-safer.c (main): Likewise.
16279         * tests/test-open.h (main): Likewise....
16280         (test_open): ...to this.
16281         * tests/test-fopen.c (main): Adjust caller.
16282         * tests/test-fopen-safer.c (main): Likewise.
16283         * tests/test-open.c (main): Likewise.
16284         * tests/test-fcntl-safer.c (main): Likewise.
16285         Reported by Samuel Thibault.
16286
16287         rename, fchdir: don't ignore chdir failure
16288         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16289         * lib/rename.c (rpl_rename) [W32]: Likewise.
16290         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16291         an empty destination directory if source cannot be renamed,
16292         although there is still possibility for failure.
16293         * doc/posix-functions/rename.texi (rename): Document the race.
16294         Reported by Jim Meyering.
16295
16296         maint: cleanup whitespace in recent commits
16297         * lib/rename.c (rpl_rename): Remove tabs.
16298         * tests/test-link.h (test_link): Likewise.
16299         * lib/fchdir.c (get_name): Likewise.
16300         Reported by Jim Meyering.
16301
16302 2009-10-02  Ben Pfaff  <blp@gnu.org>
16303
16304         relocatable-prog-wrapper: Add missing dependency on
16305         double-slash-root.
16306         * modules/relocatable-prog-wrapper: Add dependency.
16307         Reported by Ian Beckwith <ianb@erislabs.net>.
16308
16309 2009-10-02  Eric Blake  <ebb9@byu.net>
16310
16311         renameat: fix Solaris bugs
16312         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16313         needed fixing.
16314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16315         * modules/stdio (Makefile.am): Substitute it.
16316         * lib/stdio.in.h (renameat): Declare replacement.
16317         * lib/renameat.c (rpl_renameat): Implement fix.
16318
16319         renameat: new module
16320         * modules/renameat: New file.
16321         * lib/renameat.c (renameat): Likewise.
16322         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16324         * modules/stdio (Makefile.am): Substitute them.
16325         * lib/stdio.in.h (renameat): Declare it.
16326         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16327         * doc/posix-functions/renameat.texi (renameat): Likewise.
16328         * modules/renameat-tests: New test.
16329         * tests/test-renameat.c: Likewise.
16330
16331         rename: fix mingw bugs
16332         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16333         directory overwrite bugs.
16334
16335         rename: fix another cygwin 1.5 bug
16336         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16337         checks.
16338         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16339         unnecessary cygwin workarounds.  Also work around bug with moving
16340         full directory onto an empty one.
16341         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16342
16343         rename-dest-slash: merge into rename module
16344         * modules/rename-dest-slash (Status): Mark obsolete.
16345         (Depends-on): Add rename.
16346         (Files): Let rename do it all.
16347         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16348         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16349         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16350         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16351         * lib/rename.c (rpl_rename): Update comments.
16352
16353         rename: fix cygwin 1.5.x bugs
16354         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16355         * lib/rename.c (rpl_rename): Work around them.
16356         * modules/rename (Depends-on): Add same-inode.
16357
16358         rename: fix Solaris 10 bug
16359         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16360         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16361         was the only bug.
16362
16363         rename: fix Solaris 9 bug
16364         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16365         on non-directory.  Avoid calling exit.
16366         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16367         strdup.
16368         * modules/rename-tests (Depends-on): Drop lstat.
16369         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16370         (gl_PREREQ_RENAME): Delete unused macro.
16371
16372         rename-dest-slash: fix NetBSD bug
16373         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16374         links.
16375         * modules/rename-dest-slash (Depends-on): Add same-inode.
16376
16377         rename-tests: new test, exposes several platform bugs
16378         * modules/rename-tests: New file.
16379         * tests/test-rename.h: Likewise.
16380         * tests/test-rename.c: Likewise.
16381         * doc/posix-functions/rename.texi (rename): Improve documentation,
16382         including bugs that will eventually be fixed in gnulib.
16383
16384 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16385
16386         * lib/uname.c: Include <stdlib.h>
16387         (uname): Assume version info is available.
16388
16389 2009-10-02  Jim Meyering  <meyering@redhat.com>
16390
16391         gnu-web-doc-update: correct --help output
16392         * build-aux/gnu-web-doc-update: Make --help output relevant.
16393
16394         gnu-web-doc-update: add standard options
16395         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16396
16397         gnu-web-doc-update: New module.
16398         Use this script to automatically update the on-line web documentation
16399         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16400         * modules/gnu-web-doc-update: New file, from coreutils.
16401         * build-aux/gnu-web-doc-update: New script.
16402
16403 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16404
16405         link: LoadLibrary is not needed.
16406         * lib/link.c: Use GetModuleHandle.
16407
16408 2009-10-01  Eric Blake  <ebb9@byu.net>
16409
16410         getopt: bump serial number
16411         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16412         change.
16413
16414         tests: tighten link, rmdir, and remove tests
16415         * tests/test-link.h (includes): No need to use <config.h> here.
16416         Clean up if directory hard link was created, otherwise test for
16417         trailing '.'.
16418         * tests/test-linkat.c (main): Simplify.
16419         * tests/test-remove.c (main): Enhance test for trailing '.'.
16420         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16421
16422 2009-10-01  Jim Meyering  <meyering@redhat.com>
16423
16424         maint.mk: requiring "make major" was annoying, for a "minor" release.
16425         What is intended is "stable", to contrast with alpha and beta,
16426         so require "make stable", not "make major".
16427         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16428         (get_tool_versions): Likewise.
16429         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16430
16431 2009-09-30  Ben Pfaff  <blp@gnu.org>
16432
16433         Fix broken build of replacement for Windows tmpfile().
16434         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16435         flags argument added along with the 'mkostemp' module.
16436
16437 2009-09-28  Bruno Haible  <bruno@clisp.org>
16438
16439         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16440         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16441         to 'remove_elt'.
16442         (gl_list_remove): Update.
16443         * lib/gl_list.c (gl_list_remove): Update.
16444         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16445         to 'remove_elt'.
16446         (gl_oset_remove): Update.
16447         * lib/gl_list.c (gl_oset_remove): Update.
16448         Reported by Eric Blake.
16449
16450 2009-09-28  Eric Blake  <ebb9@byu.net>
16451
16452         doc: mention yet more cygwin 1.7 status
16453         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16454         cygwin.
16455         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16456         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16457
16458         argp: fix test failure
16459         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16460         that are not upper-case.  Pass correct range to tolower.
16461
16462 2009-09-27  Jim Meyering  <meyering@redhat.com>
16463
16464         test-yesno: work around sparc-dash here-document infelicity
16465         Without this change, the literal \177 byte in a here document
16466         would make dash 0.5.5.1-3 access uninitialized memory.
16467         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16468         Instead, use a marker, "@", and filter through tr to create the desired
16469         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16470
16471 2009-09-27  Bruno Haible  <bruno@clisp.org>
16472
16473         Disable untested support for new flavours of ACLs on AIX.
16474         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16475         progress.
16476         * lib/set-mode-acl.c (qset_acl): Likewise.
16477
16478 2008-12-07  Bruno Haible  <bruno@clisp.org>
16479
16480         Add support for new flavours of ACLs on AIX. (Untested.)
16481         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16482         (file_has_acl): Add support for newer AIX.
16483         * lib/set-mode-acl.c (qset_acl): Likewise.
16484         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16485         Rainer Tammer <tammer@tammer.net>.
16486
16487 2009-09-26  Eric Blake  <ebb9@byu.net>
16488
16489         argp: fix compilation of getopt
16490         * lib/getopt.in.h (includes): Use different guard than glibc.
16491         Reported by Sergey Poznyakoff.
16492
16493         doc: mention more cygwin 1.7 status
16494         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16495         bug.
16496         * doc/posix-functions/execl.texi (execl): Likewise.
16497         * doc/posix-functions/execle.texi (execle): Likewise.
16498         * doc/posix-functions/execlp.texi (execlp): Likewise.
16499         * doc/posix-functions/execv.texi (execv): Likewise.
16500         * doc/posix-functions/execve.texi (execve): Likewise.
16501         * doc/posix-functions/execvp.texi (execvp): Likewise.
16502         * doc/glibc-functions/canonicalize_file_name.texi
16503         (canonicalize_file_name): Cygwin 1.7 now provides this.
16504         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16505         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16506         on AT_SYMLINK_NOFOLLOW.
16507
16508 2009-09-24  Eric Blake  <ebb9@byu.net>
16509
16510         test-linkat: make test more robust
16511         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16512
16513         getopt: fix inclusion guards for cygwin
16514         * modules/getopt-posix (Depends-on): Add include-next.
16515         (Makefile.am): Substitute more items in replacement header.
16516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16517         <getopt.h>.
16518         * lib/getopt.in.h (includes): Use split inclusion guard, and
16519         prefer <getopt.h> over include <unistd.h> when one is present.
16520         (option): Also override name of 'struct option'.
16521
16522         same-inode: revert prior change; it is not yet ready
16523         * NEWS: Undo mention of this change.
16524         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16525         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16526         * lib/cycle-check.c (cycle_check): Likewise.
16527         * lib/same.c (same_name): Likewise.
16528         * lib/at-func2.c (at_func2): Likewise.
16529
16530 2009-09-23  Eric Blake  <ebb9@byu.net>
16531
16532         linkat: new module
16533         * modules/linkat: New file.
16534         * lib/at-func2.c (at_func2): Likewise.
16535         * lib/linkat.c (linkat): Likewise.
16536         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16537         * lib/openat-priv.h (at_func2): Add declaration.
16538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16539         * modules/unistd (Makefile.am): Substitute them.
16540         * lib/unistd.in.h (linkat): Declare it.
16541         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16542         * doc/posix-functions/linkat.texi (linkat): Likewise.
16543         * doc/posix-functions/link.texi (link): Tweak wording.
16544         * tests/test-link.c (main): Move guts...
16545         * tests/test-link.h (test_link): ...into new file.
16546         * modules/linkat-tests: New test.
16547         * tests/test-linkat.c: Likewise.
16548         * modules/link-tests (Files): Ship new file.
16549         (Depends-on): Add stdbool.
16550
16551         dirname: add library-safe mdir_name
16552         * lib/dirname.h (mdir_name): New prototype.
16553         * lib/dirname.c (dir_name): Move guts...
16554         (mdir_name): ...to new function that avoids xalloc_die.
16555
16556         fchdir: another mingw fix
16557         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16558         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16559         on mingw (where it has not yet been ported), and make it optional
16560         elsewhere.
16561         (_gl_register_fd): Use it.
16562
16563         same-inode: make SAME_INODE tri-state, to port to mingw
16564         * NEWS: Mention this change.
16565         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16566         st_ino always being 0.
16567         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16568         * lib/cycle-check.c (cycle_check): Likewise.
16569         * lib/same.c (same_name): Likewise.
16570
16571         lstat: avoid mingw compilation error
16572         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16573         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16574         lstat ourselves.
16575         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16576         was adequate.
16577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16578         the checks for lstat.
16579         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16580
16581         link: fix test failure on Solaris 9
16582         * lib/link.c (rpl_link): Don't assume link will catch bogus
16583         trailing slash on source.
16584
16585         test-symlinkat: enhance test
16586         * tests/test-readlink.c (main): Move guts...
16587         * tests/test-readlink.h (test_readlink): ...into new file.
16588         * tests/test-symlink.c (main): Move guts...
16589         * tests/test-symlink.h (test_symlink): ...into new file.
16590         * tests/test-symlinkat.c (main): Use new files for further
16591         coverage.
16592         (do_symlink, do_readlink): New helper functions.
16593         * modules/symlink-tests (Files): Ship new file.
16594         (Depends-on): Add stdbool.
16595         * modules/readlink-tests (Files): Ship new file.
16596         (Depends-on): Add stdbool.
16597         * modules/symlinkat-tests (Files): Use new files.
16598
16599 2009-09-23  Eric Blake  <ebb9@byu.net>
16600
16601         readlink: document portability issue with symlink length
16602         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16603         systems have bogus st_size on symlinks, and mention the
16604         areadlink-with-size module.
16605         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16606         * doc/posix-functions/readlink.texi (readlink): Mention the
16607         areadlink module, and ERANGE failure.
16608         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16609         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16610
16611         readlink: fix Solaris 9 bug with trailing slash
16612         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16613         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16614         * doc/posix-functions/readlink.texi (readlink): Document this.
16615         * modules/readlink-tests: New test.
16616         * tests/test-readlink.c: Likewise.
16617
16618         readlink: fix cygwin 1.5.x bug with return type
16619         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16620         * lib/unistd.in.h (readlink): Use ssize_t.
16621         * lib/readlink.c (readlink): Likewise.
16622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16623         * modules/unistd (Makefile.am): Substitute it.
16624         * lib/unistd.in.h (readlink): Declare replacement.
16625         * doc/posix-functions/readlink.texi (readlink): Document this.
16626
16627         symlink: use throughout gnulib
16628         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16629         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16630         symlink is not used.
16631         * modules/symlinkat (Depends-on): Add symlink.
16632         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16633         * modules/canonicalize-tests (Depends-on): Likewise.
16634         * modules/lstat-tests (Depends-on): Likewise.
16635         * modules/openat-tests (Depends-on): Likewise.
16636         * modules/remove-tests (Depends-on): Likewise.
16637         * modules/rmdir-tests (Depends-on): Likewise.
16638         * modules/unlink-tests (Depends-on): Likewise.
16639         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16640         * tests/test-canonicalize.c (symlink): Likewise.
16641         * tests/test-fstatat.c (symlink): Likewise.
16642         * tests/test-lstat.c (symlink): Likewise.
16643         * tests/test-remove.c (symlink): Likewise.
16644         * tests/test-rmdir.c (symlink): Likewise.
16645         * tests/test-unlink.c (symlink): Likewise.
16646         * tests/test-unlinkat.c (symlink): Likewise.
16647
16648         symlink: new module, for Solaris 9 bug
16649         * modules/symlink: New file.
16650         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16651         * lib/symlink.c: Likewise.
16652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16653         * modules/unistd (Makefile.am): Substitute them.
16654         * lib/unistd.in.h (symlink): Declare replacement.
16655         * MODULES.html.sh (File system functions): Mention it.
16656         * doc/posix-functions/symlink.texi (symlink): Likewise.
16657         * modules/symlink-tests: New test.
16658         * tests/test-symlink.c: Likewise.
16659
16660 2009-09-23  Bruno Haible  <bruno@clisp.org>
16661
16662         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16663         when needed.
16664         Test case: gnulib-tool --import --with-tests atexit inttypes.
16665         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16666
16667 2009-09-23  Bruno Haible  <bruno@clisp.org>
16668
16669         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16670         subcommand, not in a subshell.
16671
16672 2009-09-22  Eric Blake  <ebb9@byu.net>
16673
16674         unistd: sort replacement declarations
16675         * lib/unistd.in.h: Sort declarations.
16676
16677         open, openat: minor optimization
16678         * lib/open.c (open): If open succeeded, len is non-zero.
16679         * lib/openat.c (rpl_openat): Likewise.
16680
16681         link-follow: ensure correct result
16682         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16683         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16684         distinguish between possible failures.
16685
16686 2009-09-21  Eric Blake  <ebb9@byu.net>
16687
16688         fts: avoid compiler warning
16689         * lib/fts.c (dirent_inode_sort_may_be_useful)
16690         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16691
16692 2009-09-19  Bruno Haible  <bruno@clisp.org>
16693
16694         * lib/progreloc.c (canonicalize_file_name): New declaration.
16695
16696 2009-09-19  Eric Blake  <ebb9@byu.net>
16697
16698         link: fix quoting
16699         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16700
16701         openat: fix openat bugs on Solaris 9
16702         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16703         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16704         * modules/openat (Depends-on): Add open.
16705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16706         * modules/fcntl-h (Makefile.am): Substitute it.
16707         * lib/fcntl.in.h (openat): Declare replacement.
16708         * doc/posix-functions/openat.texi (openat): Document this.
16709
16710         openat: move fstatat and unlinkat into correct files
16711         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16712         compiled.
16713         * lib/openat.c (fstatat, unlinkat): Move...
16714         * lib/fstatat.c (fstatat): ...into correct files.
16715         * lib/unlinkat.c (unlinkat): Likewise.
16716
16717         openat: fix unlinkat bugs on Solaris 9
16718         * lib/unlinkat.c (unlinkat): New file.
16719         * modules/openat (Depends-on): Add unlink.
16720         (Files): Distribute it.
16721         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16722         trailing slash behavior is broken.
16723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16724         * modules/unistd (Makefile.am): Substitute it.
16725         * lib/unistd.in.h (unlinkat): Declare replacement.
16726         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16727
16728         openat: fix fstatat bugs on Solaris 9
16729         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16730         stat.
16731         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16732
16733         test-unlinkat: enhance test, to expose Solaris 9 bug
16734         * tests/test-unlink.c (main): Factor guts...
16735         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16736         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16737         * tests/test-rmdir.c (main): Adjust caller.
16738         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16739         (unlinker): New helper function.
16740         (rmdirat): Enhance check.
16741         * modules/rmdir-tests (Depends-on): Add stdbool.
16742         * modules/unlink-tests (Depends-on): Likewise.
16743         (Files): Add test-unlink.h.
16744         * modules/openat-tests (Files): Likewise.
16745         (Depends-on): Add unlinkdir.
16746
16747         test-fstatat: new test, to expose Solaris 9 bugs
16748         * tests/test-stat.c (main): Factor guts...
16749         * tests/test-stat.h (test_stat_func): ...into new file.
16750         * tests/test-lstat.c (main): Factor guts...
16751         * tests/test-lstat.h (test_lstat_func): ...into new file.
16752         * tests/test-fstatat.c: New file.
16753         * modules/stat-tests (Files): Add test-stat.h.
16754         * modules/lstat-tests (Files): Add test-lstat.h.
16755         (Depends-on): Add stdbool.
16756         * modules/openat-tests (Depends-on): Add pathmax.
16757         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16758         (Makefile.am): Run new test.
16759
16760         remove: new module, for mingw and Solaris 9 bugs
16761         * modules/remove: New file.
16762         * lib/remove.c: Likewise.
16763         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16765         * modules/stdio (Makefile.am): Use them.
16766         * lib/stdio.in.h (remove): Declare replacement.
16767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16768         * doc/posix-functions/remove.texi (remove): Likewise.
16769         * modules/remove-tests: New test.
16770         * tests/test-remove.c: Likewise.
16771
16772         unlink: new module, for Solaris 9 bug
16773         * modules/unlink: New file.
16774         * lib/unlink.c: Likewise.
16775         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16777         * modules/unistd (Makefile.am): Use them.
16778         * lib/unistd.in.h (stat): Declare replacement.
16779         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16780         * doc/posix-functions/unlink.texi (unlink): Likewise.
16781         * modules/unlink-tests: New test.
16782         * tests/test-unlink.c: Likewise.
16783
16784         lstat: fix Solaris 9 bug
16785         * lib/lstat.c (lstat): Also check for trailing slash on
16786         non-symlink, non-directories.  Use stat module to simplify logic.
16787         * doc/posix-functions/lstat.texi (lstat): Document it.
16788         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16789         (configure.ac): Check for symlink.
16790         * tests/test-lstat.c (main): Add more tests.
16791
16792         stat: add as dependency to other modules
16793         * modules/chown (Depends-on): Add stat.
16794         * modules/euidaccess (Depends-on): Likewise.
16795         * modules/fchdir (Depends-on): Likewise.
16796         * modules/isdir (Depends-on): Likewise.
16797         * modules/link (Depends-on): Likewise.
16798         * modules/lstat (Depends-on): Likewise.
16799         * modules/mkdir-p (Depends-on): Likewise.
16800         * modules/modechange (Depends-on): Likewise.
16801         * modules/open (Depends-on): Likewise.
16802         * modules/readlink (Depends-on): Likewise.
16803         * modules/same (Depends-on): Likewise.
16804
16805         stat: fix Solaris 9 bug
16806         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16807         slash.
16808         * lib/stat.c (rpl_stat): Work around it.
16809         * doc/posix-functions/stat.texi (stat): Update documentation.
16810
16811         stat: new module, for mingw bug
16812         * modules/stat: New file.
16813         * lib/stat.c: Likewise.
16814         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16815         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16816         * modules/sys_stat (Makefile.am): Use them.
16817         * lib/sys_stat.in.h (stat): Declare replacement.
16818         * lib/openat.c (fstatat): Deal with lstat and stat being function
16819         macros.
16820         * modules/openat (Depends-on): Add inline.
16821         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16822         * doc/posix-functions/stat.texi (stat): Likewise.
16823         * modules/stat-tests: New test.
16824         * tests/test-stat.c: Likewise.
16825
16826 2009-09-19  Jim Meyering  <meyering@redhat.com>
16827
16828         syntax-check: detect unnecessary inclusion of canonicalize.h
16829         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16830
16831 2009-09-19  Eric Blake  <ebb9@byu.net>
16832
16833         canonicalize-lgpl: adjust clients to use correct header
16834         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16835         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16836         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16837         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16838         * lib/progreloc.c (includes): Likewise.
16839
16840 2009-09-19  Jim Meyering  <meyering@redhat.com>
16841
16842         test-posixtm.c: correct a comment
16843         * tests/test-posixtm.c: Correct first-line comment.
16844         Spotted by Eric Blake.
16845
16846 2009-09-16  Jim Meyering  <meyering@redhat.com>
16847
16848         posixtm-tests: make T const-correct; add a test case
16849         * tests/test-posixtm.c (T): Declare const.
16850         Add a test for -(2^31+1).
16851         Remove useless can-succeed-only-in-2002 test.
16852
16853         posixtm-tests: adjust the sole failing test
16854         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16855         expected output matches what mktime now produces.  Cross-checked via
16856         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16857
16858         posixtm: move #ifdef'd tests into a new module
16859         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16860         * tests/test-posixtm.c: ... this new file.
16861         * modules/posixtm-tests: New module.
16862
16863 2009-09-19  Eric Blake  <ebb9@byu.net>
16864
16865         openat: simplify use of at-func.c
16866         * lib/at-func.c (includes): Include prerequisites here, to
16867         simplify requirements on client files.
16868         * lib/openat-priv.h: Add double-inclusion guard.
16869         * lib/faccessat.c (includes): Simplify.
16870         * lib/fchmodat.c (includes): Likewise.
16871         * lib/fchownat.c (includes): Likewise.
16872         * lib/mkdirat.c (includes): Likewise.
16873         * lib/mkfifoat.c (includes): Likewise.
16874         * lib/symlinkat.c (includes): Likewise.
16875
16876         openat: allow return of fd 0
16877         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16878         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16879         unistd-safer.
16880         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16881         <fcntl.h>; this module does not leak fds.
16882         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16883         must be allowed to return 0, leaving openat_safer to add the
16884         safety.
16885         (openat_permissive): Avoid writing to just-opened fd 2 if
16886         restoring the current directory fails.
16887         * lib/openat-die.c (openat_restore_fail): Add comment.
16888         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16889         (save_cwd): Guarantee safe fd, but without use of open_safer.
16890         * tests/test-openat.c: New test.
16891         * modules/openat-tests (Files, Makefile.am): Distribute and build
16892         new file.
16893
16894         relocatable-prog-wrapper: fix build
16895         * modules/relocatable-prog-wrapper (Files): Update name of
16896         canonicalize m4 file, broken on 2009-09-17.
16897         Reported by emad hajjar <aleppos@hotmail.com>.
16898
16899 2009-09-19  Bruno Haible  <bruno@clisp.org>
16900
16901         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16902         * lib/safe-alloc.c: Likewise.
16903         Reported by Ian Beckwith <ianb@erislabs.net>.
16904
16905 2009-09-18  Bruno Haible  <bruno@clisp.org>
16906
16907         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16908         Reported by <erobles@sensacd.com.mx>.
16909
16910 2009-09-17  Eric Blake  <ebb9@byu.net>
16911
16912         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16913         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16914         slashes when checking if last component is missing.
16915         * tests/test-canonicalize.c (main): Test this.
16916
16917         canonicalize, canonicalize-lgpl: honor // if distinct from /
16918         * modules/canonicalize (Files): Add double-slash-root.m4.
16919         * modules/canonicalize-lgpl (Files): Likewise.
16920         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16921         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16922         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16923         fallback definition.
16924         (canonicalize_filename_mode): Use it to protect //.
16925         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16926         (__realpath): Likewise.
16927         * tests/test-canonicalize.c (main): Test this.
16928         * tests/test-canonicalize-lgpl.c (main): Likewise.
16929         * modules/canonicalize-tests (Depends-on): Add same-inode.
16930         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16931
16932         canonicalize-lgpl: fix glibc bug with trailing slash
16933         * m4/canonicalize-lgpl.m4: Move contents...
16934         * m4/canonicalize.m4: ...here.
16935         (gl_CANONICALIZE_LGPL): Factor realpath check...
16936         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16937         glibc 2.3.5 bug, fixed 2005-04-27.
16938         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16939         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16940         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16941         * modules/canonicalize-lgpl (Files): Manage file rename.
16942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16943         * modules/stdlib (Makefile.am): Substitute witness.
16944         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16945         is needed.
16946         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16947         replacement is required.
16948         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16949         * doc/glibc-functions/canonicalize_file_name.texi
16950         (canonicalize_file_name): Document this.
16951         * doc/posix-functions/realpath.texi (realpath): Likewise.
16952
16953         canonicalize-lgpl: reject non-directory with trailing slash
16954         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16955         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16956         catches failures in glibc 2.3.5.
16957         * tests/test-canonicalize.c (main): Likewise.
16958
16959         canonicalize-lgpl: use native realpath if it works
16960         * lib/canonicalize-lgpl.c (realpath): Guard with
16961         FUNC_REALPATH_WORKS.
16962         * lib/stdlib.in.h (realpath): Make declaration optional based on
16963         HAVE_REALPATH.
16964         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16965         native realpath works.
16966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16967         * modules/stdlib (Makefile.am): Substitute witness.
16968
16969         canonicalize, canonicalize-lgpl: use <stdlib.h>
16970         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16971         (Include): Mention <stdlib.h>.
16972         (configure.ac): Mention functions we provide.
16973         * modules/canonicalize (configure.ac): Likewise.
16974         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16975         realpath if canonicalize_file_name is missing.
16976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16977         * modules/stdlib (Makefile.am): Substitute witnesses.
16978         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16979         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16980         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16981         * NEWS: Document this.
16982         * doc/glibc-functions/canonicalize_file_name.texi
16983         (canonicalize_file_name): Likewise.
16984         * doc/posix-functions/realpath.texi (realpath): Likewise.
16985         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16986
16987         test-canonicalize: consolidate into single C program
16988         * tests/test-canonicalize.sh: Delete; move setup into...
16989         * tests/test-canonicalize.c (main): ...the program, making it
16990         easier to run in debugger.  Add some tests.
16991         * modules/canonicalize-tests (Files): Remove unused file.
16992         (Depends-on): Add progname.
16993         (configure.ac, Makefile.am): Simplify.
16994
16995         test-canonicalize-lgpl: consolidate into single C program
16996         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16997         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16998         easier to run in debugger.  Add some tests.
16999         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17000         (configure.ac, Makefile.am): Simplify.
17001
17002         canonicalize: avoid resolvepath
17003         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17004         unnecessary checks.
17005         * lib/canonicalize.c (includes): Simplify.
17006         (canonicalize_file_name): Drop resolvepath implementation.
17007         * modules/canonicalize (Depends-on): Drop filenamecat.
17008
17009         canonicalize: don't lose errno
17010         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17011         over calls to free.
17012
17013         canonicalize: simplify errno handling
17014         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17015         assignment.
17016
17017         canonicalize, canonicalize-lgpl: update module dependencies
17018         * modules/canonicalize (Depends-on): Add extensions, lstat,
17019         pathmax, stdlib.
17020         (Files): Drop pathmax.h.
17021         (configure.ac): Adjust macro name.
17022         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17023         lstat, stdlib, sys_stat.
17024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17025         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17026         extensions.
17027         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17028         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17029         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17030         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17031         declaration, if available.
17032         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17033         we can rely on the readlink module.
17034         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17035         (includes): Use <unistd.h> unconditionally.
17036
17037 2009-09-17  Eric Blake  <ebb9@byu.net>
17038
17039         maint: make Include sections of modules consistent
17040         * modules/alloca: Use only header name; no need to list #include.
17041         * modules/alloca-opt: Likewise.
17042         * modules/arpa_inet: Likewise.
17043         * modules/canon-host: Likewise.
17044         * modules/configmake: Likewise.
17045         * modules/dirent: Likewise.
17046         * modules/eealloc: Likewise.
17047         * modules/environ: Likewise.
17048         * modules/fchdir: Likewise.
17049         * modules/fcntl: Likewise.
17050         * modules/fcntl-h: Likewise.
17051         * modules/gethrxtime: Likewise.
17052         * modules/gettime: Likewise.
17053         * modules/ignore-value: Likewise.
17054         * modules/inet_ntop: Likewise.
17055         * modules/inet_pton: Likewise.
17056         * modules/inttypes: Likewise.
17057         * modules/isnand-nolibm: Likewise.
17058         * modules/isnanf-nolibm: Likewise.
17059         * modules/mbchar: Likewise.
17060         * modules/mbfile: Likewise.
17061         * modules/mbiter: Likewise.
17062         * modules/mbuiter: Likewise.
17063         * modules/netdb: Likewise.
17064         * modules/netinet_in: Likewise.
17065         * modules/nproc: Likewise.
17066         * modules/pagealign_alloc: Likewise.
17067         * modules/poll: Likewise.
17068         * modules/printf-frexp: Likewise.
17069         * modules/pthread: Likewise.
17070         * modules/putenv: Likewise.
17071         * modules/random_r: Likewise.
17072         * modules/relocatable-prog: Likewise.
17073         * modules/search: Likewise.
17074         * modules/select: Likewise.
17075         * modules/selinux-h: Likewise.
17076         * modules/settime: Likewise.
17077         * modules/signal: Likewise.
17078         * modules/size_max: Likewise.
17079         * modules/socklen: Likewise.
17080         * modules/ssize_t: Likewise.
17081         * modules/stdarg: Likewise.
17082         * modules/stdbool: Likewise.
17083         * modules/stddef: Likewise.
17084         * modules/stdint: Likewise.
17085         * modules/stdio: Likewise.
17086         * modules/stdlib: Likewise.
17087         * modules/string: Likewise.
17088         * modules/strings: Likewise.
17089         * modules/sys_file: Likewise.
17090         * modules/sys_ioctl: Likewise.
17091         * modules/sys_select: Likewise.
17092         * modules/sys_socket: Likewise.
17093         * modules/sys_stat: Likewise.
17094         * modules/sys_time: Likewise.
17095         * modules/sys_times: Likewise.
17096         * modules/sys_utsname: Likewise.
17097         * modules/sys_wait: Likewise.
17098         * modules/sysexits: Likewise.
17099         * modules/time: Likewise.
17100         * modules/times: Likewise.
17101         * modules/tmpfile: Likewise.
17102         * modules/trim: Likewise.
17103         * modules/unistd: Likewise.
17104         * modules/wchar: Likewise.
17105         * modules/wctype: Likewise.
17106
17107 2009-09-17  Bruno Haible  <bruno@clisp.org>
17108
17109         Make getdate.y compile on QNX and NetBSD 5 / i386.
17110         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17111         TIME_T_FITS_IN_LONG_INT.
17112         * lib/getdate.y (long_time_t): New type.
17113         (relative_time): Change type of 'seconds' field to long_time_t.
17114         (get_date): Update types of local variables. Check against overflow
17115         during conversion from long_time_t to time_t.
17116         Reported by Matt Kraai <kraai@ftbfs.org>
17117         and Hasso Tepper <hasso@netbsd.org>.
17118
17119 2009-09-17  Bruno Haible  <bruno@clisp.org>
17120
17121         * modules/COPYING: Update copyright years.
17122         * modules/README: Likeiwse.
17123         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17124         Reported by Ian Beckwith <ianb@erislabs.net>.
17125
17126 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17127
17128         * users.txt: Update references for gnuit package.
17129
17130 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17131
17132         * m4/getdelim.m4: Fix typo in copyright line.
17133
17134 2009-09-17  Bruno Haible  <bruno@clisp.org>
17135
17136         * lib/atoll.c: Use the standard header with GPL copyright.
17137         * lib/argz.in.h: Likewise.
17138         * lib/glob.c: Likewise.
17139         * lib/glob-libc.h: Likewise.
17140         * lib/random_r.c: Likewise.
17141         * lib/siglist.h: Likewise.
17142         * lib/strsignal.c: Likewise.
17143         Reported by Ian Beckwith <ianb@erislabs.net>.
17144
17145 2009-09-17  Eric Blake  <ebb9@byu.net>
17146
17147         rmdir: ensure correct dependency order
17148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17149
17150 2009-09-17  Bruno Haible  <bruno@clisp.org>
17151
17152         Disable assertion that fails on NetBSD 5 / i386.
17153         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17154         Reported by Sam Steingold <sds@gnu.org>
17155         and Hasso Tepper <hasso@netbsd.org>.
17156
17157 2009-09-16  Eric Blake  <ebb9@byu.net>
17158
17159         unlinkdir: port to mingw
17160         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17161         on which no one can unlink a directory.
17162
17163         stdlib: sort witness names
17164         * modules/stdlib (Makefile.am): Sort replacements.
17165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17166         * lib/stdlib.in.h: Likewise.
17167
17168         parse-duration-tests: avoid link failure
17169         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17170         LIBINTL.
17171         Reported by Tom G. Christensen.
17172
17173         openat-tests: ensure unlinkat behaves like rmdir
17174         * tests/test-rmdir.c (main): Factor guts...
17175         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17176         * modules/rmdir-tests (Files): Ship new file.
17177         * modules/openat-tests: New test.
17178         * tests/test-unlinkat.c: Likewise.
17179
17180         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17181         * modules/rmdir-errno (Status, Notice): Now obsolete.
17182
17183         rmdir: work around cygwin 1.5.x and mingw bugs
17184         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17185         * lib/rmdir.c (rmdir): Work around it.
17186         * modules/rmdir (Status, Notice): No longer obsolete.
17187         (Files): Add dos.m4.
17188         (Depends-on): Add unistd.
17189         (configure.ac): Set witnesses.
17190         (License): Relax to LGPLv2+.
17191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17192         * modules/unistd (Makefile.am): Substitute witnesses.
17193         * lib/unistd.in.h (rmdir): Declare replacement.
17194         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17195         * modules/rmdir-tests: New tests.
17196         * tests/test-rmdir.c: Likewise.
17197
17198 2009-09-15  Eric Blake  <ebb9@byu.net>
17199
17200         fchdir: improve use of replacement functions
17201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17204         REPLACE_CLOSEDIR.
17205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17206         * modules/sys_stat (Makefile.am): Substitute correct witness.
17207         * modules/dirent (Makefile.am): Likewise.
17208         * modules/unistd (Makefile.am): Likewise.
17209         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17210         * lib/unistd.in.h (dup): Likewise.
17211         * lib/sys_stat.in.h (fstat): Likewise.
17212
17213         maint: ignore gnulib-tool temp files
17214         * .gitignore: Ignore files created during gnulib-tool --test.
17215
17216 2009-09-13  Jim Meyering  <meyering@redhat.com>
17217
17218         posixtm: don't reject a time that specify "60" as the number of seconds
17219         * lib/posixtm.c (posixtime): The code to reject invalid dates
17220         would also reject a time specified with the .60 suffix.
17221         But POSIX allows that, in order to accommodate leap seconds.
17222         So don't reject it.
17223         (main): Adjust tests accordingly.
17224         * modules/posixtm (Depends-on): Add stpcpy.
17225
17226 2009-09-11  Jim Meyering  <meyering@redhat.com>
17227
17228         announce-gen: include [$release_type] in emitted Subject:
17229         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17230         e.g., [stable] in the emitted Subject: line.
17231
17232 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17233
17234         Remove obsolete macros from several modules.
17235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17236         obsolete Autoconf macros with their modern counterparts.
17237         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17238         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17240         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17241         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17244         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17245         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17246         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17247         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17248         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17249         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17250         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17251         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17252         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17253         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17254         * m4/time_r.m4 (gl_TIME_R): Likewise.
17255         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17256         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17257         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17258
17259         Fix copyright header in build-aux scripts.
17260         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17261         recommendation.
17262         * build-aux/ncftpput-ftp: Likewise.
17263         * build-aux/update-copyright: Likewise.
17264
17265 2009-09-09  Eric Blake  <ebb9@byu.net>
17266
17267         test-link: allow Linux choice of errno
17268         * tests/test-link.c (main): Relax test for alternate error.
17269
17270         strndup: fix improper m4 caching
17271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17272         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17273         (gl_PREREQ_STRNDUP): Delete.
17274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17275         * modules/string (Makefile.am): Substitute it.
17276         * lib/string.in.h (strndup): Modernize prototype.
17277
17278         getcwd: port to mingw
17279         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17280         different from the POSIX assumptions made throughout the getcwd
17281         module; fortunately, the mingw getcwd does not need replacement.
17282         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17283         * modules/getcwd-tests: New test.
17284         * tests/test-getcwd.c: Likewise.
17285
17286         link: fix platform bugs
17287         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17288         * lib/link.c (link): Work around them.  Fix related mingw bug.
17289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17290         * modules/unistd (Makefile.am): Substitute it.
17291         * lib/unistd.in.h (link): Declare replacement.
17292         * doc/posix-functions/link.texi (link): Document this.
17293         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17294
17295         test-link: consolidate into single C program, test more cases
17296         * tests/test-link.sh: Delete.
17297         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17298         at least Cygwin and Solaris.
17299         * modules/link-tests (Files): Remove unused file.
17300         (Depends-on): Add errno, sys_stat.
17301         (Makefile.am): Simplify.
17302
17303 2009-09-08  Bruno Haible  <bruno@clisp.org>
17304
17305         Work around towlower, towupper bug on mingw.
17306         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17307         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17308         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17309         * doc/posix-functions/towupper.texi: Likewise.
17310         Reported by Eric Blake.
17311
17312 2009-09-08  Jim Meyering  <meyering@redhat.com>
17313
17314         build: don't try to run autoheader if we don't use it
17315         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17316         is not used in configure.ac.
17317
17318 2009-09-08  Eric Blake  <ebb9@byu.net>
17319
17320         euidaccess: fix compilation error
17321         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17322
17323         rawmemchr: relax license
17324         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17325         okay.
17326         Reported by Jim Meyering.
17327
17328         mkfifoat: new module
17329         * modules/mkfifoat: New file.
17330         * lib/mkfifoat.c: Likewise.
17331         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17333         * modules/sys_stat (Makefile.am): Use them.
17334         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17335         * MODULES.html.sh (File system functions): Mention module.
17336         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17337         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17338         * modules/mkfifoat-tests: New test.
17339         * tests/test-mkfifoat.c: Likewise.
17340
17341         strchrnul: relax license
17342         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17343         okay.
17344         Reported by Jim Meyering.
17345
17346 2009-09-08  Eric Blake  <ebb9@byu.net>
17347
17348         fstatat: fix compilation on Solaris
17349         * lib/fstatat.c (includes): Add fcntl.h.
17350         Reported by Pádraig Brady.
17351
17352 2009-09-07  Eric Blake  <ebb9@byu.net>
17353
17354         rename: modernize replacement
17355         * modules/rename (Depends-on): Add stdio.
17356         (configure.ac): Declare witness.
17357         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17358         stdio take care of replacement.
17359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17360         * modules/stdio (Makefile.am): Substitute them.
17361         * lib/stdio.in.h (rename): Declare replacement.
17362         * lib/rename.c (includes): Allow cross-compilation to non-windows
17363         machines.
17364         * doc/posix-functions/rename.texi (rename): Improve
17365         documentation.
17366
17367         stdio: sort witness names
17368         * modules/stdio (Makefile.am): Sort replacements.
17369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17370         * lib/stdio.in.h: Likewise.
17371
17372         getcwd: minor cleanups
17373         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17374         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17375
17376         openat: provide more convenience names
17377         * modules/faccessat (configure.ac): Add C witness.
17378         * lib/unistd.in.h (readlinkat): Fix typo.
17379         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17380         convenience wrappers.
17381         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17382         wrappers in syntax checks.
17383
17384 2009-09-06  Eric Blake  <ebb9@byu.net>
17385
17386         doc: fix comments in recent patches
17387         * lib/faccessat.c: Mention correct function.
17388         * lib/fchmodat.c: Likewise.
17389         * lib/fchownat.c: Likewise.
17390         * lib/symlinkat.c: Likewise.
17391         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17392         constants.
17393
17394         faccessat, symlinkat: continue cleanup of previous patch
17395         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17396         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17397         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17399         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17400         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17401         set.
17402
17403 2009-09-06  Bruno Haible  <bruno@clisp.org>
17404
17405         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17406         (fstatat): Declare if GNULIB_FSTATAT is set.
17407         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17408         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17409         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17410         * modules/fcntl-h (Files): Remove m4/openat.m4.
17411         * modules/sys_stat (Files): Remove m4/openat.m4.
17412         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17413         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17414         * modules/unistd (Files): Remove m4/openat.m4.
17415         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17416         GNULIB_OPENAT.
17417         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17418         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17420         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17421         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17422         gl_OPENAT_DEFAULTS.
17423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17424         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17425         Don't require gl_OPENAT_DEFAULTS.
17426         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17427         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17428         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17429         (gl_OPENAT_DEFAULTS): Remove macro.
17430
17431 2009-09-06  Bruno Haible  <bruno@clisp.org>
17432
17433         * modules/openat (configure.ac): Remove unneeded witness.
17434
17435 2009-09-06  Bruno Haible  <bruno@clisp.org>
17436
17437         Set errno to ENOSYS when a function is entirely unsupported.
17438         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17439         EOPNOTSUPP.
17440         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17441         * modules/chown (Depends-on): Remove errno.
17442
17443 2009-09-06  Bruno Haible  <bruno@clisp.org>
17444
17445         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17446
17447 2009-09-06  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17450
17451 2009-09-06  Ben Pfaff  <blp@gnu.org>
17452             Bruno Haible  <bruno@clisp.org>
17453
17454         Work around a glibc bug in strtok_r.
17455         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17456         Undefine if UNDEFINE_STRTOK_R is set.
17457         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17459         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17460         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17461         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17462         UNDEFINE_STRTOK_R.
17463         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17464
17465 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17466
17467         exclude: minor fix
17468         * lib/exclude.c: Include wctype.h
17469
17470 2009-09-06  Akim Demaille  <demaille@gostai.com>
17471
17472         bootstrap: improve error message
17473         * build-aux/bootstrap (find_tool): Upon failure, report the list
17474         of candidates.
17475         Honor the initial value of the envvar.
17476
17477 2009-09-05  Eric Blake  <ebb9@byu.net>
17478
17479         symlinkat: new module
17480         * modules/symlinkat: New file.
17481         * lib/symlinkat.c: Likewise.
17482         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17484         * modules/unistd (Makefile.am): Use them.
17485         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17486         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17487         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17488         * MODULES.html.sh (File system functions): Mention module.
17489         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17490         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17491         * modules/symlinkat-tests: New test.
17492         * tests/test-symlinkat.c: Likewise.
17493
17494         test-openat-safer: add more checks
17495         * tests/test-openat-safer.c (main): Check more code paths.
17496
17497 2009-09-05  Jim Meyering  <meyering@redhat.com>
17498
17499         syntax-check: detect unnecessary inclusion of openat.h
17500         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17501
17502 2009-09-05  Bruno Haible  <bruno@clisp.org>
17503
17504         Support towlower, towupper.
17505         * doc/posix-functions/towlower.texi: Mention module wctype.
17506         * doc/posix-functions/towupper.texi: Likewise.
17507         * lib/wctype.in.h (towlower, towupper): New functions.
17508         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17509         (ASSERT): New macro.
17510         (e): New variable.
17511         (main): Test also towlower, towupper. Test WEOF argument.
17512         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17513
17514 2009-09-05  Bruno Haible  <bruno@clisp.org>
17515
17516         Fix conversion behaviour when the input is invalid.
17517         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17518         mark occurring in first pass of indirect conversion.
17519         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17520         input.
17521         Found by clang's static analyzer.
17522
17523 2009-09-05  Bruno Haible  <bruno@clisp.org>
17524
17525         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17526         where direct conversion is possible.
17527
17528 2009-09-04  Eric Blake  <ebb9@byu.net>
17529
17530         openat: fail with ENOENT on empty name
17531         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17532         buffer.
17533
17534         link-follow: fix logic bug in prior patch
17535         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17536         reversed sense of yes and no in prior patch.  Avoid confusing
17537         compilation failure with desired semantics.
17538
17539         link-follow: accomodate mingw and cross-compilation
17540         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17541         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17542         cross-compilation results to -1, to make linkat easier to
17543         implement when cross-compiling.  Trivially support mingw.
17544         * modules/link-follow (configure.ac): Call new name.
17545         * NEWS: Mention this.
17546
17547 2009-09-03  Eric Blake  <ebb9@byu.net>
17548
17549         faccessat: compile replacement
17550         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17551         needed.
17552
17553         fts: fix compilation error
17554         * lib/fts.c (includes): Re-add "openat.h", for
17555         openat_needs_fchdir.
17556
17557         faccessat: new module
17558         * modules/faccessat: New file.
17559         * lib/faccessat.c: Likewise.
17560         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17562         * modules/unistd (Makefile.am): Use it.
17563         * lib/unistd.in.h (faccessat): Declare it.
17564         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17565         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17566         * MODULES.html.sh (File system functions): Mention it.
17567         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17568         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17569
17570         euidaccess: prefer POSIX over non-standard implementation
17571         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17572         * lib/euidaccess.c (euidaccess): Use it if available.
17573
17574         openat: make template easier to use
17575         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17576         AT_FUNC_F2 to be undefined.
17577         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17578         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17579         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17580         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17581         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17582         Likewise.
17583         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17584         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17585         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17586         Likewise.
17587
17588         openat: declare in POSIX headers
17589         * NEWS: Mention this.
17590         * modules/openat (configure.ac): Declare witnesses.
17591         (Depends-on): Add fcntl-h, sys_stat, unistd.
17592         (Include): Mention correct headers.
17593         * modules/fcntl-h (Depends-on): Add link-warning.
17594         (Files): Add openat.m4.
17595         (Makefile.am): Substitute witnesses.
17596         * modules/sys_stat (Files, Makefile.am): Likewise.
17597         * modules/unistd (Files, Makefile.am): Likewise.
17598         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17599         (gl_OPENAT_DEFAULTS): New macro.
17600         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17603         (SYS_STAT_H): Remove unused variable.
17604         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17605         * lib/fcntl--.h (includes): Remove unneeded header.
17606         * lib/openat-safer.c (includes): Likewise.
17607         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17608         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17609         appropriate headers.
17610         (__OPENAT_PREFIX): Delete.
17611         * lib/fcntl.in.h (openat): Provide declaration.
17612         (AT_FDCWD): Fix Solaris bug.
17613         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17614         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17615         * lib/fchmodat.c (includes):  Adjust to find declaration.
17616         * lib/fchownat.c (includes): Likewise.
17617         * lib/mkdirat.c (includes): Likewise.
17618         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17619         still visible.
17620
17621 2009-09-02  Eric Blake  <ebb9@byu.net>
17622
17623         errno: use consistently
17624         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17625         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17626         * lib/canonicalize.c (ELOOP): Likewise.
17627         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17628         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17629         * lib/lchown.c (EOPNOTSUPP): Likewise.
17630         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17631         * lib/savewd.c (ESTALE): Likewise.
17632         * lib/settime.c (ENOSYS): Likewise.
17633         * lib/utimens.c (ENOSYS): Likewise.
17634         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17635         * lib/chdir-safer.c (ELOOP): Likewise.
17636         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17637         * modules/c-stack (Depends-on): Add errno.
17638         * modules/canonicalize (Depends-on): Likewise.
17639         * modules/chdir-safer (Depends-on): Likewise.
17640         * modules/fdopendir (Depends-on): Likewise.
17641         * modules/inet_ntop (Depends-on): Likewise.
17642         * modules/inet_pton (Depends-on): Likewise.
17643         * modules/lchown (Depends-on): Likewise.
17644         * modules/openat (Depends-on): Likewise.
17645         * modules/savewd (Depends-on): Likewise.
17646         * modules/settime (Depends-on): Likewise.
17647         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17648
17649         fts: avoid leaking fds
17650         * modules/fts (Depends-on): Add cloexec.
17651         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17652         flag.
17653
17654         fts: make directory fds more robust
17655         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17656         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17657
17658         backupfile, chdir-long, fts, savedir: make safer
17659         * lib/backupfile.c (includes): Use "dirent--.h", since
17660         numbered_backup can write to stderr during readdir.
17661         * lib/savedir.c (includes): Likewise.
17662         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17663         emulation can write to stderr on failure.
17664         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17665         * lib/getcwd.c: Document why opendir_safer is unused.
17666         * lib/glob.c: Likewise.
17667         * lib/scandir.c: Likewise.
17668         * lib/openat-proc.c: Likewise, for open_safer.
17669         * modules/backupfile (Depends-on): Add dirent-safer.
17670         * modules/savedir (Depends-on): Likewise.
17671         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17672         * modules/chdir-long (Depends-on): Add openat-safer.
17673
17674         openat-safer: new module
17675         * modules/openat-safer: New file.
17676         * lib/openat-safer.c: Likewise.
17677         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17678         * lib/fcntl-safer.h (openat_safer): Declare.
17679         * lib/fcntl--.h (openat): Override.
17680         * MODULES.html.sh (File descriptor based I/O): Mention it.
17681         * lib/openat.h: Add double-inclusion guards.
17682         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17683         "fcntl--.h", so we can implement openat.
17684         * modules/openat-safer-tests: New test.
17685         * tests/test-openat-safer.c: New file.
17686
17687         dirent-safer: new module
17688         * modules/dirent-safer: New file.
17689         * lib/dirent--.h: Likewise.
17690         * lib/dirent-safer.h: Likewise.
17691         * lib/opendir-safer.c: Likewise.
17692         * m4/dirent-safer.m4: Likewise.
17693         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17694         * modules/dirent-safer-tests: New test.
17695         * tests/test-dirent-safer.c: New file.
17696         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17697
17698         fdopendir: optimize on mingw
17699         * lib/unistd.in.h (_gl_directory_name): New prototype.
17700         * lib/fchdir.c (_gl_directory_name): Implement it.
17701         (fchdir): Use it to simplify implementation.
17702         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17703         fchdir, when available, to avoid calling [f]chdir().
17704
17705         fdopendir: split into its own module
17706         * lib/openat.c (fdopendir): Move...
17707         * lib/fdopendir.c: ...into new file.
17708         * modules/fdopendir: New module.
17709         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17710         * modules/openat (Depends-on): Add fdopendir.
17711         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17712         fdopendir here.
17713         * modules/savedir (Depends-on): Only need fdopendir, not full
17714         openat.
17715         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17716         * lib/openat.h (fdopendir): Drop prototype.
17717         * lib/dirent.in.h (fdopendir): Provide prototype.
17718         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17719         * modules/dirent (Makefile.am): Substitute them.
17720         * MODULES.html.sh (File system functions): Mention it.
17721         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17722         * modules/fdopendir-tests: New file.
17723         * tests/test-fdopendir.c: Likewise.
17724
17725         fchdir: use more consistent macro convention
17726         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17727         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17728         REPLACE_FCHDIR, rather than relying on config.h macros.
17729         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17730         inside a single make-time REPLACE_FCHDIR block, rather than using
17731         the config.h FCHDIR_REPLACEMENT.
17732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17733         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17734         Manage fstat replacement.
17735         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17736         REPLACE_FCHDIR.
17737         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17738         (Makefile.am): Substitute REPLACE_FCHDIR.
17739         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17740         FCHDIR_REPLACEMENT.
17741         * lib/dup-safer.c (dup_safer): Likewise.
17742         * lib/dup2.c (rpl_dup2): Likewise.
17743         * lib/dup3.c (rpl_dup3): Likewise.
17744         * lib/open.c (rpl_open): Likewise.
17745
17746         fchdir: simplify error handling, and support dup3
17747         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17748         stdbool, malloc-posix, realloc-posix.
17749         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17750         (ensure_dirs_slot): Return false on allocation failure.
17751         (rpl_dup2): Delete.
17752         (_gl_register_dup): New function.
17753         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17754         (_gl_register_fd): Close fd on allocation failure.
17755         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17756         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17757         prototype.
17758         (rpl_dup2_fchdir): Delete prototype.
17759         * lib/open.c (open): Update caller.
17760         * lib/dup2.c (dup2): Track fchdir metadata.
17761         * lib/dup3.c (dup3): Likewise.
17762         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17764
17765 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17766
17767         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17768         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17769         don't pass arguments to AC_OUTPUT.
17770
17771 2009-09-02  Bruno Haible  <bruno@clisp.org>
17772
17773         * modules/mkdtemp (License): Relicense under LGPLv2+.
17774         Reported by Paolo Bonzini.
17775
17776 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17777
17778         Replace uses of obsolete autoconf macros in Jim's modules.
17779         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17780         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17781         can evoke a warning from autoconf when run with -Wobsolete
17782         enabled.  They were declared obsolete for good reasons (see
17783         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17784         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17785         should not continue using the deprecated macros.
17786         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17787         obsolete Autoconf macros with modern counterparts.
17788         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17789         * m4/dos.m4 (gl_AC_DOS): Likewise.
17790         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17792         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17793         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17794         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17795         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17796         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17797         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17798         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17799         Likewise.
17800         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17801         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17802         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17803         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17804         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17805         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17806
17807 2009-09-01  Eric Blake  <ebb9@byu.net>
17808
17809         fchdir: fix off-by-one bug in previous patch
17810         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17811         (_gl_unregister_fd): Delete useless if.
17812
17813 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17814
17815         maint.mk: sort the list of syntax-check rules
17816         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17817         easier to get a sense of progress when the rules are run sequentially
17818         and take a long time.
17819
17820 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17821
17822         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17823         * modules/netinet_in: Likewise.
17824         * modules/sys_file: Likewise.
17825         * modules/sys_ioctl: Likewise.
17826         * modules/sys_select: Likewise.
17827         * modules/sys_socket: Likewise.
17828         * modules/sys_stat: Likewise.
17829         * modules/sys_time: Likewise.
17830         * modules/sys_times: Likewise.
17831         * modules/sys_utsname: Likewise.
17832         * modules/sys_wait: Likewise.
17833
17834 2009-09-01  Jim Meyering  <meyering@redhat.com>
17835
17836         fts: help ensure that return values are not ignored
17837         * lib/fts_.h (__GNUC_PREREQ): Define.
17838         (__attribute_warn_unused_result__): Define.
17839         (fts_children, fts_close, fts_open, fts_read): Declare with
17840         __attribute_warn_unused_result__.
17841
17842         fts: fts_close now fails also when closing a dir file descriptor fails
17843         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17844         and propagate to caller, along with errno.
17845
17846         announce-gen: correct formatting in --help output
17847         * build-aux/announce-gen (usage): Move the one-line description in
17848         --help output "up", to where it belongs, just after Usage:.
17849
17850 2009-08-31  Eric Blake  <ebb9@byu.net>
17851
17852         fchdir: port to mingw
17853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17854         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17855         opened, then use a substitute.
17856         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17857         replacement.
17858         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17859         (_gl_register_fd): No need to check stat if open already filters
17860         all directories.
17861         (fchdir): Fix error condition to match POSIX.
17862         * modules/fchdir (Depends-on): Add sys_stat.
17863         * doc/posix-functions/open.texi (open): Document the limitation.
17864         * modules/fchdir-tests: New file.
17865         * tests/test-fchdir.c: Likewise.
17866
17867         canonicalize: allow cross-testing from cygwin to mingw
17868         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17869         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17870         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17871         Likewise.
17872         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17873         target does not support symlinks.
17874         * tests/test-canonicalize-lgpl.sh: Likewise.
17875
17876         chown: avoid compilation warning on mingw
17877         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17878         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17879         mingw.
17880         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17881         * modules/chown (Depends-on): Add errno.
17882
17883 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17884
17885         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17886         command.
17887
17888 2009-08-31  Jim Meyering  <meyering@redhat.com>
17889
17890         canonicalize: remove useless initialization
17891         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17892         initialization of local, "end".
17893
17894 2009-08-30  Bruno Haible  <bruno@clisp.org>
17895
17896         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17897         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17898         ENOSYS.
17899
17900 2009-08-30  Bruno Haible  <bruno@clisp.org>
17901
17902         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17903         /usr/xpg4/bin/tr when it exists.
17904         * tests/test-pipe-filter-gi1.sh: Likewise.
17905
17906 2009-08-30  Bruno Haible  <bruno@clisp.org>
17907
17908         Work around deficient /usr/bin/id program on Solaris.
17909         * tests/test-file-has-acl.sh (ID): New variable.
17910         * tests/test-set-mode-acl.sh (ID): Likewise.
17911         * tests/test-copy-acl.sh (ID): Likewise.
17912         * tests/test-copy-file.sh (ID): Likewise.
17913
17914 2009-08-30  Bruno Haible  <bruno@clisp.org>
17915
17916         New module 'xstriconveh'.
17917         * lib/xstriconveh.h: New file.
17918         * lib/xstriconveh.c: New file.
17919         * modules/xstriconveh: New file.
17920
17921 2009-08-30  Bruno Haible  <bruno@clisp.org>
17922
17923         Make it easier to use mem_cd_iconveh.
17924         * lib/striconveh.h (iconveh_t): New type.
17925         (iconveh_open, iconveh_close): New declarations.
17926         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17927         with a single 'const iconveh_t *' argument.
17928         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17929         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17930         with a single 'const iconveh_t *' argument.
17931         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17932         * tests/test-striconveh.c (main): Update.
17933         * NEWS: Mention the change.
17934
17935 2009-08-30  Bruno Haible  <bruno@clisp.org>
17936
17937         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17938         problem.
17939
17940 2009-08-30  Bruno Haible  <bruno@clisp.org>
17941
17942         Work around iconv_open problem on Solaris.
17943         * lib/iconv_open-solaris.gperf: New file.
17944         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17946         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17947         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17948         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17949         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17950
17951 2009-08-29  Jim Meyering  <meyering@redhat.com>
17952
17953         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17954         * top/maint.mk (cvs-check): Remove target; it was just an alias
17955         to the better-named vc-diff-check.
17956         (maintainer-distcheck): Remove rule.  It was used only from
17957         the (alpha/beta/major) target, and all of its commands but one
17958         were coreutils-specific.
17959         (vc-dist): Remove rule.
17960         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17961         Run vc-diff-check, not vc-dist.
17962         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17963
17964 2009-08-27  Bruno Haible  <bruno@clisp.org>
17965
17966         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17967         of 0.
17968
17969 2009-08-27  Bruno Haible  <bruno@clisp.org>
17970
17971         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17972         compilers.
17973         * doc/func.texi: Document the SunPRO C bug.
17974
17975 2009-08-27  Bruno Haible  <bruno@clisp.org>
17976
17977         Fix link error on Solaris.
17978         * tests/test-parse-duration.c (xstrdup): Remove function.
17979
17980 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17981
17982         ignore-value: handle pointer types, too
17983         * lib/ignore-value.h (__attribute__): Remove definition.
17984         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17985         of a more concise and more-often effective "(void) i" statement.
17986         (ignore_ptr): New function to suppress warnings from functions that
17987         return pointers, and to make it explicit that one function doesn't
17988         handle all cases.
17989
17990 2009-08-25  Bruno Haible  <bruno@clisp.org>
17991
17992         dup2: work around a Linux bug.
17993         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17994         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17995         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17996         Reported by Simon Josefsson.
17997
17998 2009-08-25  Jim Meyering  <meyering@redhat.com>
17999
18000         libguestfs uses gnulib
18001         * users.txt: Add libguestfs.
18002
18003 2009-08-24  Eric Blake  <ebb9@byu.net>
18004
18005         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18006         * lib/pipe2.c (includes): Add binary-io.h.
18007         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18008
18009 2009-08-24  Bruno Haible  <bruno@clisp.org>
18010
18011         Tolerate declared but missing accept4 syscall.
18012         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18013         available.
18014         * lib/sys_socket.in.h (accept4): If the function is already present,
18015         override it.
18016         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18017         * modules/accept4 (Makefile.am): Compile accept4.c always.
18018         Reported by Paolo Bonzini and Eric Blake.
18019
18020 2009-08-23  Bruno Haible  <bruno@clisp.org>
18021
18022         New module 'accept4'.
18023         * lib/sys_socket.in.h (accept4): New declaration.
18024         * lib/accept4.c: New file.
18025         * m4/accept4.m4: New file.
18026         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18027         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18028         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18029         HAVE_ACCEPT4.
18030         * modules/accept4: New file.
18031         * doc/glibc-functions/accept4.texi: Mention the new module.
18032
18033 2009-08-24  Jim Meyering  <meyering@redhat.com>
18034
18035         progname: also set global program_invocation_name, when possible
18036         Before this change, a libtool-enabled program that calls glibc's
18037         error function would report the program name as
18038         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18039         * modules/progname (configure.ac): Check for a declaration of
18040         program_invocation_name.
18041         * lib/progname.c:  Include <errno.h>.
18042         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18043         Set program_invocation_name.
18044
18045 2009-08-23  Bruno Haible  <bruno@clisp.org>
18046
18047         * lib/dup3.c: Include <string.h>.
18048
18049 2009-08-23  Bruno Haible  <bruno@clisp.org>
18050
18051         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18052         * lib/pipe2.c (pipe2): Likewise.
18053         Suggested by Eric Blake.
18054
18055 2009-08-23  Bruno Haible  <bruno@clisp.org>
18056
18057         Tolerate declared but missing dup3 syscall.
18058         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18059         * lib/unistd.in.h (dup3): If the function is already present,
18060         override it.
18061         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18062         * modules/dup3 (Makefile.am): Compile dup3.c always.
18063         Reported by Paolo Bonzini.
18064
18065 2009-08-23  Bruno Haible  <bruno@clisp.org>
18066
18067         Tolerate declared but missing pipe2 syscall.
18068         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18069         available.
18070         * lib/unistd.in.h (pipe2): If the function is already present,
18071         override it.
18072         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18073         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18074         Reported by Paolo Bonzini.
18075
18076 2009-08-23  Bruno Haible  <bruno@clisp.org>
18077
18078         * lib/pipe2.c (pipe2): Move #ifs inside function.
18079
18080 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18081
18082         quotearg: document limitations of quote_these_too
18083         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18084         those limitations are created.
18085         * lib/quotearg.h (set_char_quoting): Document that digits and
18086         letters that are special after backslash are not permitted.
18087         (quotearg_char): Cross-reference set_char_quoting documentation.
18088
18089 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18090
18091         quotearg: implement custom_quoting_style
18092         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18093         right_quote fields.
18094         (set_custom_quoting): New public function.
18095         (quotearg_buffer_restyled): Add left_quote and right_quote
18096         arguments, handle them very much like locale quoting, and update
18097         all uses.
18098         (quotearg_n_custom): New public function.
18099         (quotearg_n_custom_mem): New public function.
18100         (quotearg_custom): New public function.
18101         (quotearg_custom_mem): New public function.
18102         * lib/quotearg.h: Prototype and document new public functions.
18103         (enum quoting_style): For escape_quoting_style and
18104         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18105         ignored even though they're otherwise like c_quoting_style.
18106         Add custom_quoting_style member and document with comparison to
18107         clocale_quoting_style.
18108         * tests/test-quotearg.c (custom_quotes): New array.
18109         (custom_results): New array.
18110         (main): Extend to test custom quoting.
18111
18112 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18113
18114         quotearg: fix right quote escaping when it's in quote_these_too
18115         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18116         quote, be sure to prepend only one backslash.
18117         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18118         (main): Test it.
18119
18120 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18121
18122         quotearg-tests: test escaping of embedded locale quotes
18123         * tests/test-quotearg.c (struct result_strings): Add member for
18124         new input.
18125         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18126         (inputs): Add new input.
18127         (results_g): Add expected results.
18128         (flag_results): Likewise.
18129         (locale_results): Likewise.
18130         (compare_strings): Check those.
18131
18132 2009-08-23  Bruno Haible  <bruno@clisp.org>
18133
18134         Tests for module 'dup3'.
18135         * modules/dup3-tests: New file.
18136         * tests/test-dup3.c: New file.
18137
18138         New module 'dup3'.
18139         * lib/unistd.in.h (dup3): New declaration.
18140         * lib/dup3.c: New file.
18141         * m4/dup3.m4: New file.
18142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18143         HAVE_DUP3.
18144         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18145         * modules/dup3: New file.
18146         * doc/glibc-functions/dup3.texi: Mention the new module.
18147
18148 2009-08-23  Bruno Haible  <bruno@clisp.org>
18149
18150         Tweak the dup2 test.
18151         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18152         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18153         the test file is still empty. Fix argument order of lseek.
18154
18155 2009-08-23  Bruno Haible  <bruno@clisp.org>
18156
18157         Avoid test link errors when the modules getopt-gnu, gettext are used.
18158         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18160
18161 2009-08-23  Bruno Haible  <bruno@clisp.org>
18162
18163         Fix getdtablesize() on mingw.
18164         * lib/getdtablesize.c (getdtablesize): Implement differently.
18165         * lib/unistd.in.h (getdtablesize): Improve comment.
18166
18167 2009-08-23  Bruno Haible  <bruno@clisp.org>
18168
18169         New module 'mkostemp'.
18170         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18171         * lib/stdlib.in.h (mksotemp): New declaration.
18172         * lib/mkostemp.c: New file, from glibc with modifications.
18173         * lib/tempname.h (GT_FILE): Remove outdated comment.
18174         (gen_tempname): Add flags argument.
18175         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18176         (__GT_FILE): Map to 1.
18177         (small_open, large_open): Remove macros.
18178         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18179         * lib/mkstemp.c (mkstemp): Update.
18180         * lib/mkdtemp.c (mkdtemp): Likewise.
18181         * m4/mkostemp.m4: New file.
18182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18183         HAVE_MKOSTEMP.
18184         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18185         HAVE_MKOSTEMP.
18186         * modules/mkostemp: New file, based on modules/mkstemp.
18187         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18188         * NEWS: Mention the change.
18189
18190 2009-08-23  Bruno Haible  <bruno@clisp.org>
18191
18192         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18193         Reported by Eric Blake.
18194
18195 2009-08-23  Bruno Haible  <bruno@clisp.org>
18196
18197         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18198         Reported by Eric Blake.
18199
18200 2009-08-23  Bruno Haible  <bruno@clisp.org>
18201
18202         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18203         * modules/pipe2 (Depends-on): Likewise.
18204
18205 2009-08-23  Eric Blake  <ebb9@byu.net>
18206
18207         fcntl-h: add O_TTY_INIT support
18208         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18209         * tests/test-fcntl-h.c (o): Test it.
18210         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18211
18212         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18213         * modules/fcntl: Move <fcntl.h> header replacement...
18214         * modules/fcntl-h: ...to new name, so as not to collide with
18215         like-named function.
18216         * tests/test-fcntl.c: Rename...
18217         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18218         * modules/fcntl-tests: Rename...
18219         * modules/fcntl-h-tests: ...to this.  Update test file name.
18220         * modules/chdir-long (Depends-on): Update clients.
18221         * modules/chdir-safer (Depends-on): Likewise.
18222         * modules/fcntl-safer (Depends-on): Likewise.
18223         * modules/fts (Depends-on): Likewise.
18224         * modules/mkancesdirs (Depends-on): Likewise.
18225         * modules/mkdir-p (Depends-on): Likewise.
18226         * modules/open (Depends-on): Likewise.
18227         * modules/savewd (Depends-on): Likewise.
18228         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18229         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18230
18231 2009-08-22  Bruno Haible  <bruno@clisp.org>
18232
18233         * modules/binary-io (License): Relicense under LGPL.
18234         * modules/pipe2 (License): Likewise.
18235
18236 2009-08-22  Bruno Haible  <bruno@clisp.org>
18237
18238         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18239         return value.
18240         * lib/pipe-filter-gi.c (filter_init): Likewise.
18241         Reported by Eric Blake.
18242
18243 2009-08-22  Bruno Haible  <bruno@clisp.org>
18244
18245         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18246         * modules/pipe (Depends-on): Add pipe2.
18247
18248 2009-08-22  Bruno Haible  <bruno@clisp.org>
18249
18250         Tests for module 'pipe2'.
18251         * modules/pipe2-tests: New file.
18252         * tests/test-pipe2.c: New file.
18253
18254         New module 'pipe2'.
18255         * lib/unistd.in.h (pipe2): New declaration.
18256         * lib/pipe2.c: New file.
18257         * m4/pipe2.m4: New file.
18258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18259         HAVE_PIPE2.
18260         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18261         * modules/pipe2: New file.
18262         * doc/glibc-functions/pipe2.texi: Mention the new module.
18263
18264 2009-08-22  Bruno Haible  <bruno@clisp.org>
18265
18266         Reference some new glibc functions.
18267         * doc/glibc-functions/accept4.texi: New file.
18268         * doc/glibc-functions/dup3.texi: New file.
18269         * doc/glibc-functions/mkostemp.texi: New file.
18270         * doc/glibc-functions/pipe2.texi: New file.
18271         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18272         (Glibc sys/socket.h): Refer to accept4.
18273         (Glibc unistd.h): Refer to dup3, pipe2.
18274         Reported by Eric Blake.
18275
18276 2009-08-22  Jim Meyering  <meyering@redhat.com>
18277             Bruno Haible  <bruno@clisp.org>
18278
18279         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18280         This makes it so packages using automake-1.11's silent-rules option
18281         can print e.g., a single "GEN    configmake.h" line, rather than
18282         the 30+ statements that perform the job.  If you want to see the
18283         actual commands, you can still run "make V=1".
18284         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18285         so that make output is abbreviated when those variables are defined
18286         appropriately.
18287         * modules/argz: Likewise.
18288         * modules/arpa_inet: Likewise.
18289         * modules/byteswap: Likewise.
18290         * modules/configmake: Likewise.
18291         * modules/dirent: Likewise.
18292         * modules/errno: Likewise.
18293         * modules/fcntl: Likewise.
18294         * modules/float: Likewise.
18295         * modules/fnmatch: Likewise.
18296         * modules/getopt-posix: Likewise.
18297         * modules/glob: Likewise.
18298         * modules/iconv_open: Likewise.
18299         * modules/inttypes: Likewise.
18300         * modules/localcharset: Likewise.
18301         * modules/locale: Likewise.
18302         * modules/math: Likewise.
18303         * modules/netdb: Likewise.
18304         * modules/netinet_in: Likewise.
18305         * modules/poll: Likewise.
18306         * modules/posix_spawnp-tests: Likewise.
18307         * modules/sched: Likewise.
18308         * modules/search: Likewise.
18309         * modules/selinux-h: Likewise.
18310         * modules/signal: Likewise.
18311         * modules/spawn: Likewise.
18312         * modules/stdarg: Likewise.
18313         * modules/stdbool: Likewise.
18314         * modules/stddef: Likewise.
18315         * modules/stdint: Likewise.
18316         * modules/stdio: Likewise.
18317         * modules/stdlib: Likewise.
18318         * modules/string: Likewise.
18319         * modules/strings: Likewise.
18320         * modules/sys_file: Likewise.
18321         * modules/sys_ioctl: Likewise.
18322         * modules/sys_select: Likewise.
18323         * modules/sys_socket: Likewise.
18324         * modules/sys_stat: Likewise.
18325         * modules/sys_time: Likewise.
18326         * modules/sys_times: Likewise.
18327         * modules/sys_utsname: Likewise.
18328         * modules/sys_wait: Likewise.
18329         * modules/sysexits: Likewise.
18330         * modules/time: Likewise.
18331         * modules/unistd: Likewise.
18332         * modules/wchar: Likewise.
18333         * modules/wctype: Likewise.
18334
18335 2009-08-22  Jim Meyering  <meyering@redhat.com>
18336
18337         announce-gen: detect write failure
18338         * build-aux/announce-gen: Add Coda at end.
18339         Remove equivalent-but-more-verbose block at top.
18340
18341 2009-08-19  Akim Demaille  <demaille@gostai.com>
18342
18343         bootstrap: --help to stdout.
18344         * bootstrap (usage): Don't send --help to stderr.
18345         Use a here doc instead of a long string.
18346
18347 2009-08-21  Eric Blake  <ebb9@byu.net>
18348
18349         test-popen-safer: split from test-popen
18350         * tests/test-popen.c (main): Move...
18351         * tests/test-popen.h: ...into new file.
18352         * tests/test-popen-safer2.c: New file.
18353         * modules/popen-tests (Files): Add test-popen.h.
18354         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18355         Suggested by Bruno Haible.
18356
18357         test-fcntl-safer: split from test-open
18358         * tests/test-open.c (main): Move...
18359         * tests/test-open.h: ...into new file.
18360         * tests/test-fcntl-safer.c: New file.
18361         * modules/open-tests (Files): Add test-open.h.
18362         * modules/fcntl-safer-tests: New file.
18363         Suggested by Bruno Haible.
18364
18365         test-fopen-safer: split from test-fopen
18366         * tests/test-fopen.c (main): Move...
18367         * tests/test-fopen.h: ...into new file.
18368         * tests/test-fopen-safer.c: New file.
18369         * modules/fopen-tests (Files): Add test-fopen.h.
18370         * modules/fopen-safer-tests: New file.
18371         Suggested by Bruno Haible.
18372
18373 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18374
18375         popen-safer: test O_CLOEXEC at run-time.
18376         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18377
18378 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18379
18380         fcntl: move more flags to the header
18381         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18382         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18383         * lib/fcntl.in.h: Do both things here.
18384
18385 2009-08-21  Jim Meyering  <meyering@redhat.com>
18386
18387         consistently remove $@-t before redirecting to it
18388         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18389         * modules/alloca-opt: Likewise.
18390         * modules/byteswap: Likewise.
18391         * modules/fnmatch: Likewise.
18392         * modules/getopt-posix: Likewise.
18393         * modules/glob: Likewise.
18394         * modules/poll: Likewise.
18395         * modules/posix_spawnp-tests: Likewise.
18396         * modules/sys_socket: Likewise.
18397         * modules/sysexits: Likewise.
18398
18399 2009-08-21  Eric Blake  <ebb9@byu.net>
18400
18401         popen: simplify access to original popen
18402         * lib/popen.c (rpl_popen): No need to worry about popen being a
18403         macro.
18404         Reported by Bruno Haible.
18405
18406 2009-08-20  Eric Blake  <ebb9@byu.net>
18407
18408         build: avoid some compiler warnings
18409         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18410         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18411         type.
18412         (new_exclude_segment, excluded_file_pattern_p)
18413         (excluded_file_name_p): Reduce scope.
18414         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18415         old-style declaration.
18416
18417 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18418
18419         * tests/test-exclude1.sh: Handle Windows EOL.
18420         * tests/test-exclude2.sh: Likewise.
18421         * tests/test-exclude3.sh: Likewise.
18422         * tests/test-exclude4.sh: Likewise.
18423         * tests/test-exclude5.sh: Likewise.
18424         * tests/test-exclude6.sh: Likewise.
18425         * tests/test-exclude7.sh: Likewise.
18426
18427 2009-08-19  Akim Demaille  <demaille@gostai.com>
18428
18429         bootstrap: find sha1sum when named gsha1sum.
18430         * bootstrap (find_tool): New.
18431         ($SHA1SUM): New.
18432         Use it.
18433
18434 2009-08-20  Jim Meyering  <meyering@redhat.com>
18435
18436         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18437         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18438         expression that converts "." in a file name to "\." in the resulting
18439         regexp.  Start with a dummy statement, so that prior shell variable
18440         definitions are expanded portably.  Reported by Simon Josefsson.
18441
18442 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18443
18444         Fix polling for writeability of a screen buffer.
18445         * lib/poll.c: Distinguish input and screen buffers for the
18446         Win32 implementation.
18447         * lib/select.c: Likewise.
18448
18449 2009-08-19  Eric Blake  <ebb9@byu.net>
18450
18451         popen-safer: prevent popen from clobbering std descriptors
18452         * modules/popen-safer: New file.
18453         * lib/popen-safer.c: Likewise.
18454         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18455         * lib/stdio--.h (popen): Provide override.
18456         * lib/stdio-safer.h (popen_safer): Provide declaration.
18457         * tests/test-popen.c (includes): Partially test this.
18458         * modules/popen-safer-tests: New file, for more tests.
18459         * tests/test-popen-safer.c: Likewise.
18460         * MODULES.html.sh (file stream based Input/Output): Mention it.
18461
18462         tests: test some of the *-safer modules
18463         * modules/fopen-safer (Depends-on): Add fopen.
18464         * modules/fcntl-safer (Depends-on): Add fcntl.
18465         * modules/stdlib-safer (Depends-on): Add stdlib.
18466         (configure.ac): Set indicator.
18467         * modules/unistd-safer (configure.ac): Likewise.
18468         * modules/tmpfile-safer (configure.ac): Likewise.
18469         (Depends-on): Add tmpfile.
18470         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18471         active.
18472         * tests/test-fopen.c (includes): Test safer versions when they are
18473         in use.
18474         * tests/test-open.c (includes): Likewise.
18475
18476         popen: fix cygwin 1.5 bug when stdin closed
18477         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18478         * modules/popen: New file.
18479         * modules/popen-tests: Likewise.
18480         * tests/test-popen.c: Likewise.
18481         * m4/popen.m4: Likewise.
18482         * lib/popen.c: Likewise.
18483         * lib/stdio.in.h (popen): New declaration.
18484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18485         * modules/stdio (Makefile.am): Likewise.
18486         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18487
18488 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18489
18490         maint.mk: give full control over update-copyright exclusions
18491         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18492         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18493         (update-copyright): Don't force inclusion of top-level
18494         ChangeLog.  Don't force exclusion of all COPYING files, but make
18495         them the default exclusion instead.
18496
18497 2009-08-16  Bruno Haible  <bruno@clisp.org>
18498
18499         Fix test failures on Solaris 10.
18500         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18501         tests when Solaris iconv() is used.
18502         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18503         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18504         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18505         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18506         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18507
18508 2009-08-16  Bruno Haible  <bruno@clisp.org>
18509
18510         Fix test failures on Solaris 10.
18511         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18512         'tr' program and pass it as first argument.
18513         * tests/test-pipe-filter-gi1.sh: Likewise.
18514         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18515         program as first argument.
18516         * tests/test-pipe-filter-gi1.c (main): Likewise.
18517
18518 2009-08-16  Eric Blake  <ebb9@byu.net>
18519
18520         fpurge: fix previous commits
18521         * modules/fpurge (Makefile.am): Make replacement conditional,
18522         partially reverting 2007-04-29 change; missed in previous
18523         attempt.
18524         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18525         is missing.
18526
18527 2009-08-16  Bruno Haible  <bruno@clisp.org>
18528
18529         Clarify fpurge's effect on the file position.
18530         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18531         * tests/test-fpurge.c (main): Make a second pass for checking the file
18532         position.
18533
18534 2009-08-16  Bruno Haible  <bruno@clisp.org>
18535
18536         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18537         declaration of fpurge is missing.
18538         * tests/test-fpurge.c (main): Check that the file has not more contents
18539         than expected. Close the file before removing it.
18540
18541 2009-08-15  Eric Blake  <ebb9@byu.net>
18542
18543         fpurge: don't wrap working cygwin implementation
18544         * lib/fpurge.c (fpurge): Fix comment typo.
18545         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18546         1.7 to avoid replacement.
18547         * tests/test-fpurge.c (main): Enhance test.
18548
18549 2009-08-15  Eric Blake  <ebb9@byu.net>
18550         and Jim Meyering  <meyering@redhat.com>
18551
18552         test-update-copyright: skip if perl is insufficient
18553         * tests/test-update-copyright.sh: Failure to run maintainer tool
18554         should not cause testsuite failure on cygwin 1.5.
18555
18556 2009-08-14  Eric Blake  <ebb9@byu.net>
18557
18558         doc: mention more functions added in cygwin 1.7.0
18559         * doc/posix-headers/limits.texi (limits.h): Update for recent
18560         cygwin additions.
18561         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18562         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18563         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18564         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18565         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18566
18567 2009-08-14  Eric Blake  <ebb9@byu.net>
18568
18569         maint.mk: simplify update-copyright rule
18570         * top/maint.mk (update-copyright-local): Delete, and document how
18571         to do it in cfg.mk instead.
18572         (update-copyright-exclude-regexp): Delete, and document how to do
18573         it in .x-update-copyright instead.
18574         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18575         exclude ChangeLog.
18576
18577 2009-08-14  Bruno Haible  <bruno@clisp.org>
18578
18579         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18580
18581 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18582
18583         maint.mk: support update-copyright-env
18584         * top/maint.mk (update-copyright-env): Define place-holder.
18585         (update-copyright): Expand $(update-copyright-env) before
18586         invoking update-copyright.
18587
18588 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18589
18590         update-copyright: implement forced reformatting
18591         * build-aux/update-copyright: Implement and document
18592         UPDATE_COPYRIGHT_FORCE.
18593         * tests/test-update-copyright.sh: Test it.
18594
18595 2009-08-14  Eric Blake  <ebb9@byu.net>
18596         and Bruno Haible  <bruno@clisp.org>
18597
18598         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18599         * tests/test-locale.c: Revert previous patch related to NULL.
18600         * tests/test-stdio.c: Likewise.
18601         * tests/test-stdlib.c: Likewise.
18602         * tests/test-string.c: Likewise.
18603         * tests/test-unistd.c: Likewise.
18604         * modules/time-tests (Depends-on): Add verify.
18605         * modules/wchar-tests (Depends-on): Likewise.
18606         * tests/test-time.c: Test for NULL compliance.
18607         * tests/test-wchar.c: Likewise.
18608         * modules/locale (Depends-on): Add stddef.
18609         * modules/stdio (Depends-on): Likewise.
18610         * modules/stdlib (Depends-on): Likewise.
18611         * modules/string (Depends-on): Likewise.
18612         * modules/time (Depends-on): Likewise.
18613         * modules/unistd (Depends-on): Likewise.
18614         * modules/wchar (Depends-on): Likewise.
18615         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18616         * lib/stdlib.in.h (includes): Likewise.
18617         * lib/string.in.h (includes): Likewise.
18618         * lib/time.in.h (includes): Likewise.
18619         * lib/unistd.in.h (includes): Likewise.
18620         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18621         replaced.
18622         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18623         * m4/stddef_h.m4: New file.
18624         * modules/stddef: Likewise.
18625         * lib/stddef.in.h: Likewise.
18626         * modules/stddef-tests: Likewise.
18627         * tests/test-stddef.c: Likewise.
18628         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18629         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18630         * doc/posix-headers/locale.texi (locale.h): Likewise.
18631         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18632         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18633         * doc/posix-headers/string.texi (string.h): Likewise.
18634         * doc/posix-headers/time.texi (time.h): Likewise.
18635         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18636         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18637
18638 2009-08-14  Eric Blake  <ebb9@byu.net>
18639
18640         doc: improve git diff of texinfo files
18641         * .gitattributes: Add rule for *.texi files, with hint on how to
18642         use it.
18643         Copied from m4, and based on a report by Bruno Haible.
18644
18645 2009-08-14  Bruno Haible  <bruno@clisp.org>
18646
18647         Disable multithread support by default on Cygwin 1.5.x for real.
18648         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18649
18650 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18651
18652         update-copyright: much ado about intervals
18653         * build-aux/update-copyright: Implement and document
18654         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18655         of copyright year intervals.
18656         Also, document UPDATE_COPYRIGHT_YEAR.
18657         * tests/test-update-copyright.sh: Test it.
18658
18659         update-copyright: convert 2-digit to 4-digit years
18660         * build-aux/update-copyright: Implement and document.
18661         * tests/test-update-copyright.sh: Update.
18662
18663 2009-08-14  Jim Meyering  <meyering@redhat.com>
18664
18665         test-exclude: avoid coreutils "make check" failure
18666         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18667         just as in test-argmatch.c.
18668
18669 2009-08-13  Eric Blake  <ebb9@byu.net>
18670
18671         test-dup2: fix bad assumption
18672         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18673         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18674
18675         test-version-etc: fix CRLF portability issue
18676         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18677         recognize \r.
18678         * tests/test-argp-version-etc-1.sh: Likewise.
18679
18680         getopt: update client modules
18681         * modules/argp (Depends-on): Use getopt-gnu.
18682         * modules/git-merge-changelog (Depends-on): Likewise.
18683         * modules/long-options (Depends-on): Likewise.
18684         * modules/xstrtol (Depends-on): Likewise.
18685
18686 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18687
18688         * tests/test-version-etc.sh: Don't fail on different
18689         project/version.  Don't fail on CRLF differences.  Rewrite to use
18690         multiple -e instead of multiple sed forks, suggested by Eric Blake
18691         <ebb9@byu.net>.
18692         * tests/test-argp-version-etc-1.sh: Likewise.
18693
18694 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18695
18696         * tests/test-version-etc.sh: Don't fail on different
18697         project/version.
18698
18699 2009-08-12  Bruno Haible  <bruno@clisp.org>
18700
18701         Tests for modules 'getopt-posix', 'getopt-gnu'.
18702         * modules/getopt-posix-tests: New file.
18703         * tests/test-getopt.c: New file.
18704         * tests/test-getopt.h: New file.
18705         * tests/test-getopt_long.h: New file.
18706
18707         New modules 'getopt-posix', 'getopt-gnu'.
18708         * modules/getopt-gnu: New file, renamed from modules/getopt.
18709         * modules/getopt-posix: New file.
18710         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18711         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18712         (gl_GETOPT): Remove macro.
18713         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18714         Disable the test against BSD systems that declare optreset. Test
18715         against mingw bug. Test against lack of support of optional arguments
18716         on many platforms.
18717         * doc/glibc-headers/getopt.texi: Update module name and list of
18718         relevant platforms.
18719         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18720         'getopt-gnu' and more portability problems.
18721         * NEWS: Mention the changes.
18722
18723 2009-08-12  Bruno Haible  <bruno@clisp.org>
18724
18725         Ensure that optarg etc. get declared by <unistd.h>.
18726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18727         AC_USE_SYSTEM_EXTENSIONS.
18728         * modules/getopt (Depends-on): Add 'extensions'.
18729
18730 2009-08-12  Bruno Haible  <bruno@clisp.org>
18731
18732         Avoid test link errors.
18733         * modules/pipe-filter-ii-tests (Makefile.am): Define
18734         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18735         * modules/pipe-filter-gi-tests (Makefile.am): Define
18736         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18738
18739 2009-08-12  Bruno Haible  <bruno@clisp.org>
18740
18741         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18742         gl_GETOPT_SUBSTITUTE before.
18743         (gl_GETOPT): Use it.
18744         * m4/argp.m4 (gl_ARGP): Update.
18745         Reported by Sergey Poznyakoff.
18746
18747         * m4/getopt.m4: Reorder macros.
18748         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18749         (gl_GETOPT_SUBSTITUTE): Remove macro.
18750
18751 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18752
18753         Minor improvement in gitlog-to-changelog
18754
18755         * build-aux/gitlog-to-changelog: New option `--format' makes
18756         output format string configurable.
18757
18758 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18759
18760         Optimize exclude: use hash tables for non-wildcard patterns.
18761
18762         * lib/exclude.c: Include hash.h and mbuiter.h
18763         (struct exclude_pattern, exclude_segment): New data types.
18764         (struct exclude): Rewrite.
18765         (fnmatch_pattern_has_wildcards): New function.
18766         (new_exclude_segment, free_exclude_segment): New functions.
18767         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18768         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18769         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18770         * modules/exclude: Depend on hash and mbuiter.
18771
18772         * modules/exclude-tests: New file.
18773         * tests/test-exclude.c: New file.
18774         * tests/test-exclude1.sh: New file.
18775         * tests/test-exclude2.sh: New file.
18776         * tests/test-exclude3.sh: New file.
18777         * tests/test-exclude4.sh: New file.
18778         * tests/test-exclude5.sh: New file.
18779         * tests/test-exclude6.sh: New file.
18780         * tests/test-exclude7.sh: New file.
18781
18782 2009-08-12  Bruno Haible  <bruno@clisp.org>
18783
18784         Ensure that getopt() gets declared by <unistd.h>.
18785         * lib/unistd.in.h: Conditionally include getopt.h.
18786         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18787         Set GNULIB_UNISTD_H_GETOPT.
18788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18789         GNULIB_UNISTD_H_GETOPT.
18790         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18791
18792 2009-08-12  Bruno Haible  <bruno@clisp.org>
18793
18794         Clarify logic.
18795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18796         gl_replace_getopt instead of GETOPT_H.
18797
18798 2009-08-12  Bruno Haible  <bruno@clisp.org>
18799
18800         * m4/getopt.m4: Add comments.
18801
18802 2009-08-12  Bruno Haible  <bruno@clisp.org>
18803
18804         Disable multithread support by default on Cygwin 1.5.x.
18805         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18806         set gl_use_threads=no if not specified otherwise.
18807
18808 2009-08-11  Bruno Haible  <bruno@clisp.org>
18809
18810         Avoid compilation error on NetBSD 5.0.
18811         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18812         * tests/test-stdio.c: Likewise.
18813         * tests/test-stdlib.c: Likewise.
18814         * tests/test-string.c: Likewise.
18815         * tests/test-unistd.c: Likewise.
18816         Reported by Greg Troxel <gdt@ir.bbn.com>
18817         at <https://savannah.gnu.org/support/?106973>.
18818
18819 2009-08-11  Bruno Haible  <bruno@clisp.org>
18820
18821         * modules/dup2-tests (Depends-on): Remove close.
18822
18823         Undo 2009-07-19 commit.
18824         * modules/acl-tests (Depends-on): Remove close.
18825         * modules/binary-io-tests (Depends-on): Likewise.
18826         * modules/closein-tests (Depends-on): Likewise.
18827         * modules/flock-tests (Depends-on): Likewise.
18828         * modules/fsync-tests (Depends-on): Likewise.
18829         * modules/lseek-tests (Depends-on): Likewise.
18830         * modules/pipe-tests (Depends-on): Likewise.
18831         * modules/posix_spawn-tests (Depends-on): Likewise.
18832         * modules/posix_spawnp-tests (Depends-on): Likewise.
18833         * modules/stat-time-tests (Depends-on): Likewise.
18834         * modules/yesno-tests (Depends-on): Likewise.
18835
18836 2009-08-10  Bruno Haible  <bruno@clisp.org>
18837
18838         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18839
18840 2009-08-10  Bruno Haible  <bruno@clisp.org>
18841
18842         Fix a gcc warning.
18843         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18844
18845 2009-08-10  Bruno Haible  <bruno@clisp.org>
18846
18847         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18848         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18849         not only the first time.
18850         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18851         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18852         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18853         is 1, not only the the first time.
18854
18855 2009-08-10  Bruno Haible  <bruno@clisp.org>
18856
18857         Make it possible to use module 'gethostname' without module 'close'.
18858         * lib/unistd.in.h (close): Evoke a link error only if
18859         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18861         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18862         * modules/unistd (Makefile.am): Substitute
18863         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18864         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18865         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18867         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18868         * modules/sys_ioctl (Makefile.am): Substitute
18869         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18870         * modules/socket (configure.ac): On native Windows, set
18871         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18872         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18873         Reported by Sam Steingold <sds@gnu.org>.
18874
18875 2009-08-10  Bruno Haible  <bruno@clisp.org>
18876
18877         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18878         * modules/ioctl (configure.ac): Likewise.
18879
18880 2009-08-10  Bruno Haible  <bruno@clisp.org>
18881
18882         Avoid collision between gnulib wrapper and libintl wrapper.
18883         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18884         already defined in intl/printf.c.
18885         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18886         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18887
18888 2009-08-09  Bruno Haible  <bruno@clisp.org>
18889
18890         Make <sys/select.h> really self-contained, also on Solaris 10.
18891         * lib/sys_select.in.h: Include <string.h>.
18892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18893         Solaris 10 problem.
18894         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18895         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18896         Reported by Jim Meyering.
18897
18898 2009-08-09  Bruno Haible  <bruno@clisp.org>
18899
18900         Avoid warnings from 'aclocal' that are due to a use of macro name
18901         AM_XGETTEXT_OPTION that is not defined in automake.
18902         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18903         automake.
18904         * modules/error (configure.ac): Likewise.
18905         * modules/propername (configure.ac): Likewise.
18906         * modules/vasprintf (configure.ac): Likewise.
18907         * modules/verror (configure.ac): Likewise.
18908         * modules/xprintf (configure.ac): Likewise.
18909         * modules/xvasprintf (configure.ac): Likewise.
18910
18911 2009-08-08  Bruno Haible  <bruno@clisp.org>
18912
18913         Avoid compilation error in C++ mode.
18914         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18915         Reported by Sam Steingold <sds@gnu.org>.
18916
18917 2009-08-08  Bruno Haible  <bruno@clisp.org>
18918
18919         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18920         for the various Unix platforms.
18921         * doc/posix-headers/limits.texi: Update platforms list regarding
18922         HOST_NAME_MAX.
18923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18924
18925 2009-08-07  Jim Meyering  <meyering@redhat.com>
18926
18927         selinux-at: fix typo in a comment
18928         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18929         Spotted by Paolo Bonzini.
18930
18931         selinux-at: remove redundant m4 code, add documentation
18932         * modules/selinux-at (configure.ac): Remove redundant code.
18933         LIB_SELINUX is already set via the dependent module, selinux-h.
18934         (Include): Add quotes around selinux-at.h.
18935         * lib/selinux-at.h: Add documentation.
18936         Reported by Bruno Haible in
18937         http://marc.info/?l=gnulib-bug&m=124958988300749
18938
18939 2009-08-07  Bruno Haible  <bruno@clisp.org>
18940
18941         Avoid link error on MacOS X 10.3 and 10.4.
18942         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18943         on non-ELF systems.
18944         * lib/argp-pv.c (argp_program_version): Likewise.
18945         Reported by Simon Josefsson.
18946
18947 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18948
18949         * tests/test-version-etc.sh: Use $EXEEXT.
18950
18951 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18952
18953         update-copyright: update documentation to point to maint.mk
18954         * build-aux/update-copyright: Here.
18955
18956 2009-08-06  Jim Meyering  <meyering@redhat.com>
18957
18958         maint.mk: support update-copyright-local
18959         * top/maint.mk (update-copyright-local): Define place-holder.
18960         (update-copyright): Depend on $(update-copyright-local).
18961
18962 2009-08-06  Jim Meyering  <meyering@redhat.com>
18963
18964         selinux-at: new module
18965         Initially written for coreutils, this module will soon be
18966         used by findutils, too.
18967         * MODULES.html.sh [Misc]: Add selinux-at.
18968         * lib/selinux-at.h: New file, from coreutils.
18969         * lib/selinux-at.c: Likewise.
18970         * modules/selinux-at: Likewise.
18971         (License): Change from LGPL to GPL, since it depends
18972         on the GPL'd openat module.
18973
18974         doc: update README
18975         * README: Remove references to cogito.
18976         Remove cvs-repo-updating instructions from 2007.
18977         Don't imply that CVS is better if you have limited disk space.
18978
18979 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18980
18981         update-copyright: support C-style comments
18982         * build-aux/update-copyright: Implement and document.
18983         * tests/test-update-copyright.sh: Test.
18984
18985 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18986
18987         update-copyright: support omitted "(C)"
18988         * build-aux/update-copyright: Implement and document.  Also,
18989         allow variable whitespace before "(C)".
18990         * tests/test-update-copyright.sh: Test.
18991
18992 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18993
18994         update-copyright: don't trip on non-FSF copyright statements
18995         * build-aux/update-copyright: Fix so that the first correctly
18996         formatted FSF copyright statement is recognized no matter what
18997         appears before it.  Update documentation.
18998         * tests/test-update-copyright.sh: Test that.
18999
19000 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19001
19002         update-copyright: clean up code a little
19003         * build-aux/update-copyright: Append "_re" to the name of any
19004         variable holding a regular expression.
19005         Replace "old" and "new" with "stmt" in variable names.
19006         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19007         handled correctly.
19008         Format code more consistently.
19009
19010 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19011
19012         update-copyright-tests: improve portability
19013         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19014         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19015
19016 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19017
19018         update-copyright: support @copyright{} and &copy;
19019         * build-aux/update-copyright: Implement and document.
19020         * tests/test-update-copyright.sh: Test.
19021
19022 2009-08-04  Jim Meyering  <meyering@redhat.com>
19023
19024         update-copyright-tests: correctly test EOL=\r\n handling
19025         * tests/test-update-copyright.sh: Put \r at the end of some lines
19026         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19027
19028         maint.mk: make update-copyright exclusion list more configurable
19029         * top/maint.mk (update-copyright): Default to excluding COPYING,
19030         but allow an override, in case someone does want to update that file.
19031
19032         maint.mk: don't update copyright date in COPYING
19033         * top/maint.mk (update-copyright): Exclude COPYING.
19034
19035         maint.mk: add a copyright-updating rule
19036         * top/maint.mk (update-copyright): New rule.
19037         Derived from coreutils/Makefile.am.
19038
19039         update-copyright: rename some variables
19040         * build-aux/update-copyright: Rename a few variables for clarity.
19041         Tweak syntax.  List Joel E. Denny as coauthor.
19042
19043 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19044
19045         update-copyright: fix bug for 2-digit last year and add tests
19046         * build-aux/update-copyright: Fix bug.
19047         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19048         specified.
19049         * modules/update-copyright-tests: New
19050         * tests/test-update-copyright.sh: New.
19051
19052 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19053
19054         update-copyright: handle leading tabs in line prefix
19055         * build-aux/update-copyright: Count leading tabs as 8 spaces
19056         when computing margin.  This helps with the formatting of
19057         ChangeLogs, for example.
19058         Fix documentation a little.
19059
19060 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19061
19062         update-copyright: support EOL=\r\n
19063         * build-aux/update-copyright: Implement that.
19064
19065 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19066
19067         update-copyright: automatically format copyright statements
19068         * build-aux/update-copyright: Implement that.
19069         Also, be a little more predictable and safer by always failing
19070         when the full copyright format is not perfectly recognized as an
19071         unbroken whole.  Discussed at
19072         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19073         Rewrite documentation.
19074
19075 2009-08-03  Bruno Haible  <bruno@clisp.org>
19076
19077         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19078
19079 2009-08-02  Bruno Haible  <bruno@clisp.org>
19080
19081         Tests for module 'uname'.
19082         * modules/uname-tests: New file.
19083         * tests/test-uname.c: New file.
19084
19085         New module 'uname'.
19086         * lib/uname.c: New file.
19087         * m4/uname.m4: New file.
19088         * modules/uname: New file.
19089         * doc/posix-functions/uname.texi: Mention the new module.
19090
19091 2009-08-02  Bruno Haible  <bruno@clisp.org>
19092
19093         Tests for module 'sys_utsname'.
19094         * modules/sys_utsname-tests: New file.
19095         * tests/test-sys_utsname.c: New file.
19096
19097         New module 'sys_utsname'.
19098         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19099         * m4/sys_utsname_h.m4: New file.
19100         * modules/sys_utsname: New file.
19101         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19102
19103 2009-08-02  Bruno Haible  <bruno@clisp.org>
19104
19105         Implicitly initialize the sockets library.
19106         * lib/gethostname.c: Include sockets.h.
19107         (rpl_gethostname): Invoke gl_sockets_startup.
19108         * lib/socket.c: Include sockets.h.
19109         (rpl_socket): Invoke gl_sockets_startup.
19110         * modules/gethostname (Depends-on): Add sockets.
19111         * modules/socket (Depends-on): Likewise.
19112         * tests/test-poll.c: Don't include sockets.h.
19113         (main): Don't invoke gl_sockets_startup.
19114         * tests/test-select.c: Don't include sockets.h.
19115         (main): Don't invoke gl_sockets_startup.
19116
19117 2009-08-02  Bruno Haible  <bruno@clisp.org>
19118
19119         Allow multiple calls to gl_sockets_startup.
19120         * lib/sockets.c (initialized_sockets_version): New variable.
19121         (gl_sockets_startup): Do nothing if already called for this or a higher
19122         version.
19123         (gl_sockets_cleanup): Reset initialized_sockets_version.
19124
19125 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19126
19127         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19128         different project/version.
19129
19130 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19131             Bruno Haible  <bruno@clisp.org>
19132
19133         Tests for module 'pipe-filter-gi'.
19134         * modules/pipe-filter-gi-tests: New file.
19135         * tests/test-pipe-filter-gi1.sh: New file.
19136         * tests/test-pipe-filter-gi1.c: New file.
19137         * tests/test-pipe-filter-gi2.sh: New file.
19138         * tests/test-pipe-filter-gi2-main.c: New file.
19139         * tests/test-pipe-filter-gi2-child.c: New file.
19140
19141         New module 'pipe-filter-gi'.
19142         * lib/pipe-filter-gi.c: New file.
19143         * modules/pipe-filter-gi: New file.
19144
19145 2009-08-02  Bruno Haible  <bruno@clisp.org>
19146             Paolo Bonzini  <bonzini@gnu.org>
19147
19148         Tests for module 'pipe-filter-ii'.
19149         * modules/pipe-filter-ii-tests: New file.
19150         * tests/test-pipe-filter-ii1.sh: New file.
19151         * tests/test-pipe-filter-ii1.c: New file.
19152         * tests/test-pipe-filter-ii2.sh: New file.
19153         * tests/test-pipe-filter-ii2-main.c: New file.
19154         * tests/test-pipe-filter-ii2-child.c: New file.
19155
19156         New module 'pipe-filter-ii'.
19157         * lib/pipe-filter.h: New file.
19158         * lib/pipe-filter-ii.c: New file.
19159         * lib/pipe-filter-aux.h: New file.
19160         * modules/pipe-filter-ii: New file.
19161
19162 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19163
19164         * lib/gc-libgcrypt.c: Change copyright to FSF.
19165         * lib/gc-gnulib.c: Likewise.
19166
19167 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19168
19169         * lib/gethostname.c: Include limits.h.
19170
19171 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19172             Bruno Haible  <bruno@clisp.org>
19173
19174         Ensure HOST_NAME_MAX as part of the gethostname module.
19175         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19176         define also HOST_NAME_MAX.
19177         * tests/test-gethostname.c: Include <limits.h>.
19178         (main): Check also HOST_NAME_MAX.
19179         * doc/posix-headers/limits.texi: Document the mingw problem.
19180
19181 2009-08-02  Bruno Haible  <bruno@clisp.org>
19182
19183         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19184         Add comments.
19185
19186 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19187
19188         * lib/gethostname.c: Add Windows wrapper.
19189         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19190         * modules/gethostname: Depend on sys_socket & errno, for also
19191         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19192         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19193
19194 2009-07-31  Jim Meyering  <meyering@redhat.com>
19195
19196         getloadavg: fix symbol name in comment
19197         * lib/getloadavg.c: Correct a typo I introduced when adding
19198         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19199         Matt Kraai spotted the problem.
19200
19201 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19202
19203         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19204         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19205         code also if ! defined N_NAME_POINTER.
19206         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19207         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19208         but the n_name member is a 12-byte array.
19209
19210 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19211
19212         update-copyright: generalize comment handling
19213         * build-aux/update-copyright: Handle copyright statements
19214         within more comment styles.
19215         Document usage.
19216         Report any file with an external copyright holder or parse failure.
19217
19218 2009-07-29  Jim Meyering  <meyering@redhat.com>
19219
19220         mktime: correct setting of REPLACE_MKTIME
19221         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19222
19223         update-copyright: new module
19224         * modules/update-copyright: New file.
19225         * build-aux/update-copyright: New file.
19226         * MODULES.html.sh (maint+release support): Add update-copyright.
19227
19228 2009-07-27  Bruno Haible  <bruno@clisp.org>
19229
19230         Fix compilation error when <ctime> is used and mktime is replaced.
19231         * lib/time.in.h (mktime): New declaration.
19232         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19233         REPLACE_MKTIME instead of defining mktime in config.h.
19234         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19235         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19236         Reported by Ross McFarland <rwmcfa1@neces.com>.
19237
19238 2009-07-27  Bruno Haible  <bruno@clisp.org>
19239
19240         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19241         Reported by Matt Kraai <mkraai@beckman.com>.
19242
19243 2009-07-25  Jim Meyering  <meyering@redhat.com>
19244
19245         maint.mk: avoid warnings about missing files
19246         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19247         diagnostic when .prev-version does not exist.
19248         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19249         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19250         nonexistent cfg.mk.
19251         Suggestions from Simon Josefsson.
19252
19253 2009-07-25  Bruno Haible  <bruno@clisp.org>
19254
19255         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19256         defined as macros. Needed on QNX 6.4.1.
19257         Reported by Matt Kraai <mkraai@beckman.com>.
19258
19259 2009-07-23  Jim Meyering  <meyering@redhat.com>
19260
19261         maint.mk: invoke "make dist" with a working value of XZ_OPT
19262         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19263
19264 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19265
19266         Make fseeko.c compile on QNX.
19267         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19268
19269 2009-07-22  Peter Simons  <simons@cryp.to>
19270
19271         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19272         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19273         * lib/md4.h: Likewise.
19274         * lib/md5.h: Likewise.
19275         * lib/sha1.h: Likewise.
19276         * lib/sha256.h: Likewise.
19277         * lib/sha512.h: Likewise.
19278
19279         tests-sha1: don't assign literal string to 'char *' variable
19280         * tests/test-sha1.c (main): Declare locals with "const" to match
19281         attributes of the right hand side.
19282
19283 2009-07-21  Eric Blake  <ebb9@byu.net>
19284
19285         dup2: fix more mingw problems
19286         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19287         fd to itself.
19288         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19289         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19290         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19291         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19292         care of mingw bugs.
19293
19294 2009-07-21  Jim Meyering  <meyering@redhat.com>
19295
19296         vc-list-files: avoid failure when /bin/sh is dash
19297         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19298         On some Debian based systems, /bin/sh is a symlink to dash, and running
19299         this command would omit the "/" following each 'tests' prefix:
19300           dash -x build-aux/vc-list-files -C . tests
19301         That is because bash and dash work differently:
19302           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19303           bash ok
19304           dash odd
19305
19306 2009-07-21  Eric Blake  <ebb9@byu.net>
19307
19308         dup2-tests: test previous patch
19309         * modules/dup2-tests: New file.
19310         * tests/test-dup2.c: Likewise.
19311         * tests/test-open.c (main): Avoid unspecified behavior.
19312         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19313         test.
19314
19315         dup2: work around mingw and cygwin 1.5 bug
19316         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19318         * modules/unistd (Makefile.am): Substitute it.
19319         * lib/unistd.in.h (dup2): Declare the replacement.
19320         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19321         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19322         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19323         * modules/execute (Depends-on): Add dup2.
19324         * modules/fseterr (Depends-on): Likewise.
19325         * modules/pipe (Depends-on): Likewise.
19326         * modules/posix_spawn-internal (Depends-on): Likewise.
19327
19328 2009-07-21  Bruno Haible  <bruno@clisp.org>
19329
19330         * modules/.gitattributes: New file.
19331
19332 2009-07-20  Bruno Haible  <bruno@clisp.org>
19333
19334         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19335         (main): Use it.
19336
19337 2009-07-20  Eric Blake  <ebb9@byu.net>
19338
19339         test-pipe: make a bit more robust.
19340         * tests/test-pipe.c (myerr): Allow error messages regardless of
19341         what we do to stderr.
19342         (test_pipe): Rearrange to avoid deadlock.
19343         (child_main): Try a larger read, to ensure we avoided deadlock.
19344         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19345         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19346         if misused.
19347
19348 2009-07-19  Jim Meyering  <meyering@redhat.com>
19349
19350         fts: avoid false-positive cycle-detection
19351         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19352         for each new command line argument.
19353
19354 2009-07-19  Bruno Haible  <bruno@clisp.org>
19355
19356         Fix build error on mingw with the modules sys_select and unistd.
19357         * modules/acl-tests (Depends-on): Add close.
19358         * modules/binary-io-tests (Depends-on): Likewise.
19359         * modules/closein-tests (Depends-on): Likewise.
19360         * modules/flock-tests (Depends-on): Likewise.
19361         * modules/fsync-tests (Depends-on): Likewise.
19362         * modules/lseek-tests (Depends-on): Likewise.
19363         * modules/pipe-tests (Depends-on): Likewise.
19364         * modules/posix_spawn-tests (Depends-on): Likewise.
19365         * modules/posix_spawnp-tests (Depends-on): Likewise.
19366         * modules/stat-time-tests (Depends-on): Likewise.
19367         * modules/yesno-tests (Depends-on): Likewise.
19368
19369 2009-07-19  Bruno Haible  <bruno@clisp.org>
19370
19371         Unify conditionals.
19372         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19373         macros, not at the compiler macros.
19374         * lib/pipe.c: Likewise.
19375         * lib/execute.c: Likewise.
19376         * lib/spawni.c: Likewise.
19377
19378 2009-07-19  Bruno Haible  <bruno@clisp.org>
19379
19380         Fix handling of closed stdin/stdout/stderr on mingw.
19381         * lib/w32spawn.h: Include unistd.h.
19382         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19383         file descriptor with O_NOINHERIT flag.
19384         (fd_safer_noinherit): New function, based on fd-safer.c.
19385         (dup_safer_noinherit): New function, based on dup-safer.c.
19386         (undup_safer_noinherit): New function.
19387         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19388         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19389         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19390         instead of fd_safer.
19391         * tests/test-pipe.c: Include <windows.h>.
19392         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19393
19394         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19395         from main.
19396         (test_pipe): Pass an extra argument for disambiguation.
19397         (main): Invoke parent_main or child_main.
19398
19399         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19400         consistently.
19401
19402 2009-07-18  Eric Blake  <ebb9@byu.net>
19403
19404         test-pipe: fix mingw build
19405         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19406
19407 2009-07-18  Bruno Haible  <bruno@clisp.org>
19408
19409         * modules/pipe-tests (Makefile.am): Fix typo.
19410
19411 2009-07-18  Eric Blake  <ebb9@byu.net>
19412
19413         error: fix mingw build
19414         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19415         Reported by Bruno Haible.
19416
19417         error: avoid undefined use of stdout
19418         * lib/error.c (error, error_at_line): Check that fd 1 is open
19419         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19420         is handling faults and the close_stdout module wants to report the
19421         detection of closed stdout as an error.
19422
19423 2009-07-17  Eric Blake  <ebb9@byu.net>
19424
19425         pipe: be robust in face of closed fds
19426         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19427         should cause child to misbehave.
19428         * modules/pipe-tests: New module.
19429         * tests/test-pipe.c: New file.
19430         * tests/test-pipe.sh: New file.
19431         Reported by Akim Demaille.
19432
19433 2009-07-14  Bruno Haible  <bruno@clisp.org>
19434
19435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19436         Reported by anonymous kc.
19437
19438 2009-07-07  Jim Meyering  <meyering@redhat.com>
19439
19440         maint.mk: don't look for translatable strings in *.m4 or *.mk
19441         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19442         when searching for translatable strings.
19443
19444 2009-07-05  Jim Meyering  <meyering@redhat.com>
19445
19446         remove superfluous parentheses in STREQ definition
19447         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19448         * lib/getugroups.c (STREQ): Likewise.
19449         * lib/fnmatch.c (STREQ): Likewise.
19450         Spotted by Bruno Haible.
19451
19452 2009-07-04  Jim Meyering  <meyering@redhat.com>
19453
19454         argv-iter: new module
19455         * MODULES.html.sh: Add argv-iter.
19456         * lib/argv-iter.c, lib/argv-iter.h: New files.
19457         * modules/argv-iter: New file.
19458         * modules/argv-iter-tests: New file.
19459         * tests/test-argv-iter.c: Test it.
19460
19461 2009-07-04  Bruno Haible  <bruno@clisp.org>
19462
19463         Fix assertion.
19464         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19465         contains more exact copies of a given entry than file2, leave the extra
19466         copies unpaired rather than aborting.
19467         Reported by Eric Blake.
19468
19469 2009-07-02  Bruno Haible  <bruno@clisp.org>
19470
19471         Speedup git-merge-changelog for git cherry-pick.
19472         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19473         (entries_mapping_get): New function, extracted from compute_mapping.
19474         (entries_mapping_reverse_get): New function.
19475         (compute_mapping): Add a 'full' argument. Return the result in a
19476         'struct entries_mapping'.
19477         (main): Update. Access the mappings through entries_mapping_get.
19478         Reported by Eric Blake.
19479
19480 2009-07-02  Bruno Haible  <bruno@clisp.org>
19481
19482         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19483         best_i.
19484
19485 2009-07-02  Bruno Haible  <bruno@clisp.org>
19486
19487         Speed up approximate search for matching ChangeLog entries.
19488         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19489         argument. Call fstrcmp_bounded instead of fstrcmp.
19490         (compute_mapping, try_split_merged_entry, main): Update callers.
19491
19492 2009-07-02  Bruno Haible  <bruno@clisp.org>
19493
19494         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19495
19496 2009-06-30  Bruno Haible  <bruno@clisp.org>
19497
19498         Reduce the number of uc_is_cased calls.
19499         * lib/unicase.h (casing_suffix_context_t): Add
19500         'first_char_except_ignorable' field.
19501         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19502         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19503         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19504         Update initializer.
19505         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19506         case-ignorable characters.
19507         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19508         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19509         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19510         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19511         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19512
19513 2009-06-30  Bruno Haible  <bruno@clisp.org>
19514
19515         Tests for module 'unicase/ignorable'.
19516         * modules/unicase/ignorable-tests: New file.
19517         * tests/unicase/test-ignorable.c: New file, generated by
19518         gen-uni-tables.
19519
19520         Tests for module 'unicase/cased'.
19521         * modules/unicase/cased-tests: New file.
19522         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19523         * tests/unicase/test-predicate-part1.h: New file, derived from
19524         tests/unictype/test-predicate-part1.h.
19525         * tests/unicase/test-predicate-part2.h: New file, same as
19526         tests/unictype/test-predicate-part2.h.
19527
19528         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19529         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19530         (output_casing_properties): New function.
19531         (main): Call it.
19532         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19533         * lib/unicase/cased.c: Include unictype/bitmap.h.
19534         (uc_is_cased): Define through a bitmap lookup.
19535         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19536         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19537         (uc_is_case_ignorable): Define through a bitmap lookup.
19538         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19539         lib/unictype/bitmap.h.
19540         (Depends-on): Add inline. Clean up.
19541         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19542         lib/unictype/bitmap.h.
19543         (Depends-on): Add inline. Clean up.
19544         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19545         recognition.
19546         * tests/unicase/test-u16-tolower.c (main): Likewise.
19547         * tests/unicase/test-u32-tolower.c (main): Likewise.
19548
19549 2009-06-30  Bruno Haible  <bruno@clisp.org>
19550
19551         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19552         * lib/unicase/u16-casemap.c: Likewise.
19553         * lib/unicase/u32-casemap.c: Likewise.
19554
19555 2009-06-29  Bruno Haible  <bruno@clisp.org>
19556
19557         Define u32_casefold as a wrapper around u32_ct_casefold.
19558         * lib/unicase/u32-casefold.c: Update.
19559         * modules/unicase/u32-casefold (Depends-on): Add
19560         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19561         unicase/empty-suffix-context. Clean up.
19562
19563         Define u16_casefold as a wrapper around u16_ct_casefold.
19564         * lib/unicase/u16-casefold.c: Update.
19565         * modules/unicase/u16-casefold (Depends-on): Add
19566         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19567         unicase/empty-suffix-context. Clean up.
19568
19569         Define u8_casefold as a wrapper around u8_ct_casefold.
19570         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19571         * lib/unicase/u8-casefold.c: Update.
19572         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19573         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19574
19575         Define u32_totitle as a wrapper around u32_ct_totitle.
19576         * lib/unicase/u32-totitle.c: Update.
19577         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19578         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19579
19580         Define u16_totitle as a wrapper around u16_ct_totitle.
19581         * lib/unicase/u16-totitle.c: Update.
19582         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19583         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19584
19585         Define u8_totitle as a wrapper around u8_ct_totitle.
19586         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19587         functions.
19588         (FUNC): Delegate to U_CT_TOTITLE.
19589         * lib/unicase/u8-totitle.c: Update.
19590         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19591         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19592
19593         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19594         invocation.
19595         * modules/unicase/u32-tolower (Depends-on): Add
19596         unicase/empty-prefix-context, unicase/empty-suffix-context.
19597
19598         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19599         invocation.
19600         * modules/unicase/u16-tolower (Depends-on): Add
19601         unicase/empty-prefix-context, unicase/empty-suffix-context.
19602
19603         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19604         * modules/unicase/u8-tolower (Depends-on): Add
19605         unicase/empty-prefix-context, unicase/empty-suffix-context.
19606
19607         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19608         invocation.
19609         * modules/unicase/u32-toupper (Depends-on): Add
19610         unicase/empty-prefix-context, unicase/empty-suffix-context.
19611
19612         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19613         invocation.
19614         * modules/unicase/u16-toupper (Depends-on): Add
19615         unicase/empty-prefix-context, unicase/empty-suffix-context.
19616
19617         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19618         * modules/unicase/u8-toupper (Depends-on): Add
19619         unicase/empty-prefix-context, unicase/empty-suffix-context.
19620
19621         New module 'unicase/u32-ct-casefold'.
19622         * lib/unicase/u32-ct-casefold.c: New file.
19623         * modules/unicase/u32-ct-casefold: New file.
19624
19625         New module 'unicase/u16-ct-casefold'.
19626         * lib/unicase/u16-ct-casefold.c: New file.
19627         * modules/unicase/u16-ct-casefold: New file.
19628
19629         New module 'unicase/u8-ct-casefold'.
19630         * lib/unicase/u8-ct-casefold.c: New file.
19631         * lib/unicase/u-ct-casefold.h: New file, derived from
19632         lib/unicase/u-casefold.h.
19633         * modules/unicase/u8-ct-casefold: New file.
19634
19635         New module 'unicase/u32-ct-totitle'.
19636         * lib/unicase/u32-ct-totitle.c: New file.
19637         * modules/unicase/u32-ct-totitle: New file.
19638
19639         New module 'unicase/u16-ct-totitle'.
19640         * lib/unicase/u16-ct-totitle.c: New file.
19641         * modules/unicase/u16-ct-totitle: New file.
19642
19643         New module 'unicase/u8-ct-totitle'.
19644         * lib/unicase/u8-ct-totitle.c: New file.
19645         * lib/unicase/u-ct-totitle.h: New file, derived from
19646         lib/unicase/u-totitle.h.
19647         * modules/unicase/u8-ct-totitle: New file.
19648
19649         New module 'unicase/u32-ct-tolower'.
19650         * lib/unicase/u32-ct-tolower.c: New file.
19651         * modules/unicase/u32-ct-tolower: New file.
19652
19653         New module 'unicase/u16-ct-tolower'.
19654         * lib/unicase/u16-ct-tolower.c: New file.
19655         * modules/unicase/u16-ct-tolower: New file.
19656
19657         New module 'unicase/u8-ct-tolower'.
19658         * lib/unicase/u8-ct-tolower.c: New file.
19659         * modules/unicase/u8-ct-tolower: New file.
19660
19661         New module 'unicase/u32-ct-toupper'.
19662         * lib/unicase/u32-ct-toupper.c: New file.
19663         * modules/unicase/u32-ct-toupper: New file.
19664
19665         New module 'unicase/u16-ct-toupper'.
19666         * lib/unicase/u16-ct-toupper.c: New file.
19667         * modules/unicase/u16-ct-toupper: New file.
19668
19669         New module 'unicase/u8-ct-toupper'.
19670         * lib/unicase/u8-ct-toupper.c: New file.
19671         * modules/unicase/u8-ct-toupper: New file.
19672
19673         Add context arguments to u*_casemap functions.
19674         * lib/unicase/unicasemap.h: Include unicase.h.
19675         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19676         suffix_context arguments.
19677         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19678         functions.
19679         (FUNC): Add prefix_context and suffix_context arguments. Use
19680         uc_is_cased and uc_is_case_ignorable.
19681         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19682         * lib/unicase/u16-casemap.c: Likewise.
19683         * lib/unicase/u32-casemap.c: Likewise.
19684         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19685         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19686         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19687         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19688         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19689         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19690
19691         New module 'unicase/u32-suffix-context'.
19692         * lib/unicase/u32-suffix-context.c: New file.
19693         * modules/unicase/u32-suffix-context: New file.
19694
19695         New module 'unicase/u16-suffix-context'.
19696         * lib/unicase/u16-suffix-context.c: New file.
19697         * modules/unicase/u16-suffix-context: New file.
19698
19699         New module 'unicase/u8-suffix-context'.
19700         * lib/unicase/u8-suffix-context.c: New file.
19701         * lib/unicase/u-suffix-context.h: New file.
19702         * modules/unicase/u8-suffix-context: New file.
19703
19704         New module 'unicase/empty-suffix-context'.
19705         * lib/unicase/empty-suffix-context.c: New file.
19706         * modules/unicase/empty-suffix-context: New file.
19707
19708         New module 'unicase/u32-prefix-context'.
19709         * lib/unicase/u32-prefix-context.c: New file.
19710         * modules/unicase/u32-prefix-context: New file.
19711
19712         New module 'unicase/u16-prefix-context'.
19713         * lib/unicase/u16-prefix-context.c: New file.
19714         * modules/unicase/u16-prefix-context: New file.
19715
19716         New module 'unicase/u8-prefix-context'.
19717         * lib/unicase/u8-prefix-context.c: New file.
19718         * lib/unicase/u-prefix-context.h: New file.
19719         * lib/unicase/context.h: New file.
19720         * modules/unicase/u8-prefix-context: New file.
19721
19722         New module 'unicase/empty-prefix-context'.
19723         * lib/unicase/empty-prefix-context.c: New file.
19724         * modules/unicase/empty-prefix-context: New file.
19725
19726         New module 'unicase/ignorable'.
19727         * lib/unicase/ignorable.c: New file.
19728         * modules/unicase/ignorable: New file.
19729
19730         New module 'unicase/cased'.
19731         * lib/unicase/caseprop.h: New file.
19732         * lib/unicase/cased.c: New file.
19733         * modules/unicase/cased: New file.
19734
19735         New functions for case mapping of substrings.
19736         * lib/unicase.h (casing_prefix_context_t): New type.
19737         (unicase_empty_prefix_context): New variable.
19738         (u8_casing_prefix_context, u16_casing_prefix_context,
19739         u32_casing_prefix_context, u8_casing_prefixes_context,
19740         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19741         declarations.
19742         (casing_suffix_context_t): New type.
19743         (unicase_empty_suffix_context): New variable.
19744         (u8_casing_suffix_context, u16_casing_suffix_context,
19745         u32_casing_suffix_context, u8_casing_suffixes_context,
19746         u16_casing_suffixes_context, u32_casing_suffixes_context,
19747         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19748         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19749         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19750         declarations.
19751
19752 2009-06-28  Jim Meyering  <meyering@redhat.com>
19753
19754         boostrap: indent only with spaces
19755         * build-aux/bootstrap: Indent only with spaces, never TABs.
19756
19757         bootstrap: split long lines
19758         * build-aux/bootstrap: Keep line length < 80.
19759
19760         bootstrap: sync from coreutils
19761         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19762         just as autoreconf does.  Verify a list of prerequisite
19763         package-name,version-number pairs if defined in bootstrap.conf.
19764         Refer to README-prereq, if prerequisites are not satisfied.
19765
19766 2009-06-27  Eric Blake  <ebb9@byu.net>
19767
19768         tests: add test for bogus NULL definition
19769         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19770         * tests/test-stdlib.c: Likewise.
19771         * tests/test-string.c: Likewise.
19772         * tests/test-locale.c: Likewise.
19773         * tests/test-unistd.c: Likewise.
19774         * modules/stdio-tests (Depends-on): Add verify.
19775         * modules/stdlib-tests (Depends-on): Likewise.
19776         * modules/string-tests (Depends-on): Likewise.
19777         * modules/locale-tests (Depends-on): Likewise.
19778         * modules/unistd-tests (Depends-on): Likewise.
19779
19780 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19781
19782         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19783         self-explaining comment.
19784         * m4/selinux-selinux-h: Update serial.
19785         (gl_LIBSELINUX): New macro, adding a warning for missing development
19786         packages to code extracted from...
19787         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19788         Add warning for missing development packages here, too.
19789
19790 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19791
19792         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19793
19794 2009-06-25  Eric Blake  <ebb9@byu.net>
19795
19796         version-etc: fix regression
19797         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19798         gcc.
19799         (version_etc): Use it, to catch bugs with trailing NULL.
19800         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19801         (version_etc_va): Fix logic bug.
19802         * modules/version-etc-tests: Add test.
19803         * tests/test-version-etc.c: New file.
19804         * tests/test-version-etc.sh: Likewise.
19805
19806 2009-06-25  Sam Steingold  <sds@gnu.org>
19807
19808         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19809         mbtowc declaration.
19810
19811 2009-06-25  Eric Blake  <ebb9@byu.net>
19812
19813         fpurge: migrate into <stdio.h>
19814         * lib/fpurge.h: Delete...
19815         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19816         * lib/fpurge.c (fpurge): Change declaring header.
19817         * modules/fpurge (Files): Drop deleted file.
19818         (Depends-on): Add stdio.
19819         (configure.ac): Set witness.
19820         * modules/stdio (Makefile.am): Support fpurge macros.
19821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19822         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19823         * lib/fflush.c: Update client.
19824         * tests/test-fpurge.c: Likewise.
19825         * NEWS: Mention the change.
19826
19827 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19828
19829         * lib/argp-version-etc.c (program_authors): Add const
19830         qualifier.
19831         * lib/version-etc.c: Fix typos in the comments.
19832         * modules/argp-version-etc: Depends on version-etc.
19833
19834 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19835
19836         argp-version-etc: new module.
19837
19838         * lib/argp-version-etc.c: New file.
19839         * lib/argp-version-etc.h: New file.
19840         * modules/argp-version-etc: New file.
19841         * modules/argp-version-etc-tests: New file.
19842         * tests/test-argp-version-etc.c: New test.
19843         * tests/test-argp-version-etc-1.sh: New test.
19844
19845 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19846
19847         Provide additional interfaces and documentation for version-etc
19848         module.
19849
19850         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19851         interfaces.
19852         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19853         prototypes.
19854
19855 2009-06-24  Bruno Haible  <bruno@clisp.org>
19856
19857         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19858         HAVE_LIB${NAME} macro.
19859         Reported by Sam Steingold <sds@gnu.org>.
19860
19861 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19862
19863         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19864         needed.
19865
19866 2009-06-21  Bruno Haible  <bruno@clisp.org>
19867
19868         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19869         work.
19870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19871         together with LIB${NAME}, LTLIB${NAME}.
19872         Reported by Sam Steingold <sds@gnu.org>.
19873
19874 2009-06-20  Jim Meyering  <meyering@redhat.com>
19875
19876         tests: make sc_require_test_exit_idiom more generic
19877         * top/maint.mk (Exit_witness_file): New overridable variable.
19878         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19879         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19880
19881 2009-06-19  Jim Meyering  <meyering@redhat.com>
19882
19883         hash: reverse order of src/dst parameters in an internal interface
19884         * lib/hash.c (transfer_entries): Reverse order of parameters to
19885         put DST before SRC.  Adjust callers.
19886
19887         tests: test-hash: avoid wholesale duplication
19888         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19889         Instead, use a loop and add a single conditional.
19890
19891         tests: test-hash: allow seed selection via a command line argument
19892         * tests/test-hash.c (get_seed): New function.
19893         (main): Use it.
19894
19895 2009-06-19  Eric Blake  <ebb9@byu.net>
19896
19897         hash: avoid memory leak on allocation failure
19898         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19899         failure.  Factor repeated algorithm...
19900         (transfer_entries): ...into new helper routine.
19901         (hash_delete): React to hash_rehash return value.
19902
19903         hash: reduce memory pressure in hash_rehash no-op case
19904         * lib/hash.c (next_prime): Avoid overflow.
19905         (hash_initialize): Factor bucket size computation...
19906         (compute_bucket_size): ...into new helper function.
19907         (hash_rehash): Use new function and open coding to reduce memory
19908         pressure, and avoid a memory leak in USE_OBSTACK code.
19909         Reported by Jim Meyering.
19910
19911 2009-06-18  Eric Blake  <ebb9@byu.net>
19912
19913         hash: make rotation more obvious
19914         * modules/hash (Depends-on): Add bitrotate and stdint.
19915         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19916         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19917         (SIZE_MAX): Rely on headers for definition.
19918         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19919         (raw_hasher): Use rotr_sz.
19920         Suggested by Jim Meyering.
19921
19922         hash: fix memory leak in last patch
19923         * lib/hash.c (hash_rehash): Avoid memory leak.
19924
19925         hash: avoid no-op rehashing
19926         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19927
19928         hash: provide default callback functions
19929         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19930         (hash_initialize): Use them as defaults.
19931         * tests/test-hash.c (main): Test this.
19932
19933         hash: minor optimization
19934         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19935         when possible.
19936         (hash_initialize): Document this promise.
19937         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19938         * tests/test-hash.c (hash_compare_strings): Test this.
19939
19940 2009-06-18  Bruno Haible  <bruno@clisp.org>
19941
19942         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19943         going to be replaced anyway.
19944
19945 2009-06-18  Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19948         in one place.
19949         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19950         be replaced anyway.
19951
19952 2009-06-18  Eric Blake  <ebb9@byu.net>
19953
19954         hash: check for resize before insertion
19955         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19956         threshold before insertion, so that a pathological hash_rehash
19957         that fills every bucket can still trigger another rehash.
19958
19959 2009-06-18  Jim Meyering  <meyering@redhat.com>
19960
19961         hash-tests: add a loop around the small tests
19962         * tests/test-hash.c (main): Repeat small tests with selected
19963         small initial table sizes.
19964
19965 2009-06-17  Eric Blake  <ebb9@byu.net>
19966
19967         hash: minor cleanups
19968         * lib/hash.h (hash_entry): Make opaque, by moving...
19969         * lib/hash.c (hash_entry): ...here.
19970         (hash_insert): Clarify restrictions on what can be inserted.
19971         (hash_get_next): Clarify when it is safe to remove an element
19972         during traversal.
19973         (check_tuning): Skip verification when tuning is known safe.
19974         (hash_initialize): Clarify restrictions on tuning.
19975
19976 2009-06-17  Jim Meyering  <jim@meyering.net>
19977         and Eric Blake  <ebb9@byu.net>
19978
19979         hash-tests: new module
19980         * modules/hash-tests: New file.
19981         * tests/test-hash.c: New file.
19982
19983 2009-06-17  Eric Blake  <ebb9@byu.net>
19984
19985         strstr-simple: document new module
19986         * MODULES.html.sh: Document new module.
19987
19988         strstr, strcasestr: replace on platforms with broken memchr
19989         * modules/strstr: Split into...
19990         * modules/strstr-simple: ...new module that does not care about
19991         performance, but does care about glibc bug.
19992         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19993         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19994         if platform memchr is broken, per Debian bug 521737.
19995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19996         memchr.
19997         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19998         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19999         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20000         * modules/mountlist (Depends-on): Add strstr-simple.
20001         * modules/gen-uni-tables (Depends-on): Likewise.
20002         * modules/argz (Depends-on): Add strstr.
20003
20004 2009-06-17  Bruno Haible  <bruno@clisp.org>
20005
20006         * modules/posix_spawn-internal (Depends-on): Add errno.
20007
20008 2009-06-17  Bruno Haible  <bruno@clisp.org>
20009
20010         Define missing ESTALE on Interix 3.5.
20011         * lib/errno.in.h (ESTALE): Assign a value if missing.
20012         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20014         missing.
20015         * doc/posix-headers/errno.texi: Mention the Interix bug.
20016         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20017
20018 2009-06-15  Eric Blake  <ebb9@byu.net>
20019
20020         memchr, memchr2: add valgrind exception
20021         * lib/memchr.valgrind: New file.
20022         * lib/memchr2.valgrind: New file.
20023         * modules/memchr (Files): Distribute valgrind file.
20024         * modules/memchr2 (Files): Likewise.
20025
20026         docs: memchr is no longer obsolete
20027         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20028         * lib/string.in.h (memchr): Simplify logic.
20029
20030 2009-06-14  Jim Meyering  <meyering@redhat.com>
20031
20032         link-follow: fix the "checking..." message to not mention trailing slash
20033         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20034         never considered trailing slashes.
20035
20036 2009-06-14  Bruno Haible  <bruno@clisp.org>
20037
20038         * m4/memchr.m4: Mention also the bug on IA-64.
20039         * doc/posix-functions/memchr.texi: Likewise.
20040
20041 2009-06-12  Eric Blake  <ebb9@byu.net>
20042
20043         memchr: detect broken x86_64 and alpha implementations
20044         * modules/memchr-tests (Depends-on): Move mmap detection...
20045         * modules/memchr (Depends-on): ...here.
20046         (configure.ac): Set indicator.
20047         * lib/string.in.h (memchr): Declare replacement.
20048         * modules/string (Makefile.am): Trigger replacement.
20049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20050         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20051         bugs.
20052         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20053         * modules/getpagesize (License): Relax license.
20054
20055 2009-06-11  Bruno Haible  <bruno@clisp.org>
20056
20057         * lib/idpriv.h: Add more references.
20058
20059 2009-06-08  Bruno Haible  <bruno@clisp.org>
20060
20061         Tests for module 'idpriv-droptemp'.
20062         * modules/idpriv-droptemp-tests: New file.
20063         * tests/test-idpriv-droptemp.sh: New file.
20064         * tests/test-idpriv-droptemp.su.sh: New file.
20065         * tests/test-idpriv-droptemp.c: New file.
20066
20067         New module 'idpriv-droptemp'.
20068         * lib/idpriv-droptemp.c: New file.
20069         * modules/idpriv-droptemp: New file.
20070
20071 2009-06-08  Bruno Haible  <bruno@clisp.org>
20072
20073         Tests for module 'idpriv-drop'.
20074         * modules/idpriv-drop-tests: New file.
20075         * tests/test-idpriv-drop.sh: New file.
20076         * tests/test-idpriv-drop.su.sh: New file.
20077         * tests/test-idpriv-drop.c: New file.
20078
20079         New module 'idpriv-drop'.
20080         * lib/idpriv.h: New file.
20081         * lib-idpriv-drop.c: New file.
20082         * m4/idpriv.m4: New file.
20083         * modules/idpriv-drop: New file.
20084
20085 2009-06-08  Bruno Haible  <bruno@clisp.org>
20086
20087         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20088         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20089         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20090         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20092         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20093         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20094
20095 2009-06-08  Eric Blake  <ebb9@byu.net>
20096
20097         test-strstr: use memory fence, when possible
20098         * tests/test-strstr.c (main): Use memory fence, in order to be
20099         more likely to trigger Debian bug 521737.
20100         * modules/strstr-tests (Files): Pull in additional files.
20101
20102         memchr: no longer obsolete, for wider field testing
20103         * modules/memchr (Status, Notice): Delete, this module is no
20104         longer obsolete.
20105         * modules/vasnprintf (Depends-on): Add memchr.
20106
20107 2009-06-07  Jim Meyering  <meyering@redhat.com>
20108
20109         hash: declare some functions with the warn_unused_result attribute
20110         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20111
20112 2009-06-07  Bruno Haible  <bruno@clisp.org>
20113
20114         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20115         Reported by Eric Blake.
20116
20117 2009-06-06  Eric Blake  <ebb9@byu.net>
20118
20119         test-alignof: fix typo with long double
20120         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20121         compiler error.
20122
20123 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20124
20125         Escape non-texinfo { and }s.
20126         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20127         markup error.
20128
20129 2009-06-04  Jim Meyering  <meyering@redhat.com>
20130
20131         gitlog-to-changelog: don't infloop on an empty commit log
20132         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20133         Reported by Boris Petersen <transacid@centerim.org>.
20134
20135 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20136
20137         version-etc: extend for packagers
20138         Add three new configure options, intended for packagers:
20139           --with-packager="packager name"
20140           --with-packager-version="packager-specific version"
20141           --with-packager-bug-reports="packager bug reporting"
20142         An example with coreutils:
20143           $ ./configure \
20144             --with-packager=Gentoo \
20145             --with-packager-bug-report=http://bugs.gentoo.org/ \
20146             --with-packager-version="patchset 1.6"
20147           $ ./src/ls --version | head -n2
20148           ls (GNU coreutils) 7.1-dirty
20149           Packaged by Gentoo (patchset 1.6)
20150         Note that the bug reporting info via --help doesn't show up because
20151         coreutils uses its own custom emit_bug_reporting_address() implementation
20152         in src/system.h.  If it didn't, it'd look like:
20153           $ ./src/ls --help | tail -n4
20154           Report bugs to <bug-coreutils@gnu.org>.
20155           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20156           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20157           General help using GNU software: <http://www.gnu.org/gethelp/>.
20158         * lib/version-etc.c: Print new information, if provided.
20159         * m4/version-etc.m4: New file.
20160         * modules/version-etc (Files): Add m4/version-etc.m4.
20161         (configure.ac): Add gl_VERSION_ETC.
20162
20163 2009-05-31  Bruno Haible  <bruno@clisp.org>
20164
20165         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20166         and 'int64_t'.
20167         * modules/alignof-tests (Dependencies): Add stdint.
20168         Reported by Eric Blake.
20169
20170 2009-05-31  Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20173         restriction due to compiler bugs.
20174         Reported by Eric Blake.
20175
20176 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20177             Bruno Haible  <bruno@clisp.org>
20178
20179         Fix test-alignof failure.
20180         * lib/alignof.h (alignof_slot): New macro.
20181         (alignof_type): New macro, with the same semantics as the previous
20182         'alignof'.
20183         (alignof): Alias to alignof_slot.
20184         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20185         check that the results are usable as constant expressions.
20186
20187 2009-05-31  Bruno Haible  <bruno@clisp.org>
20188
20189         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20190         * tests/test-memchr.c (main): Check that memchr does not read past the
20191         first occurrence of the byte.
20192         * tests/test-strstr.c (main): Update comment.
20193         Suggested by Eric Blake.
20194
20195 2009-05-30  Bruno Haible  <bruno@clisp.org>
20196
20197         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20198         detail how to use dumpbin.
20199         Reported by David Byron <dbyron@dbyron.com>.
20200
20201 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20202
20203         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20204
20205 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20206
20207         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20208
20209 2009-05-28  Bruno Haible  <bruno@clisp.org>
20210
20211         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20212         build-aux/ files.
20213
20214 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20215
20216         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20217
20218 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20219
20220         * gnulib-tool (sed_transform_main_lib_file)
20221         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20222         regexps.
20223
20224 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20225
20226         * tests/test-strstr.c: Add another self-test.
20227         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20228         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20229
20230 2009-05-23  Bruno Haible  <bruno@clisp.org>
20231
20232         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20233         change.
20234
20235 2009-05-21  Bruno Haible  <bruno@clisp.org>
20236
20237         Simplify use of mode_t varargs.
20238         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20239         uses 'mode_t' or 'int'.
20240         * lib/openat.c (openat): Likewise.
20241         * lib/open-safer.c (open_safer): Likewise.
20242         * m4/mode_t.m4: New file.
20243         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20244         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20246         * modules/open (Files): Add m4/mode_t.m4.
20247         * modules/openat (Files): Likewise.
20248         * modules/fcntl-safer (Files): Likewise.
20249         Suggested by Eric Blake.
20250
20251 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20252
20253         * doc/glibc-functions/fallocate.texi: New file.
20254         * doc/gnulib.texi: Include it.
20255
20256 2009-05-21  Eric Blake  <ebb9@byu.net>
20257             Bruno Haible  <bruno@clisp.org>
20258
20259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20260         invocations.
20261         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20262
20263 2009-05-21  Eric Blake  <ebb9@byu.net>
20264             Bruno Haible  <bruno@clisp.org>
20265
20266         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20267         include_next. Fix of 2008-11-20 commit.
20268         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20269         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20270         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20271         NEXT_MATH_H.
20272         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20273         instead of NEXT_MATH_H.
20274
20275 2009-05-21  Bruno Haible  <bruno@clisp.org>
20276
20277         Avoid redefinition warnings for SIZE_MAX.
20278         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20279         Reported by Simon Josefsson.
20280
20281 2009-05-21  Bruno Haible  <bruno@clisp.org>
20282
20283         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20284         AC_CACHE_VAL.
20285
20286 2009-05-20  Bruno Haible  <bruno@clisp.org>
20287
20288         Make zeroptr.h work on mingw.
20289         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20290         mprotect.
20291         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20292         * modules/memchr2-tests (configure.ac): Likewise.
20293         * modules/memcmp-tests (configure.ac): Likewise.
20294         * modules/memmem-tests (configure.ac): Likewise.
20295         * modules/memrchr-tests (configure.ac): Likewise.
20296         Reported by Simon Josefsson.
20297
20298 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20299
20300         * tests/test-glob.c: Include string.h for strcmp prototype.
20301
20302 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20303
20304         * modules/getdelim (Depends-on): Add explicit stdint, although it
20305         was implicitly already pulled in via realloc-posix.
20306         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20307
20308 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20309
20310         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20311         G. Christensen" <tgc@jupiterrise.com>.
20312         * m4/sys_socket_h.m4: Check for sa_family_t.
20313         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20314         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20315         * tests/test-sys_socket.c: Check that sa_family_t works.
20316
20317 2009-05-18  Eric Blake  <ebb9@byu.net>
20318
20319         maint.mk: allow gnulib_dir in VPATH build
20320         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20321
20322 2009-05-15  Jim Meyering  <meyering@redhat.com>
20323
20324         maint.mk: Give gnulib_dir a default definition.
20325         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20326         Thus, most packages no longer need to specify this variable in cfg.mk
20327
20328 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20329
20330         rename.m4: fix typos that would make non-mingw cross-configure fail
20331         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20332
20333 2009-05-13  Eric Blake  <ebb9@byu.net>
20334
20335         mmap-anon: avoid out-of-order autoconf expansion
20336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20337         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20338         * modules/memchr-tests (Depends-on): Add extensions.
20339         * modules/memchr2-tests (Depends-on): Add extensions.
20340         * modules/memcmp-tests (Depends-on): Add extensions.
20341         * modules/memmem-tests (Depends-on): Add extensions.
20342         * modules/memrchr-tests (Depends-on): Add extensions.
20343
20344 2009-05-13  Bruno Haible  <bruno@clisp.org>
20345
20346         Make some tests ISO C 99 compliant.
20347         * tests/zerosize-ptr.h: New file.
20348         * tests/test-memchr.c: Include zerosize-ptr.h.
20349         (main): Use a zero-size object pointer instead of NULL.
20350         * tests/test-memchr2.c: Include zerosize-ptr.h.
20351         (main): Use a zero-size object pointer instead of NULL.
20352         * tests/test-memcmp.c: Include zerosize-ptr.h.
20353         (main): Use a zero-size object pointer instead of NULL.
20354         * tests/test-memmem.c: Include zerosize-ptr.h.
20355         (main): Use a zero-size object pointer instead of NULL.
20356         * tests/test-memrchr.c: Include zerosize-ptr.h.
20357         (main): Use a zero-size object pointer instead of NULL.
20358         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20359         m4/mmap-anon.m4.
20360         (Depends-on): Add getpagesize.
20361         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20362         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20363         m4/mmap-anon.m4.
20364         (Depends-on): Add getpagesize.
20365         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20366         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20367         m4/mmap-anon.m4.
20368         (Depends-on): Add getpagesize.
20369         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20370         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20371         m4/mmap-anon.m4.
20372         (Depends-on): Add getpagesize.
20373         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20374         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20375         m4/mmap-anon.m4.
20376         (Depends-on): Add getpagesize.
20377         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20378
20379 2009-05-12  Bruno Haible  <bruno@clisp.org>
20380
20381         Tests for module 'alignof'.
20382         * modules/alignof-tests: New file.
20383         * tests/test-alignof.c: New file.
20384
20385 2009-05-12  Bruno Haible  <bruno@clisp.org>
20386
20387         Fix alignof macro.
20388         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20389         vendor compilers that are always correct.
20390
20391 2009-05-12  Bruno Haible  <bruno@clisp.org>
20392
20393         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20395         not whether its fully works.
20396
20397 2009-05-12  Bruno Haible  <bruno@clisp.org>
20398
20399         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20400
20401 2009-05-12  Jim Meyering  <meyering@redhat.com>
20402
20403         * top/maint.mk: Adjust backslash alignment.
20404
20405 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20406
20407         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20408
20409 2009-05-11  Eric Blake  <ebb9@byu.net>
20410
20411         argp: avoid undefined behavior
20412         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20413         macros.
20414
20415 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20416
20417         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20418         user.name to prevent git commit from complaining.
20419
20420 2009-05-10  Bruno Haible  <bruno@clisp.org>
20421
20422         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20423         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20424         it rewrites every file name only once.
20425         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20426
20427 2009-05-08  Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20430         instead of 'max'.
20431
20432 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20433
20434         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20435         sockaddr_storage test.
20436
20437 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20438
20439         * modules/sys_socket (Makefile.am): Substitute
20440         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20441         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20442         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20443         * tests/test-sys_socket.c: Check sockaddr_storage.
20444
20445 2009-05-08  Bruno Haible  <bruno@clisp.org>
20446
20447         New module 'alignof'.
20448         * lib/alignof.h: New file.
20449         * modules/alignof: New file.
20450
20451 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20452             Bruno Haible  <bruno@clisp.org>
20453
20454         Fix test-file-has-acl on FreeBSD.
20455         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20456         mask is implicitly added.
20457         * tests/test-file-has-acl.c: Include <signal.h>.
20458         (main): Terminate the test after 5 seconds.
20459         * modules/acl-tests (configure.ac): Check for alarm function.
20460
20461 2009-05-04  Bruno Haible  <bruno@clisp.org>
20462
20463         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20465         * modules/errno (configure.ac): Drop AC_REQUIRE.
20466         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20467         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20468
20469 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20470
20471         * modules/glob-tests: New module.
20472         * tests/test-glob.c: Add.
20473
20474 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20475
20476         * modules/fnmatch-tests: New module.
20477         * tests/test-fnmatch.c: Add.
20478
20479 2009-05-04  Eric Blake  <ebb9@byu.net>
20480
20481         maint: make the new no-submodule-changes rule VPATH-safe
20482         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20483
20484 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20485             Bruno Haible  <bruno@clisp.org>
20486
20487         acl: Fix infinite loop on FreeBSD.
20488         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20489         of return value from acl_get_entry.
20490         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20491         Likewise.
20492
20493 2009-05-03  Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/acl-internal.h (acl_entries): Clarify return value.
20496         * lib/acl_entries.c (acl_entries): Likewise.
20497
20498 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20499
20500         Bug fix in acl module.
20501         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20502
20503 2009-05-03  Bruno Haible  <bruno@clisp.org>
20504
20505         Create gperf-generated file in the source dir, not in the build dir.
20506         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20507         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20508         * modules/unicase/locale-language (unicase/locale-languages.h):
20509         Likewise.
20510         * modules/unicase/special-casing (unicase/special-casing-table.h):
20511         Likewise.
20512         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20513         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20514         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20515         Reported by Ralf Wildenhues.
20516
20517 2009-05-03  Bruno Haible  <bruno@clisp.org>
20518
20519         * modules/fnmatch (Description, configure.ac): Taken from
20520         fnmatch-posix.
20521         * modules/fnmatch-posix: Turn into a symbolic reference to the
20522         'fnmatch' module, and deprecate.
20523         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20524
20525 2009-05-03  Bruno Haible  <bruno@clisp.org>
20526
20527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20528         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20529         Reported by Ralf Wildenhues.
20530
20531 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20532
20533         * m4/fnmatch.m4: Fix fnmatch re-define.
20534
20535 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20536
20537         priv-set: new module and tests; adapt write-any-file
20538         * lib/priv-set.c: New file.
20539         * lib/priv-set.h: New file.
20540         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20541         * lib/write-any-file.c: Simplify by using priv-set module.
20542         * m4/priv-set.m4: New file.
20543         * modules/priv-set: New file.
20544         * modules/unlinkdir: Add dependency on priv-set module.
20545         * modules/write-any-file: Likewise.
20546
20547         Tests for module 'priv-set'.
20548         * modules/priv-set-tests: New file.
20549         * tests/test-priv-set.c: New file.
20550
20551 2009-05-03  Jim Meyering  <meyering@redhat.com>
20552             Bruno Haible  <bruno@clisp.org>
20553
20554         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20555         use the converted UTF-8 variant of the name instead.
20556
20557 2009-05-03  Jim Meyering  <meyering@redhat.com>
20558
20559         tests: tighten some getdate tests
20560         * tests/test-getdate.c (main): Tighten tests: require equality,
20561         not just greater than.  Set TZ envvar to UTC0.
20562
20563 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20564
20565         getdate: correctly interpret "next monday" when run on a Monday
20566         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20567         that e.g., "next tues" (when run on a tuesday) results in a date
20568         that is one week in the future, and not today's date.
20569         I.e., add a week when the wday is the same as the current one.
20570         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20571         and earlier by Martin Bernreuther and Jan Minář.
20572         * tests/test-getdate.c (main): Check that "next DAY" is always in
20573         the future and that "last DAY" is always in the past.
20574
20575 2009-05-02  Jim Meyering  <meyering@redhat.com>
20576
20577         build: ensure that a release build fails when a submodule is unclean
20578         * top/maint.mk (no-submodule-changes): New rule.
20579         (alpha beta major): Depend on it.
20580
20581 2009-05-02  Bruno Haible  <bruno@clisp.org>
20582
20583         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20584         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20585         shell variable gl_fnmatch_required to detect which variant is
20586         requested.
20587         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20588         gl_FUNC_FNMATCH_POSIX.
20589         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20590         exclude fnmatch-posix.
20591
20592 2009-05-02  Bruno Haible  <bruno@clisp.org>
20593
20594         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20595         * modules/mbsrtowcs (License): Change to LGPLv2+.
20596         * modules/strnlen1 (License): Likewise.
20597         Reported by Simon Josefsson.
20598
20599 2009-05-02  Bruno Haible  <bruno@clisp.org>
20600
20601         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20602         "cross".
20603         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20604         gnulib-tool was called with option --source-base=lib.
20605
20606 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20607
20608         Use automake *-local hooks without commands, for extensibility.
20609         * modules/localcharset (Makefile.am): Rename install-exec-local
20610         rule to install-exec-localcharset, and make it a prerequisite of
20611         install-exec-local.  Likewise, rename the uninstall-local rule to
20612         uninstall-localcharset, and make it a prerequisite of the former.
20613
20614 2009-05-01  Bruno Haible  <bruno@clisp.org>
20615
20616         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20617         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20618         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20620         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20621         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20622         m4/locale-zh.m4, m4/codeset.m4.
20623
20624         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20625         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20626         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20627         m4/locale-zh.m4.
20628
20629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20630         REPLACE_WCRTOMB if mbstate_t must be replaced.
20631         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20632         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20633
20634 2009-05-01  Bruno Haible  <bruno@clisp.org>
20635
20636         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20637         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20638         dngettext, dcngettext, textdomain, bindtextdomain,
20639         bind_textdomain_codeset): Undefine before redefining.
20640
20641 2009-04-30  Bruno Haible  <bruno@clisp.org>
20642
20643         Fix bug introduced on 2009-04-25.
20644         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20645         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20646         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20647         is defined.
20648         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20649         is defined.
20650         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20651         is defined.
20652         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20653
20654 2009-04-28  Bruno Haible  <bruno@clisp.org>
20655
20656         Comment tweaks.
20657         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20658         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20659         * lib/unicase.h (u*_casexfrm): Likewise.
20660         Reported by Paolo Bonzini.
20661
20662 2009-04-28  Bruno Haible  <bruno@clisp.org>
20663
20664         Fix a compilation error.
20665         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20666         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20667         Reported by Jim Meyering.
20668
20669 2009-04-27  Bruno Haible  <bruno@clisp.org>
20670
20671         New module 'libunistring'.
20672         * modules/libunistring: New file.
20673         * m4/libunistring.m4: New file.
20674         * MODULES.html.sh (Unicode string functions): Add it.
20675
20676 2009-04-27  Eric Blake  <ebb9@byu.net>
20677
20678         maint.mk: allow package-specific header to provide <config.h>
20679         * top/maint.mk (sc_require_config_h): New variable.
20680         (sc_require_config_h, sc_require_config_h_first): Use it.
20681
20682 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20683
20684         * top/maint.mk (sc_avoid_if_before_free): Except
20685         useless-if-before-free script.
20686
20687 2009-04-27  Eric Blake  <ebb9@byu.net>
20688
20689         maintainer-makefile: depend on all required helper scripts
20690         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20691         useless-if-before-free.
20692         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20693         version, rather than assuming gnulib checkout is available.
20694         Reported by Simen Josefsson.
20695
20696 2009-04-26  Bruno Haible  <bruno@clisp.org>
20697
20698         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20699         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20700         "../" or "..".
20701
20702 2009-04-26  Bruno Haible  <bruno@clisp.org>
20703
20704         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20705         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20706         AC_LIB_HAVE_LINKFLAGS.
20707
20708 2009-04-26  Bruno Haible  <bruno@clisp.org>
20709
20710         Simplify calling convention of u*_conv_from_encoding.
20711         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20712         u32_conv_from_encoding): Expect a resultbuf argument and return the
20713         result directly as a pointer.
20714         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20715         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20716         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20717         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20718         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20719         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20720         Update.
20721         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20722         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20723         * lib/vasnprintf.c (VASNPRINTF): Update.
20724         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20725         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20726         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20727         * NEWS: Mention the change.
20728
20729 2009-04-26  Bruno Haible  <bruno@clisp.org>
20730
20731         Simplify calling convention of u*_conv_to_encoding.
20732         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20733         u32_conv_to_encoding): Expect a resultbuf argument and return the
20734         result directly as a pointer.
20735         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20736         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20737         freeing scaled_offsets if mem_iconveha failed.
20738         * lib/unicase/u-casexfrm.h (FUNC): Update.
20739         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20740         * lib/vasnprintf.c (VASNPRINTF): Update.
20741         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20742         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20743         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20744         * NEWS: Mention the change.
20745
20746 2009-04-26  Bruno Haible  <bruno@clisp.org>
20747
20748         Avoid test failures on AIX and OSF/1.
20749         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20750         malloc(0).
20751         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20752         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20753         Likewise.
20754         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20755         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20756         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20757         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20758         * doc/posix-functions/malloc.texi: Document the portability problem
20759         related to malloc(0).
20760
20761 2009-04-26  Bruno Haible  <bruno@clisp.org>
20762
20763         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20764         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20765         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20766
20767 2009-04-25  Bruno Haible  <bruno@clisp.org>
20768
20769         Avoid link error when creating a namespace clean library.
20770         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20771         as macro with arguments if already defined as an alias.
20772         * lib/signbitf.c (gl_signbitf): Don't undefine.
20773         * lib/signbitd.c (gl_signbitd): Don't undefine.
20774         * lib/signbitl.c (gl_signbitl): Don't undefine.
20775
20776 2009-04-25  Jim Meyering  <meyering@redhat.com>
20777
20778         vc-list-files: fix another quoting bug
20779         * build-aux/vc-list-files: Avoid sed backslash expansion
20780         of pathological directory names.
20781
20782 2009-04-25  Eric Blake  <ebb9@byu.net>
20783
20784         vc-list-files: fix shell quoting error
20785         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20786         timestamp.
20787
20788 2009-04-25  Jim Meyering  <meyering@redhat.com>
20789
20790         vc-list-files: restore lost functionality with subdir argument
20791         * build-aux/vc-list-files: When given a non-"." sub-directory
20792         argument, substitute the $dir/ prefix back onto each resulting name.
20793         Otherwise, coreutils' root_tests check would fail.
20794
20795 2009-04-24  Eric Blake  <ebb9@byu.net>
20796
20797         vc-list-files: ignore git symlinks
20798         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20799         than ls-files, to ignore git symlinks.
20800
20801         maint.mk: import improvements from m4
20802         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20803         (move_if_change): Delete unused macro.
20804         (news-date-check, vc-diff-check): Support VPATH builds.
20805         (announcement): Likewise.  Split --bootstrap-tools list...
20806         (boostrap-tools): ...into separate list, which can be overridden
20807         in cfg.mk.
20808         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20809         requiring dependency on useless-if-before-free module.
20810         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20811         Support VPATH builds.
20812
20813 2009-04-24  Jim Meyering  <meyering@redhat.com>
20814
20815         maint.mk: remove coreutils-specific rules and variables
20816         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20817         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20818         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20819
20820         maint.mk: remove obsolete rule
20821         * top/maint.mk (rel-check): Remove rule.
20822         (WGET, WGETFLAGS): Remove now-unused variables.
20823
20824 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20825
20826         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20827         consistency.
20828
20829         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20830         '$(PATH_SEPARATOR)' instead of ':'.
20831
20832 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20833
20834         * lib/getopt1.c (main): Use 'const' for static array.
20835
20836 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20837
20838         * top/maint.mk: Sync with coreutils.
20839         * NEWS: Explain incompatibilities.
20840
20841 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20842             Bruno Haible  <bruno@clisp.org>
20843
20844         Fix cross-compilation results.
20845         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20846         statement, as third argument of AC_TRY_RUN.
20847         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20848         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20849         Likewise.
20850         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20851         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20852         Likewise.
20853         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20855         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20856
20857 2009-04-20  Bruno Haible  <bruno@clisp.org>
20858
20859         Avoid test failure on mingw.
20860         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20861
20862 2009-04-20  Bruno Haible  <bruno@clisp.org>
20863
20864         Avoid compilation error on mingw.
20865         * modules/localename-tests (Depends-on): Add locale.
20866
20867 2009-04-19  Bruno Haible  <bruno@clisp.org>
20868
20869         Support for building a shared library on Windows platforms.
20870         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20871         (main): Test the presence of UNINORM_NFC here.
20872         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20873         (main): Test the presence of UNINORM_NFD here.
20874         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20875         (main): Test the presence of UNINORM_NFKC here.
20876         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20877         (main): Test the presence of UNINORM_NFKD here.
20878
20879 2009-04-19  Bruno Haible  <bruno@clisp.org>
20880
20881         Avoid a compiler warning.
20882         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20883         Change type of variable 'sequence'.
20884
20885 2009-04-19  Bruno Haible  <bruno@clisp.org>
20886
20887         * modules/configmake (Makefile.am): When the contents of configmake.h
20888         does not change, arrange to preserve its modification time.
20889
20890 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20891
20892         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20893         gettext domain.
20894
20895 2009-04-16  Jim Meyering  <meyering@redhat.com>
20896
20897         useless-if-before-free: improve conversion code
20898         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20899         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20900
20901 2009-04-14  Bruno Haible  <bruno@clisp.org>
20902
20903         * modules/fcntl (Depends-on): Add extensions.
20904         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20905
20906 2009-04-12  Ben Pfaff  <blp@gnu.org>
20907
20908         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20909         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20910
20911 2009-03-20  Ben Pfaff  <blp@gnu.org>
20912
20913         Make rename replace existing destinations on Windows.
20914         * m4/rename.m4: Add test for Mingw.
20915         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20916         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20917         * doc/posix-functions/rename.texi: Document.
20918
20919 2009-04-10  Bruno Haible  <bruno@clisp.org>
20920
20921         New include file "iconveh.h".
20922         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20923         * lib/striconveh.h: Include it.
20924         (enum iconv_ilseq_handler): Remove definition.
20925         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20926         striconveh.h.
20927         * lib/striconveha.c: Include striconveh.h.
20928         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20929         * modules/striconveh (Files): Add lib/iconveh.h.
20930         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20931         lib/striconveh.h.
20932
20933 2009-04-10  Bruno Haible  <bruno@clisp.org>
20934
20935         * lib/uniconv.h: Update comment.
20936
20937 2009-04-10  Bruno Haible  <bruno@clisp.org>
20938
20939         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20940         always.
20941         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20942         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20943         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20944         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20945         "unistring-notinline.h", so that the function gets defined always.
20946         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20947         * lib/unistr/u8-uctomb.c: Likewise.
20948         * lib/unistr/u16-mbtouc.c: Likewise.
20949         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20950         * lib/unistr/u16-uctomb.c: Likewise.
20951         * lib/unistr/u32-mbtouc.c: Likewise.
20952         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20953         * lib/unistr/u32-uctomb.c: Likewise.
20954
20955 2009-04-10  Bruno Haible  <bruno@clisp.org>
20956
20957         Mark 'utime' obsolete.
20958         * modules/utime (Status, Notice): New sections.
20959         Suggested by Jim Meyering.
20960
20961         Fix cross-compile guess for utime test.
20962         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20963         autoconf.
20964         * doc/posix-functions/utime.texi: Give more precisions.
20965         Reported by Jan <ipif@ymail.com>.
20966
20967 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20968
20969         filevercmp: correct today's change
20970         * lib/filevercmp.c: Also handle coreutils' test inputs.
20971         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20972
20973         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20974         for reporting it.
20975         * lib/filevercmp.c: Special handle for "", "." and "..".
20976         * tests/test-filevercmp.c: Enlarge the set suite.
20977
20978 2009-04-07  Jim Meyering  <meyering@redhat.com>
20979
20980         useless-if-before-free: show how to remove braced useless free, too
20981         * build-aux/useless-if-before-free: still only in a comment, though.
20982
20983 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20984
20985         maint.mk: import changes to syntax-check macros from coreutils
20986         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20987         Use them in the relevant macros.
20988
20989 2009-04-06  Bruno Haible  <bruno@clisp.org>
20990
20991         Fix unportable use of bit-fields.
20992         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20993         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20994         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20995
20996 2009-04-06  Bruno Haible  <bruno@clisp.org>
20997
20998         Avoid test failures on AIX and OSF/1.
20999         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21000         that malloc(0) = NULL.
21001         * tests/unicase/test-u8-tolower.c (check): Likewise.
21002         * tests/unicase/test-u8-totitle.c (check): Likewise.
21003         * tests/unicase/test-u8-toupper.c (check): Likewise.
21004         * tests/unicase/test-u16-casefold.c (check): Likewise.
21005         * tests/unicase/test-u16-tolower.c (check): Likewise.
21006         * tests/unicase/test-u16-totitle.c (check): Likewise.
21007         * tests/unicase/test-u16-toupper.c (check): Likewise.
21008         * tests/unicase/test-u32-casefold.c (check): Likewise.
21009         * tests/unicase/test-u32-tolower.c (check): Likewise.
21010         * tests/unicase/test-u32-totitle.c (check): Likewise.
21011         * tests/unicase/test-u32-toupper.c (check): Likewise.
21012         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21013         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21014         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21015         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21016         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21017         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21018         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21019         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21020         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21021         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21022         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21023         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21024
21025 2009-04-05  Bruno Haible  <bruno@clisp.org>
21026
21027         Work around an autoconf limitation.
21028         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21029         comment line if it would be longer than 3 KB.
21030
21031 2009-04-05  Bruno Haible  <bruno@clisp.org>
21032
21033         Avoid test failure with libiconv-1.13.
21034         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21035         of the expected test results.
21036
21037 2009-04-05  Bruno Haible  <bruno@clisp.org>
21038
21039         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21040         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21041         that it should be installed.
21042
21043 2009-04-05  Bruno Haible  <bruno@clisp.org>
21044
21045         * gnulib-tool: New option --copy-file.
21046         (func_usage): Document it.
21047         (func_dest_tmpfilename): Moved out of func_import.
21048         (func_add_file, func_update_file): New functions, extracted from
21049         func_import.
21050         (func_import): Update.
21051
21052 2009-04-05  Karl Berry  <karl@gnu.org>
21053
21054         * README: prominently mention gnulib-tool.
21055         Rearrange sections so getting the code is near the top.
21056
21057 2009-04-05  Bruno Haible  <bruno@clisp.org>
21058
21059         * lib/unicase.h: Mention u*_cmp2.
21060         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21061         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21062         * lib/unicase/ulc-casecmp.c: Likewise.
21063         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21064         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21065         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21066         unistr/u8-cmp.
21067         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21068         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21069         unistr/u16-cmp.
21070         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21071         unistr/u32-cmp.
21072
21073         * lib/uninorm.h: Mention u*_cmp2.
21074         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21075         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21076         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21077         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21078         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21079         unistr/u8-cmp.
21080         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21081         unistr/u16-cmp.
21082         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21083         unistr/u32-cmp.
21084
21085         New module 'unistr/u32-cmp2'.
21086         * lib/unistr/u32-cmp2.c: New file.
21087         * modules/unistr/u32-cmp2: New file.
21088
21089         New module 'unistr/u16-cmp2'.
21090         * lib/unistr/u16-cmp2.c: New file.
21091         * modules/unistr/u16-cmp2: New file.
21092
21093         New module 'unistr/u8-cmp2'.
21094         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21095         * lib/unistr/u8-cmp2.c: New file.
21096         * lib/unistr/u-cmp2.h: New file.
21097         * modules/unistr/u8-cmp2: New file.
21098
21099 2009-04-05  Bruno Haible  <bruno@clisp.org>
21100
21101         * lib/unictype.h (uc_property_is_valid): New macro.
21102         * tests/unictype/test-pr_byname.c (main): Use it.
21103
21104         * lib/unistr.h: Doc fixes.
21105         * lib/uniconv.h: Doc fixes.
21106         * lib/unictype.h: Doc fixes.
21107
21108 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21109
21110         Port coreutils 7.2 to Solaris 8.
21111
21112         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21113         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21114         for Solaris 8.  This is a bit of a hack, as it means it's the
21115         caller's responsibility to add -lnsl if needed, but most likely it
21116         won't be needed since only getaddrinfo uses this and getaddrinfo
21117         isn't needed on Solaris 8.
21118
21119         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21120         problem to Solaris 8 encountered with coreutils 7.2, which
21121         resulted in a message "fnmatch.c:292: warning: passing argument 4
21122         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21123         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21124
21125 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21126
21127         * m4/ld-version-script.m4: Add FIXME comment.
21128
21129 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21130
21131         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21132         SOVERSION variable.
21133
21134 2009-04-02  Bruno Haible  <bruno@clisp.org>
21135
21136         * Makefile (info, html, dvi, pdf): Combine the rules.
21137         Suggested by Jim Meyering.
21138
21139 2009-04-01  Bruno Haible  <bruno@clisp.org>
21140
21141         * Makefile (info, html, dvi, pdf): New targets.
21142         Reported by Reuben Thomas <rrt@sc3d.org>.
21143
21144 2009-04-01  Bruno Haible  <bruno@clisp.org>
21145
21146         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21147         can be put into PATH.
21148         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21149
21150 2009-04-01  Bruno Haible  <bruno@clisp.org>
21151
21152         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21153
21154 2009-04-01  Bruno Haible  <bruno@clisp.org>
21155
21156         Rename module 'visibility'.
21157         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21158         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21159         * doc/gnulib.texi: Update.
21160         * MODULES.html.sh (Misc): Update.
21161         * NEWS: Mention the change.
21162
21163 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21164
21165         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21166         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21167         Eric Blake <ebb9@byu.net> for review.
21168         * MODULES.html.sh: Add lib-msvc-compat.
21169         * doc/gnulib.texi: Link to new section.
21170         * m4/ld-output-def.m4: New file.
21171         * doc/ld-output-def.texi: New file.
21172
21173 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21174
21175         Rename ld-version-script to lib-symbol-versions.  Suggested by
21176         Bruno Haible <bruno@clisp.org>.
21177         * modules/ld-version-script: Renamed to lib-symbol-versions.
21178         * doc/ld-version-script.texi: Fix module name.
21179         * MODULES.html.sh: Add lib-symbol-versions.
21180
21181 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21182
21183         * modules/u64-tests: New file.
21184         * tests/test-u64.c: New file.
21185
21186 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21187
21188         * MODULES.html.sh: Mention u64.
21189         * modules/u64: New module.
21190         * modules/crypto/sha512: Depend on u64 module instead of providing
21191         u64.h.
21192
21193 2009-03-27  Eric Blake  <ebb9@byu.net>
21194
21195         test-strerror: make debugging EAI_SYSTEM easier
21196         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21197         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21198         failure was EAI_SYSTEM.
21199
21200 2009-03-25  Bruno Haible  <bruno@clisp.org>
21201
21202         Fix a problem with --enable-relocatable on Solaris 7.
21203         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21204         since 2008-02-24.
21205
21206 2009-03-25  Eric Blake  <ebb9@byu.net>
21207
21208         test-sockets: avoid gcc warning
21209         * tests/test-sockets.c (main): Silence compiler warning.
21210
21211 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         New modules nproc, pthread, contributed by Glen Lenker.
21214
21215         * MODULES.html.sh: Add pthread, nproc.
21216         * lib/nproc.c: New file.
21217         * lib/nproc.h: New file.
21218         * lib/pthread.in.h: New file.
21219         * m4/pthread.m4: New file.
21220         * modules/nproc: New file.
21221         * modules/pthread: New file.
21222
21223 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21224
21225         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21226         New variable.
21227
21228 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21229
21230         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21231         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21232         * tests/test-filevercmp.c: Add tests for backup suffixes.
21233
21234 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21235
21236         * modules/stdlib (Depends-on): Add stdint, needed when defining
21237         struct random_data on, for example, HP-UX 10.20.  Reported by
21238         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21239
21240 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21241
21242         * lib/readline.c (readline): Call fflush on stdout after printing
21243         prompt.
21244
21245 2009-03-20  Bruno Haible  <bruno@clisp.org>
21246
21247         Remove dependency from 'close' module to -lws2_32 on native Windows.
21248         * lib/close-hook.h: New file.
21249         * lib/close-hook.c: New file.
21250         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21251         w32sock.h.
21252         (_gl_close_fd_maybe_socket): Remove function.
21253         (rpl_close): Invoke execute_all_close_hooks instead of
21254         _gl_close_fd_maybe_socket.
21255         * lib/sockets.c: Include close-hook.h, w32sock.h.
21256         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21257         (close_sockets_hook): New variable.
21258         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21259         (gl_sockets_cleanup): Unregister it.
21260         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21261         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21262         * modules/close-hook: New file.
21263         * modules/close (Files): Remove lib/w32sock.h.
21264         (Depends-on): Add close-hook.
21265         (Link): Remove section.
21266         * modules/sockets (Files): Add lib/w32sock.h.
21267         (Depends-on): Add close-hook.
21268         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21269         invocation.
21270         * NEWS: Mention that LIB_CLOSE is gone.
21271
21272 2009-03-23  Eric Blake  <ebb9@byu.net>
21273
21274         signal-tests: test previous patch
21275         * tests/test-signal.c: New file.
21276         * modules/signal-tests: Likewise.
21277
21278         signal.h: always support 'volatile sig_atomic_t'
21279         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21280         (gl_SIGNAL_H_DEFAULTS): Add a default.
21281         * modules/signal (Makefile.am): Substitute if needed.
21282         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21283         users can blindly add volatile.
21284         * doc/posix-headers/signal.texi (signal.h): Document it.
21285         Reported by Matthew Woehlke.
21286
21287 2009-03-23  Jim Meyering  <meyering@redhat.com>
21288
21289         pathmax: PATH_MAX: use pathconf only when available
21290         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21291         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21292         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21293         This avoids a link failure in a PSP cross-compilation environment
21294         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21295
21296         * lib/vasnprintf.c (divide): Fix typo in comment.
21297
21298 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21299
21300         * gnulib-tool (func_filter_filelist): Fix comment.
21301
21302 2009-03-20  Bruno Haible  <bruno@clisp.org>
21303
21304         Make sockets.h self-contained.
21305         * lib/sockets.c: Include sockets.h first.
21306         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21307
21308 2009-03-19  Eric Blake  <ebb9@byu.net>
21309
21310         doc: mention more functions added in cygwin 1.7.0
21311         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21312         addition.
21313         * doc/posix-functions/log2f.texi: Likewise.
21314
21315 2009-03-19  Jim Meyering  <meyering@redhat.com>
21316
21317         fsusage: avoid syntax error due to statement-before-declaration
21318         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21319         after all declarations.  Reported by Matthew Woehlke in
21320         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21321
21322 2009-03-18  Eric Blake  <ebb9@byu.net>
21323
21324         build-aux/compile: sync from automake
21325         * build-aux/compile: New file, from automake.
21326         * config/srclist.txt: Mention build-aux/compile.
21327
21328 2009-03-17  Bruno Haible  <bruno@clisp.org>
21329
21330         * lib/git-merge-changelog.c: Fix typo in comment.
21331         Reported by Reuben Thomas <rrt@sc3d.org>.
21332
21333 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21334
21335         * m4/regex.m4: update and improve help for
21336         --without-included-regex.
21337
21338 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21339
21340         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21341         failure on missing include files.
21342
21343 2009-03-17  Eric Blake  <ebb9@byu.net>
21344
21345         doc: mention more functions added in cygwin 1.7.0
21346         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21347         addition.
21348         * doc/posix-functions/fwscanf.texi: Likewise.
21349         * doc/posix-functions/swprintf.texi: Likewise.
21350         * doc/posix-functions/swscanf.texi: Likewise.
21351         * doc/posix-functions/vfwprintf.texi: Likewise.
21352         * doc/posix-functions/vfwscanf.texi: Likewise.
21353         * doc/posix-functions/vswprintf.texi: Likewise.
21354         * doc/posix-functions/vswscanf.texi: Likewise.
21355         * doc/posix-functions/vwprintf.texi: Likewise.
21356         * doc/posix-functions/vwscanf.texi: Likewise.
21357         * doc/posix-functions/wcscasecmp.texi: Likewise.
21358         * doc/posix-functions/wcsdup.texi: Likewise.
21359         * doc/posix-functions/wcsftime.texi: Likewise.
21360         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21361         * doc/posix-functions/wprintf.texi: Likewise.
21362         * doc/posix-functions/wscanf.texi: Likewise.
21363         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21364
21365 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21366
21367         maint.mk: really add $(AM_MAKEFLAGS)
21368         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21369         was inadvertently omitted in the last commit.
21370         Spotted by Bruno Haible.
21371
21372         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21373         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21374         $(AM_MAKEFLAGS)' rather than plain `make'.
21375
21376         gnulib-tool: execute $MAKE not make
21377         * gnulib-tool: Default $MAKE to 'make'.
21378         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21379         than make.  Initialize $MAKE in the do-autobuild script.
21380
21381         gnulib-tool: use $MAKE not make in generated files
21382         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21383         make, in generated files.  Initialize $MAKE in the do-autobuild
21384         script.
21385
21386         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21387
21388         GNUmakefile: disable parallelism only for multiple, recursive targets
21389         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21390         additions in the Makefile.
21391         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21392         by Automake.
21393         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21394         are listed on the command line and at least one of them is
21395         listed in $(ALL_RECURSIVE_TARGETS).
21396
21397 2009-03-14  Bruno Haible  <bruno@clisp.org>
21398
21399         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21400         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21401         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21402         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21403         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21404         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21405         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21406         unistr/u8-uctomb.
21407         * modules/unistr/u8-strchr (Depends-on): Likewise.
21408         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21409         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21410         unistr/u16-uctomb.
21411         * modules/unistr/u16-strchr (Depends-on): Likewise.
21412         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21413
21414 2009-03-12  Bruno Haible  <bruno@clisp.org>
21415
21416         Work around select() bug on Interix 3.5.
21417         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21418         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21419         * m4/select.m4: New file.
21420         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21421         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21422         * modules/select (Files): Add m4/select.m4.
21423         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21424         * modules/nanosleep (Depends-on): Add select.
21425         * modules/poll (Depends-on): Likewise.
21426         * doc/posix-functions/select.texi: Mention the Interix bug.
21427         Reported by Markus Duft <mduft@gentoo.org>.
21428
21429         * lib/select.c: Renamed from lib/winsock-select.c.
21430         * modules/select (Files): Add lib/select.c, remove
21431         lib/winsock-select.c.
21432         (configure.ac): Update.
21433
21434 2009-03-12  Jim Meyering  <meyering@redhat.com>
21435
21436         avoid gcc warnings about unused macro definitions
21437         * lib/readtokens.c (STREQ): Remove unused definition.
21438         * lib/xmalloc.c (SIZE_MAX): Likewise.
21439         * lib/openat-die.c (N_): Likewise.
21440         * lib/mountlist.c (SIZE_MAX): Remove definition.
21441         Instead, include <stdint.h>.
21442         * lib/readutmp.c: Likewise.
21443         * modules/readutmp (Depends-on): Add stdint.
21444         * modules/mountlist (Depends-on): Add stdint.
21445         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21446
21447 2009-03-10  Bruno Haible  <bruno@clisp.org>
21448
21449         Tests for module 'mbmemcasecoll'.
21450         * modules/mbmemcasecoll-tests: New file.
21451         * tests/test-mbmemcasecoll1.sh: New file.
21452         * tests/test-mbmemcasecoll2.sh: New file.
21453         * tests/test-mbmemcasecoll3.sh: New file.
21454         * tests/test-mbmemcasecoll.c: New file.
21455
21456         New module 'mbmemcasecoll'.
21457         * lib/mbmemcasecoll.h: New file.
21458         * lib/mbmemcasecoll.c: New file.
21459         * modules/mbmemcasecoll: New file.
21460
21461         * tests/test-mbmemcasecmp.h: New file, extracted from
21462         tests/test-mbmemcasecmp.c.
21463         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21464         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21465         (main): Update.
21466         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21467
21468 2009-03-09  Bruno Haible  <bruno@clisp.org>
21469
21470         Tests for module 'mbmemcasecmp'.
21471         * modules/mbmemcasecmp-tests: New file.
21472         * tests/test-mbmemcasecmp1.sh: New file.
21473         * tests/test-mbmemcasecmp2.sh: New file.
21474         * tests/test-mbmemcasecmp3.sh: New file.
21475         * tests/test-mbmemcasecmp.c: New file.
21476
21477         New module 'mbmemcasecmp'.
21478         * lib/mbmemcasecmp.h: New file.
21479         * lib/mbmemcasecmp.c: New file.
21480         * modules/mbmemcasecmp: New file.
21481
21482 2009-03-09  Bruno Haible  <bruno@clisp.org>
21483
21484         Tests for module 'unicase/ulc-casecoll'.
21485         * modules/unicase/ulc-casecoll-tests: New file.
21486         * tests/unicase/test-ulc-casecoll1.sh: New file.
21487         * tests/unicase/test-ulc-casecoll2.sh: New file.
21488         * tests/unicase/test-ulc-casecoll.c: New file.
21489
21490         New module 'unicase/ulc-casecoll'.
21491         * lib/unicase.h (ulc_casecoll): New declaration.
21492         * lib/unicase/ulc-casecoll.c: New file.
21493         * modules/unicase/ulc-casecoll: New file.
21494
21495         New module 'unicase/ulc-casexfrm'.
21496         * lib/unicase.h (ulc_casexfrm): New declaration.
21497         * lib/unicase/ulc-casexfrm.c: New file.
21498         * modules/unicase/ulc-casexfrm: New file.
21499
21500 2009-03-09  Bruno Haible  <bruno@clisp.org>
21501
21502         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21503         invocations.
21504
21505         * m4/mbscasecmp.m4: Remove file.
21506         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21507         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21508
21509         * m4/mbscasestr.m4: Remove file.
21510         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21511         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21512
21513         * m4/mbschr.m4: Remove file.
21514         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21515         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21516
21517         * m4/mbscspn.m4: Remove file.
21518         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21519         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21520
21521         * m4/mbslen.m4: Remove file.
21522         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21523         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21524
21525         * m4/mbsncasecmp.m4: Remove file.
21526         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21527         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21528
21529         * m4/mbsnlen.m4: Remove file.
21530         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21531         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21532
21533         * m4/mbspbrk.m4: Remove file.
21534         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21535         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21536
21537         * m4/mbspcasecmp.m4: Remove file.
21538         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21539         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21540
21541         * m4/mbsrchr.m4: Remove file.
21542         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21543         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21544
21545         * m4/mbssep.m4: Remove file.
21546         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21547         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21548
21549         * m4/mbsspn.m4: Remove file.
21550         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21551         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21552
21553         * m4/mbsstr.m4: Remove file.
21554         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21555         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21556
21557         * m4/mbstok_r.m4: Remove file.
21558         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21559         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21560
21561         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21562
21563         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21564         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21565
21566         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21567
21568 2009-03-08  Bruno Haible  <bruno@clisp.org>
21569
21570         Tests for module 'unicase/ulc-casecmp'.
21571         * modules/unicase/ulc-casecmp-tests: New file.
21572         * tests/unicase/test-ulc-casecmp1.sh: New file.
21573         * tests/unicase/test-ulc-casecmp2.sh: New file.
21574         * tests/unicase/test-ulc-casecmp.c: New file.
21575
21576         New module 'unicase/ulc-casecmp'.
21577         * lib/unicase.h (ulc_casecmp): New declaration.
21578         * lib/unicase/ulc-casecmp.c: New file.
21579         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21580         'const SRC_UNIT *'.
21581         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21582         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21583         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21584         * modules/unicase/ulc-casecmp: New file.
21585
21586         Tests for module 'unicase/u32-is-cased'.
21587         * modules/unicase/u32-is-cased-tests: New file.
21588         * tests/unicase/test-u32-is-cased.c: New file.
21589
21590         Tests for module 'unicase/u16-is-cased'.
21591         * modules/unicase/u16-is-cased-tests: New file.
21592         * tests/unicase/test-u16-is-cased.c: New file.
21593
21594         Tests for module 'unicase/u8-is-cased'.
21595         * modules/unicase/u8-is-cased-tests: New file.
21596         * tests/unicase/test-u8-is-cased.c: New file.
21597         * tests/unicase/test-is-cased.h: New file.
21598
21599         New module 'unicase/u32-is-cased'.
21600         * lib/unicase/u32-is-cased.c: New file.
21601         * modules/unicase/u32-is-cased: New file.
21602
21603         New module 'unicase/u16-is-cased'.
21604         * lib/unicase/u16-is-cased.c: New file.
21605         * modules/unicase/u16-is-cased: New file.
21606
21607         New module 'unicase/u8-is-cased'.
21608         * lib/unicase/u8-is-cased.c: New file.
21609         * lib/unicase/u-is-cased.h: New file.
21610         * modules/unicase/u8-is-cased: New file.
21611
21612         Tests for module 'unicase/u32-is-casefolded'.
21613         * modules/unicase/u32-is-casefolded-tests: New file.
21614         * tests/unicase/test-u32-is-casefolded.c: New file.
21615
21616         Tests for module 'unicase/u16-is-casefolded'.
21617         * modules/unicase/u16-is-casefolded-tests: New file.
21618         * tests/unicase/test-u16-is-casefolded.c: New file.
21619
21620         Tests for module 'unicase/u8-is-casefolded'.
21621         * modules/unicase/u8-is-casefolded-tests: New file.
21622         * tests/unicase/test-u8-is-casefolded.c: New file.
21623         * tests/unicase/test-is-casefolded.h: New file.
21624
21625         New module 'unicase/u32-is-casefolded'.
21626         * lib/unicase/u32-is-casefolded.c: New file.
21627         * modules/unicase/u32-is-casefolded: New file.
21628
21629         New module 'unicase/u16-is-casefolded'.
21630         * lib/unicase/u16-is-casefolded.c: New file.
21631         * modules/unicase/u16-is-casefolded: New file.
21632
21633         New module 'unicase/u8-is-casefolded'.
21634         * lib/unicase/u8-is-casefolded.c: New file.
21635         * modules/unicase/u8-is-casefolded: New file.
21636
21637         Tests for module 'unicase/u32-is-titlecase'.
21638         * modules/unicase/u32-is-titlecase-tests: New file.
21639         * tests/unicase/test-u32-is-titlecase.c: New file.
21640
21641         Tests for module 'unicase/u16-is-titlecase'.
21642         * modules/unicase/u16-is-titlecase-tests: New file.
21643         * tests/unicase/test-u16-is-titlecase.c: New file.
21644
21645         Tests for module 'unicase/u8-is-titlecase'.
21646         * modules/unicase/u8-is-titlecase-tests: New file.
21647         * tests/unicase/test-u8-is-titlecase.c: New file.
21648         * tests/unicase/test-is-titlecase.h: New file.
21649
21650         New module 'unicase/u32-is-titlecase'.
21651         * lib/unicase/u32-is-titlecase.c: New file.
21652         * modules/unicase/u32-is-titlecase: New file.
21653
21654         New module 'unicase/u16-is-titlecase'.
21655         * lib/unicase/u16-is-titlecase.c: New file.
21656         * modules/unicase/u16-is-titlecase: New file.
21657
21658         New module 'unicase/u8-is-titlecase'.
21659         * lib/unicase/u8-is-titlecase.c: New file.
21660         * modules/unicase/u8-is-titlecase: New file.
21661
21662         Tests for module 'unicase/u32-is-lowercase'.
21663         * modules/unicase/u32-is-lowercase-tests: New file.
21664         * tests/unicase/test-u32-is-lowercase.c: New file.
21665
21666         Tests for module 'unicase/u16-is-lowercase'.
21667         * modules/unicase/u16-is-lowercase-tests: New file.
21668         * tests/unicase/test-u16-is-lowercase.c: New file.
21669
21670         Tests for module 'unicase/u8-is-lowercase'.
21671         * modules/unicase/u8-is-lowercase-tests: New file.
21672         * tests/unicase/test-u8-is-lowercase.c: New file.
21673         * tests/unicase/test-is-lowercase.h: New file.
21674
21675         New module 'unicase/u32-is-lowercase'.
21676         * lib/unicase/u32-is-lowercase.c: New file.
21677         * modules/unicase/u32-is-lowercase: New file.
21678
21679         New module 'unicase/u16-is-lowercase'.
21680         * lib/unicase/u16-is-lowercase.c: New file.
21681         * modules/unicase/u16-is-lowercase: New file.
21682
21683         New module 'unicase/u8-is-lowercase'.
21684         * lib/unicase/u8-is-lowercase.c: New file.
21685         * modules/unicase/u8-is-lowercase: New file.
21686
21687         Tests for module 'unicase/u32-is-uppercase'.
21688         * modules/unicase/u32-is-uppercase-tests: New file.
21689         * tests/unicase/test-u32-is-uppercase.c: New file.
21690
21691         Tests for module 'unicase/u16-is-uppercase'.
21692         * modules/unicase/u16-is-uppercase-tests: New file.
21693         * tests/unicase/test-u16-is-uppercase.c: New file.
21694
21695         Tests for module 'unicase/u8-is-uppercase'.
21696         * modules/unicase/u8-is-uppercase-tests: New file.
21697         * tests/unicase/test-u8-is-uppercase.c: New file.
21698         * tests/unicase/test-is-uppercase.h: New file.
21699
21700         New module 'unicase/u32-is-uppercase'.
21701         * lib/unicase/u32-is-uppercase.c: New file.
21702         * modules/unicase/u32-is-uppercase: New file.
21703
21704         New module 'unicase/u16-is-uppercase'.
21705         * lib/unicase/u16-is-uppercase.c: New file.
21706         * modules/unicase/u16-is-uppercase: New file.
21707
21708         New module 'unicase/u8-is-uppercase'.
21709         * lib/unicase/u8-is-uppercase.c: New file.
21710         * modules/unicase/u8-is-uppercase: New file.
21711
21712         New module 'unicase/u32-is-invariant'.
21713         * lib/unicase/u32-is-invariant.c: New file.
21714         * modules/unicase/u32-is-invariant: New file.
21715
21716         New module 'unicase/u16-is-invariant'.
21717         * lib/unicase/u16-is-invariant.c: New file.
21718         * modules/unicase/u16-is-invariant: New file.
21719
21720         New module 'unicase/u8-is-invariant'.
21721         * lib/unicase/u8-is-invariant.c: New file.
21722         * lib/unicase/invariant.h: New file.
21723         * lib/unicase/u-is-invariant.h: New file.
21724         * modules/unicase/u8-is-invariant: New file.
21725
21726         Tests for module 'unicase/u32-casecoll'.
21727         * modules/unicase/u32-casecoll-tests: New file.
21728         * tests/unicase/test-u32-casecoll.c: New file.
21729
21730         Tests for module 'unicase/u16-casecoll'.
21731         * modules/unicase/u16-casecoll-tests: New file.
21732         * tests/unicase/test-u16-casecoll.c: New file.
21733
21734         Tests for module 'unicase/u8-casecoll'.
21735         * modules/unicase/u8-casecoll-tests: New file.
21736         * tests/unicase/test-u8-casecoll.c: New file.
21737
21738         New module 'unicase/u32-casecoll'.
21739         * lib/unicase/u32-casecoll.c: New file.
21740         * modules/unicase/u32-casecoll: New file.
21741
21742         New module 'unicase/u16-casecoll'.
21743         * lib/unicase/u16-casecoll.c: New file.
21744         * modules/unicase/u16-casecoll: New file.
21745
21746         New module 'unicase/u8-casecoll'.
21747         * lib/unicase/u8-casecoll.c: New file.
21748         * lib/unicase/u-casecoll.h: New file.
21749         * modules/unicase/u8-casecoll: New file.
21750
21751         New module 'unicase/u32-casexfrm'.
21752         * lib/unicase/u32-casexfrm.c: New file.
21753         * modules/unicase/u32-casexfrm: New file.
21754
21755         New module 'unicase/u16-casexfrm'.
21756         * lib/unicase/u16-casexfrm.c: New file.
21757         * modules/unicase/u16-casexfrm: New file.
21758
21759         New module 'unicase/u8-casexfrm'.
21760         * lib/unicase/u8-casexfrm.c: New file.
21761         * lib/unicase/u-casexfrm.h: New file.
21762         * modules/unicase/u8-casexfrm: New file.
21763
21764         Tests for module 'unicase/u32-casecmp'.
21765         * modules/unicase/u32-casecmp-tests: New file.
21766         * tests/unicase/test-u32-casecmp.c: New file.
21767
21768         Tests for module 'unicase/u16-casecmp'.
21769         * modules/unicase/u16-casecmp-tests: New file.
21770         * tests/unicase/test-u16-casecmp.c: New file.
21771
21772         Tests for module 'unicase/u8-casecmp'.
21773         * modules/unicase/u8-casecmp-tests: New file.
21774         * tests/unicase/test-u8-casecmp.c: New file.
21775         * tests/unicase/test-casecmp.h: New file.
21776
21777         New module 'unicase/u32-casecmp'.
21778         * lib/unicase/u32-casecmp.c: New file.
21779         * modules/unicase/u32-casecmp: New file.
21780
21781         New module 'unicase/u16-casecmp'.
21782         * lib/unicase/u16-casecmp.c: New file.
21783         * modules/unicase/u16-casecmp: New file.
21784
21785         New module 'unicase/u8-casecmp'.
21786         * lib/unicase/u8-casecmp.c: New file.
21787         * lib/unicase/u-casecmp.h: New file.
21788         * modules/unicase/u8-casecmp: New file.
21789
21790         Tests for module 'unicase/u32-casefold'.
21791         * modules/unicase/u32-casefold-tests: New file.
21792         * tests/unicase/test-u32-casefold.c: New file.
21793
21794         Tests for module 'unicase/u16-casefold'.
21795         * modules/unicase/u16-casefold-tests: New file.
21796         * tests/unicase/test-u16-casefold.c: New file.
21797
21798         Tests for module 'unicase/u8-casefold'.
21799         * modules/unicase/u8-casefold-tests: New file.
21800         * tests/unicase/test-u8-casefold.c: New file.
21801
21802         New module 'unicase/u32-casefold'.
21803         * lib/unicase/u32-casefold.c: New file.
21804         * modules/unicase/u32-casefold: New file.
21805
21806         New module 'unicase/u16-casefold'.
21807         * lib/unicase/u16-casefold.c: New file.
21808         * modules/unicase/u16-casefold: New file.
21809
21810         New module 'unicase/u8-casefold'.
21811         * lib/unicase/u8-casefold.c: New file.
21812         * lib/unicase/u-casefold.h: New file.
21813         * modules/unicase/u8-casefold: New file.
21814
21815         New module 'unicase/tocasefold'.
21816         * lib/unicase/casefold.h: New file.
21817         * lib/unicase/tocasefold.c: New file.
21818         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21819         * modules/unicase/tocasefold: New file.
21820
21821         Tests for module 'unicase/u32-totitle'.
21822         * modules/unicase/u32-totitle-tests: New file.
21823         * tests/unicase/test-u32-totitle.c: New file.
21824
21825         Tests for module 'unicase/u16-totitle'.
21826         * modules/unicase/u16-totitle-tests: New file.
21827         * tests/unicase/test-u16-totitle.c: New file.
21828
21829         Tests for module 'unicase/u8-totitle'.
21830         * modules/unicase/u8-totitle-tests: New file.
21831         * tests/unicase/test-u8-totitle.c: New file.
21832
21833         New module 'unicase/u32-totitle'.
21834         * lib/unicase/u32-totitle.c: New file.
21835         * modules/unicase/u32-totitle: New file.
21836
21837         New module 'unicase/u16-totitle'.
21838         * lib/unicase/u16-totitle.c: New file.
21839         * modules/unicase/u16-totitle: New file.
21840
21841         New module 'unicase/u8-totitle'.
21842         * lib/unicase/u8-totitle.c: New file.
21843         * lib/unicase/u-totitle.h: New file.
21844         * modules/unicase/u8-totitle: New file.
21845
21846         Tests for module 'unicase/u32-tolower'.
21847         * modules/unicase/u32-tolower-tests: New file.
21848         * tests/unicase/test-u32-tolower.c: New file.
21849
21850         Tests for module 'unicase/u16-tolower'.
21851         * modules/unicase/u16-tolower-tests: New file.
21852         * tests/unicase/test-u16-tolower.c: New file.
21853
21854         Tests for module 'unicase/u8-tolower'.
21855         * modules/unicase/u8-tolower-tests: New file.
21856         * tests/unicase/test-u8-tolower.c: New file.
21857
21858         New module 'unicase/u32-tolower'.
21859         * lib/unicase/u32-tolower.c: New file.
21860         * modules/unicase/u32-tolower: New file.
21861
21862         New module 'unicase/u16-tolower'.
21863         * lib/unicase/u16-tolower.c: New file.
21864         * modules/unicase/u16-tolower: New file.
21865
21866         New module 'unicase/u8-tolower'.
21867         * lib/unicase/u8-tolower.c: New file.
21868         * modules/unicase/u8-tolower: New file.
21869
21870         Tests for module 'unicase/u32-toupper'.
21871         * modules/unicase/u32-toupper-tests: New file.
21872         * tests/unicase/test-u32-toupper.c: New file.
21873
21874         Tests for module 'unicase/u16-toupper'.
21875         * modules/unicase/u16-toupper-tests: New file.
21876         * tests/unicase/test-u16-toupper.c: New file.
21877
21878         Tests for module 'unicase/u8-toupper'.
21879         * modules/unicase/u8-toupper-tests: New file.
21880         * tests/unicase/test-u8-toupper.c: New file.
21881
21882         New module 'unicase/u32-toupper'.
21883         * lib/unicase/u32-toupper.c: New file.
21884         * modules/unicase/u32-toupper: New file.
21885
21886         New module 'unicase/u16-toupper'.
21887         * lib/unicase/u16-toupper.c: New file.
21888         * modules/unicase/u16-toupper: New file.
21889
21890         New module 'unicase/u8-toupper'.
21891         * lib/unicase/u8-toupper.c: New file.
21892         * modules/unicase/u8-toupper: New file.
21893
21894         New module 'unicase/u32-casemap'.
21895         * lib/unicase/u32-casemap.c: New file.
21896         * modules/unicase/u32-casemap: New file.
21897
21898         New module 'unicase/u16-casemap'.
21899         * lib/unicase/u16-casemap.c: New file.
21900         * modules/unicase/u16-casemap: New file.
21901
21902         New module 'unicase/u8-casemap'.
21903         * lib/unicase/unicasemap.h: New file.
21904         * lib/unicase/u8-casemap.c: New file.
21905         * lib/unicase/u-casemap.h: New file.
21906         * modules/unicase/u8-casemap: New file.
21907
21908         New module 'unicase/special-casing'.
21909         * lib/unicase/special-casing.h: New file.
21910         * lib/unicase/special-casing.c: New file.
21911         * lib/unicase/special-casing-table.gperf: New file, generated by
21912         gen-uni-tables.c.
21913         * modules/unicase/special-casing: New file.
21914
21915         Tests for module 'unicase/locale-language'.
21916         * modules/unicase/locale-language-tests: New file.
21917         * tests/unicase/test-locale-language.sh: New file.
21918         * tests/unicase/test-locale-language.c: New file.
21919
21920         New module 'unicase/locale-language'.
21921         * lib/unicase/locale-language.c: New file.
21922         * lib/unicase/locale-languages.gperf: New file.
21923         * modules/unicase/locale-language: New file.
21924
21925         Generate more tables for case conversion and case folding.
21926         * lib/gen-uni-tables.c (SCC_*): New enum items.
21927         (struct special_casing_rule): New type.
21928         (casing_rules, num_casing_rules, allocated_casing_rules): New
21929         variables.
21930         (add_casing_rule, fill_casing_rules): New functions.
21931         (struct casefold_rule): New type.
21932         (casefolding_rules, num_casefolding_rules,
21933         allocated_casefolding_rules): New variables.
21934         (fill_casefolding_rules): New function.
21935         (unicode_casefold): New variable.
21936         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21937         sort_casing_rules, output_casing_rules): New functions.
21938         (main): Accept to more arguments: SpecialCasing.txt and
21939         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21940         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21941         Output mapping for casefolding.
21942
21943         * lib/unicase.h: Include stdbool.h, uninorm.h.
21944         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21945         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21946         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21947         arguments.
21948         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21949         resultp arguments.
21950         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21951         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21952         resultp arguments.
21953         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21954         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21955         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21956         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21957         declarations.
21958         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21959
21960 2009-03-08  Bruno Haible  <bruno@clisp.org>
21961
21962         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21963         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21964         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21965         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21966
21967 2009-03-07  Bruno Haible  <bruno@clisp.org>
21968
21969         Adjust u*_normcmp, u*_normcoll API.
21970         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21971         u16_normcoll, u32_normcoll): Change failure conventions.
21972         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21973         errno and return -1.
21974         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21975
21976 2009-03-07  Bruno Haible  <bruno@clisp.org>
21977
21978         Tests for module 'uninorm/u32-normcoll'.
21979         * modules/uninorm/u32-normcoll-tests: New file.
21980         * tests/uninorm/test-u32-normcoll.c: New file.
21981
21982         Tests for module 'uninorm/u16-normcoll'.
21983         * modules/uninorm/u16-normcoll-tests: New file.
21984         * tests/uninorm/test-u16-normcoll.c: New file.
21985
21986         Tests for module 'uninorm/u8-normcoll'.
21987         * modules/uninorm/u8-normcoll-tests: New file.
21988         * tests/uninorm/test-u8-normcoll.c: New file.
21989
21990 2009-03-07  Bruno Haible  <bruno@clisp.org>
21991
21992         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21993         tests/uninorm/test-u32-normcmp.c.
21994         * tests/uninorm/test-u32-normcmp.c: Include it.
21995         (test_nonascii): New function, extracted from main. Add some more
21996         tests.
21997         (main): Invoke test_ascii and test_nonascii.
21998         * modules/uninorm/u32-normcmp-tests (Files): Add
21999         tests/uninorm/test-u32-normcmp.h.
22000         (Depends-on): Remove uninorm/u32-normcmp.
22001
22002         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22003         tests/uninorm/test-u16-normcmp.c.
22004         * tests/uninorm/test-u16-normcmp.c: Include it.
22005         (test_nonascii): New function, extracted from main. Add some more
22006         tests.
22007         (main): Invoke test_ascii and test_nonascii.
22008         * modules/uninorm/u16-normcmp-tests (Files): Add
22009         tests/uninorm/test-u16-normcmp.h.
22010         (Depends-on): Remove uninorm/u16-normcmp.
22011
22012         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22013         tests/uninorm/test-u8-normcmp.c.
22014         * tests/uninorm/test-u8-normcmp.c: Include it.
22015         (test_nonascii): New function, extracted from main. Add some more
22016         tests.
22017         (main): Invoke test_ascii and test_nonascii.
22018         * modules/uninorm/u8-normcmp-tests (Files): Add
22019         tests/uninorm/test-u8-normcmp.h.
22020         (Depends-on): Remove uninorm/u8-normcmp.
22021
22022 2009-03-07  Bruno Haible  <bruno@clisp.org>
22023
22024         New module 'uninorm/u32-normcoll'.
22025         * lib/uninorm/u32-normcoll.c: New file.
22026         * modules/uninorm/u32-normcoll: New file.
22027
22028         New module 'uninorm/u16-normcoll'.
22029         * lib/uninorm/u16-normcoll.c: New file.
22030         * modules/uninorm/u16-normcoll: New file.
22031
22032         New module 'uninorm/u8-normcoll'.
22033         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22034         declarations.
22035         * lib/uninorm/u8-normcoll.c: New file.
22036         * lib/uninorm/u-normcoll.h: New file.
22037         * modules/uninorm/u8-normcoll: New file.
22038
22039         New module 'uninorm/u32-normxfrm'.
22040         * lib/uninorm/u32-normxfrm.c: New file.
22041         * modules/uninorm/u32-normxfrm: New file.
22042
22043         New module 'uninorm/u16-normxfrm'.
22044         * lib/uninorm/u16-normxfrm.c: New file.
22045         * modules/uninorm/u16-normxfrm: New file.
22046
22047         New module 'uninorm/u8-normxfrm'.
22048         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22049         declarations.
22050         * lib/uninorm/u8-normxfrm.c: New file.
22051         * lib/uninorm/u-normxfrm.h: New file.
22052         * modules/uninorm/u8-normxfrm: New file.
22053
22054 2009-03-07  Bruno Haible  <bruno@clisp.org>
22055
22056         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22057         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22058         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22059
22060 2009-03-07  Bruno Haible  <bruno@clisp.org>
22061
22062         New module 'memxfrm'.
22063         * lib/memxfrm.h: New file.
22064         * lib/memxfrm.c: New file.
22065         * modules/memxfrm: New file.
22066
22067 2009-03-07  Bruno Haible  <bruno@clisp.org>
22068
22069         New module 'memcmp2'.
22070         * lib/memcmp2.h: New file.
22071         * lib/memcmp2.c: New file.
22072         * modules/memcmp2: New file.
22073
22074 2009-03-07  Bruno Haible  <bruno@clisp.org>
22075
22076         Tests for module 'uninorm/decomposing-form'.
22077         * modules/uninorm/decomposing-form-tests: New file.
22078         * tests/uninorm/test-decomposing-form.c: New file.
22079
22080         New module 'uninorm/decomposing-form'.
22081         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22082         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22083         Add 'decomposing_variant' field.
22084         * lib/uninorm/decomposing-form.c: New file.
22085         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22086         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22087         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22088         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22089         * modules/uninorm/decomposing-form: New file.
22090         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22091         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22092
22093 2009-03-07  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22096         strings.
22097
22098 2009-03-06  Bruno Haible  <bruno@clisp.org>
22099
22100         Tests for module 'uninorm/u32-normcmp'.
22101         * tests/uninorm/test-u32-normcmp.c: New file.
22102         * modules/uninorm/u32-normcmp-tests: New file.
22103
22104         Tests for module 'uninorm/u16-normcmp'.
22105         * tests/uninorm/test-u16-normcmp.c: New file.
22106         * modules/uninorm/u16-normcmp-tests: New file.
22107
22108         Tests for module 'uninorm/u8-normcmp'.
22109         * tests/uninorm/test-u8-normcmp.c: New file.
22110         * modules/uninorm/u8-normcmp-tests: New file.
22111
22112         New module 'uninorm/u32-normcmp'.
22113         * lib/uninorm/u32-normcmp.c: New file.
22114         * modules/uninorm/u32-normcmp: New file.
22115
22116         New module 'uninorm/u16-normcmp'.
22117         * lib/uninorm/u16-normcmp.c: New file.
22118         * modules/uninorm/u16-normcmp: New file.
22119
22120         New module 'uninorm/u8-normcmp'.
22121         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22122         declarations.
22123         * lib/uninorm/u8-normcmp.c: New file.
22124         * lib/uninorm/u-normcmp.h: New file.
22125         * modules/uninorm/u8-normcmp: New file.
22126
22127 2009-03-06  Bruno Haible  <bruno@clisp.org>
22128
22129         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22130         Reported by Eric Blake.
22131
22132 2009-03-06  Eric Blake  <ebb9@byu.net>
22133             Bruno Haible  <bruno@clisp.org>
22134
22135         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22136         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22137         condition.
22138         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22139         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22140         condition.
22141         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22142
22143 2009-03-06  Eric Blake  <ebb9@byu.net>
22144
22145         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22146         to avoid compiler warnings.
22147         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22148
22149 2009-03-05  Bruno Haible  <bruno@clisp.org>
22150
22151         * tests/test-ftell.c (main): Disable test beyond end of file on
22152         FreeMiNT.
22153         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22154
22155 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22156
22157         * lib/filevercmp.c: Move hidden files up in ordering.
22158         * tests/test-filevercmp.c: Add tests for hidden files.
22159
22160 2009-03-04  Bruno Haible  <bruno@clisp.org>
22161
22162         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22163         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22164         AM_CFLAGS.
22165         Reported by Simon Josefsson.
22166
22167 2009-03-03  Bruno Haible  <bruno@clisp.org>
22168
22169         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22170         Reported by Simon Josefsson.
22171
22172         * doc/ld-version-script.texi: Update node reference.
22173
22174 2009-03-03  Bruno Haible  <bruno@clisp.org>
22175
22176         * modules/visibility (License): Change to 'unlimited'.
22177         Suggested by Simon Josefsson.
22178
22179 2009-03-03  Jim Meyering  <meyering@redhat.com>
22180
22181         unlinkdir: cannot_unlink_dir may modify process state
22182         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22183         it's neither thread-safe nor appropriate for use in a library.
22184
22185 2009-03-03  Eric Blake  <ebb9@byu.net>
22186
22187         test-closein: silence test under Darwin
22188         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22189         care if it dies from EPIPE or EBADF.
22190
22191 2009-03-03  Bruno Haible  <bruno@clisp.org>
22192
22193         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22194         earlier.
22195         * doc/visibility.texi: Fix @node and @section.
22196
22197 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22198
22199         * doc/gnulib.texi: Link to sections for ld version script and
22200         visibility.
22201         * doc/visibility.texi: Add @node and @section.
22202         * modules/ld-version-script: New module.
22203         * m4/ld-version-script.m4: New file.
22204         * doc/ld-version-script.texi: New file.
22205
22206 2009-03-02  David Lutterkort  <lutter@redhat.com>
22207
22208         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22210
22211 2009-03-02  Bruno Haible  <bruno@clisp.org>
22212
22213         * doc/visibility.texi: Mention libtool's -export-symbols option.
22214
22215 2009-03-02  Jim Meyering  <meyering@redhat.com>
22216
22217         announce-gen: new option: --no-print-checksums
22218         * build-aux/announce-gen (usage): Describe it.
22219         (print_checksums): Print a newline here, not in the [*] footnote.
22220         (main): Honor it.
22221
22222 2009-03-01  Bruno Haible  <bruno@clisp.org>
22223
22224         Use socklen_t in the native Windows replacements prototypes.
22225         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22226         instead of 'int'.
22227         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22228         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22229         * modules/getsockopt (Depends-on): Add socklen.
22230         * modules/setsockopt (Depends-on): Add socklen.
22231
22232 2009-03-01  Bruno Haible  <bruno@clisp.org>
22233
22234         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22235         least 4.2.
22236
22237 2009-03-01  Eric Blake  <ebb9@byu.net>
22238             Bruno Haible  <bruno@clisp.org>
22239
22240         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22241         error messages.
22242         * lib/wait-process.c (wait_subprocess): Omit error message about
22243         deadly signal sent to the child of termsigp != NULL.
22244
22245 2009-03-01  Eric Blake  <ebb9@byu.net>
22246
22247         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22248
22249 2009-03-01  Bruno Haible  <bruno@clisp.org>
22250
22251         Avoid a gcc warning.
22252         * tests/test-sched.c (b): Make global.
22253         Reported by Eric Blake.
22254
22255 2009-01-19  Martin Lambers  <marlam@marlam.de>
22256
22257         Provide POSIX semantics for socket timeout options on W32.
22258         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22259         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22260         * modules/setsockopt: Depend on sys_time module for struct timeval.
22261         * modules/getsockopt: Depend on sys_time module for struct timeval.
22262
22263 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22264
22265         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22266         __USE_GNU, for consistency with netdb.in.h.
22267         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22268
22269 2009-03-01  Bruno Haible  <bruno@clisp.org>
22270
22271         More support for FreeMiNT.
22272         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22273         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22274
22275 2009-03-01  Bruno Haible  <bruno@clisp.org>
22276
22277         More support for FreeMiNT.
22278         * lib/fpurge.c (fpurge): Correct last commit.
22279         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22280
22281 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22282
22283         Fix unportable awk script in vc-list-files.
22284         * build-aux/vc-list-files: In the replacement awk script, use
22285         substr with a second argument of 1, not zero.
22286         Report by Simon Josefsson.
22287
22288 2009-02-28  Bruno Haible  <bruno@clisp.org>
22289
22290         More support for FreeMiNT.
22291         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22292         to FreeMiNT today.
22293         * lib/fwriting.c (fwriting): Likewise.
22294         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22295
22296 2009-02-28  Bruno Haible  <bruno@clisp.org>
22297
22298         * tests/test-freadseek.c (main): Disable test beyond end of file on
22299         FreeMiNT.
22300         * tests/test-ftello.c (main): Likewise.
22301         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22302
22303 2009-02-28  Bruno Haible  <bruno@clisp.org>
22304
22305         Add tentative support for FreeMiNT.
22306         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22307         * lib/fpurge.c (fpurge): Likewise.
22308         * lib/freadable.c (freadable): Likewise.
22309         * lib/freading.c (freading): Likewise.
22310         * lib/freadptr.c (freadptr): Likewise.
22311         * lib/freadseek.c (freadptrinc): Likewise.
22312         * lib/fseeko.c (rpl_fseeko): Likewise.
22313         * lib/fseterr.c (fseterr): Likewise.
22314         * lib/fwritable.c (fwritable): Likewise.
22315         * lib/fwriting.c (fwriting): Likewise.
22316         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22317         Hourihane.
22318         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22319
22320 2009-02-28  Bruno Haible  <bruno@clisp.org>
22321
22322         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22323         SIGCHLD.
22324         Reported by Jim Meyering.
22325
22326 2009-02-28  Bruno Haible  <bruno@clisp.org>
22327
22328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22329         Mention the results of these tests on various platforms.
22330         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22331         order.
22332         * doc/posix-functions/printf.texi: Likewise.
22333         * doc/posix-functions/snprintf.texi: Likewise.
22334         * doc/posix-functions/sprintf.texi: Likewise.
22335         * doc/posix-functions/vfprintf.texi: Likewise.
22336         * doc/posix-functions/vprintf.texi: Likewise.
22337         * doc/posix-functions/vsnprintf.texi: Likewise.
22338         * doc/posix-functions/vsprintf.texi: Likewise.
22339         * doc/glibc-functions/obstack_printf.texi: Likewise.
22340         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22341
22342 2009-02-28  Bruno Haible  <bruno@clisp.org>
22343
22344         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22345         Reported by Loïc Minier <lool@dooz.org>.
22346
22347 2009-02-27  Bruno Haible  <bruno@clisp.org>
22348
22349         * gnulib-tool (func_import): Make the sed expression used to create the
22350         sed script for updating the .gitignore file POSIX compliant.
22351         Reported by Eric Blake.
22352
22353 2009-02-27  Bruno Haible  <bruno@clisp.org>
22354
22355         * gnulib-tool (sed): Don't alias as "sed --posix".
22356         Reported by Eric Blake.
22357
22358 2009-02-27  Bruno Haible  <bruno@clisp.org>
22359
22360         Avoid test link errors.
22361         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22362         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22363         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22364         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22366
22367 2009-02-27  Bruno Haible  <bruno@clisp.org>
22368
22369         Avoid spurious "(cached)" in configure output.
22370         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22371         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22372         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22373         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22374         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22375         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22377         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22378         Reported by Eric Blake.
22379
22380 2009-02-27  Eric Blake  <ebb9@byu.net>
22381
22382         printf: fix regression in previous patch
22383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22384
22385 2009-02-27  Bruno Haible  <bruno@clisp.org>
22386
22387         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22388         value.
22389         * lib/stdint.in.h: Likewise.
22390         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22391
22392 2009-02-27  Eric Blake  <ebb9@byu.net>
22393
22394         doc: mention more functions added in cygwin 1.7.0
22395         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22396         addition.
22397         * doc/posix-functions/open_wmemstream.texi: Likewise.
22398         * doc/posix-functions/wcsnlen.texi: Likewise.
22399         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22400         * doc/posix-functions/wcstod.texi: Likewise.
22401         * doc/posix-functions/wcstof.texi: Likewise.
22402         * doc/posix-functions/wcstoimax.texi: Likewise.
22403         * doc/posix-functions/wcstok.texi: Likewise.
22404         * doc/posix-functions/wcstoumax.texi: Likewise.
22405
22406         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22407         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22408         * doc/posix-functions/fprintf.texi: Update.
22409         * doc/posix-functions/printf.texi: Update.
22410         * doc/posix-functions/snprintf.texi: Update.
22411         * doc/posix-functions/sprintf.texi: Update.
22412         * doc/posix-functions/vfprintf.texi: Update.
22413         * doc/posix-functions/vprintf.texi: Update.
22414         * doc/posix-functions/vsnprintf.texi: Update.
22415         * doc/posix-functions/vsprintf.texi: Update.
22416         * doc/glibc-functions/obstack_printf.texi: Update.
22417         * doc/glibc-functions/obstack_vprintf.texi: Update.
22418
22419 2009-02-26  Eric Blake  <ebb9@byu.net>
22420
22421         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22422         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22423         compilation bug by using runtime conversion.
22424         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22425         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22426         * modules/ceill-tests (Files): Use nan.h.
22427         * modules/floorl-tests (Files): Likewise.
22428         * modules/frexpl-tests (Files): Likewise.
22429         * modules/isnanl-tests (Files): Likewise.
22430         * modules/ldexpl-tests (Files): Likewise.
22431         * modules/roundl-tests (Files): Likewise.
22432         * modules/truncl-tests (Files): Likewise.
22433         * tests/test-ceill.c (main): Use a working NaN.
22434         * tests/test-floorl.c (main): Likewise.
22435         * tests/test-frexpl.c (main): Likewise.
22436         * tests/test-isnan.c (test_long_double): Likewise.
22437         * tests/test-isnanl.h (main): Likewise.
22438         * tests/test-ldexpl.h (main): Likewise.
22439         * tests/test-roundl.h (main): Likewise.
22440         * tests/test-truncl.h (main): Likewise.
22441         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22442
22443 2009-02-26  Eric Blake  <ebb9@byu.net>
22444             Bruno Haible  <bruno@clisp.org>
22445
22446         Work around a *printf bug with %ls on Solaris.
22447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22448         precision is specified, sprintf stops converting the wide string
22449         argument when the number of bytes that have been produced by this
22450         conversion equals or exceeds the precision.
22451         * doc/posix-functions/fprintf.texi: Update.
22452         * doc/posix-functions/printf.texi: Update.
22453         * doc/posix-functions/snprintf.texi: Update.
22454         * doc/posix-functions/sprintf.texi: Update.
22455         * doc/posix-functions/vfprintf.texi: Update.
22456         * doc/posix-functions/vprintf.texi: Update.
22457         * doc/posix-functions/vsnprintf.texi: Update.
22458         * doc/posix-functions/vsprintf.texi: Update.
22459         * doc/glibc-functions/obstack_printf.texi: Update.
22460         * doc/glibc-functions/obstack_vprintf.texi: Update.
22461
22462 2009-02-26  Eric Blake  <ebb9@byu.net>
22463
22464         stdlib: favor compiler check of random.h
22465         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22466         to avoid an ObjC random.h installed by Swarm.
22467
22468 2009-02-26  Bruno Haible  <bruno@clisp.org>
22469
22470         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22471         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22472         Reported by Gary V. Vaughan <gary@gnu.org>.
22473
22474 2009-02-26  Bruno Haible  <bruno@clisp.org>
22475
22476         Fix *printf behaviour regarding the %ls directive.
22477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22478         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22479         NEED_PRINTF_DIRECTIVE_LS.
22480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22481         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22482         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22483         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22484         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22485         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22486         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22491         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22495         * doc/posix-functions/fprintf.texi: Update.
22496         * doc/posix-functions/printf.texi: Update.
22497         * doc/posix-functions/snprintf.texi: Update.
22498         * doc/posix-functions/sprintf.texi: Update.
22499         * doc/posix-functions/vfprintf.texi: Update.
22500         * doc/posix-functions/vprintf.texi: Update.
22501         * doc/posix-functions/vsnprintf.texi: Update.
22502         * doc/posix-functions/vsprintf.texi: Update.
22503         * doc/glibc-functions/obstack_printf.texi: Update.
22504         * doc/glibc-functions/obstack_vprintf.texi: Update.
22505         Reported by Eric Blake.
22506
22507 2009-02-25  Bruno Haible  <bruno@clisp.org>
22508
22509         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22510         with known value.
22511         Reported by Gary V. Vaughan <gary@gnu.org>.
22512
22513 2009-02-25  Bruno Haible  <bruno@clisp.org>
22514
22515         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22516         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22517         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22518         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22519         Reported by Gary V. Vaughan <gary@gnu.org>.
22520
22521 2009-02-25  Bruno Haible  <bruno@clisp.org>
22522
22523         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22524         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22525         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22526         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22527         Reported by Gary V. Vaughan <gary@gnu.org>.
22528
22529 2009-02-25  Eric Blake  <ebb9@byu.net>
22530
22531         tests: skip fseek/ftell tests if ungetc is broken
22532         * m4/ungetc.m4: New file.
22533         * modules/fseek-tests: Split test, so ungetc dependency is
22534         separate from rest of test.
22535         * modules/fseeko-tests: Likewise.
22536         * modules/ftell-tests: Likewise.
22537         * modules/ftello-tests: Likewise.
22538         * tests/test-fseek.c (main): Isolate ungetc dependency.
22539         * tests/test-fseeko.c (main): Likewise.
22540         * tests/test-ftell.c (main): Likewise.
22541         * tests/test-ftello.c (main): Likewise.
22542         * tests/test-fseek2.sh: New file.
22543         * tests/test-fseeko2.sh: Likewise.
22544         * tests/test-ftell2.sh: Likewise.
22545         * tests/test-ftello2.sh: Likewise.
22546
22547 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22548
22549         test-getaddrinfo: fix usage of skip return code 77
22550         * tests/test-gettaddrinfo.c: Return skip code 77 only
22551         for first occurance of skip (4x77 is not 77)
22552
22553 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22554
22555         strtod: avoid C99 decl-after-statement
22556         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22557
22558 2009-02-24  Eric Blake  <ebb9@byu.net>
22559
22560         strtod: detect HP-UX 11.31 bug
22561         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22562         Reported by Gary V. Vaughan.
22563
22564 2009-02-23  Bruno Haible  <bruno@clisp.org>
22565
22566         Fix invalid read past end of memory block.
22567         * lib/vasnprintf.c (DCHAR_SET): Define.
22568         (local_wcslen): Define only when needed.
22569         (local_strnlen, local_wcsnlen): New functions.
22570         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22571         directives that involve a conversion ourselves.
22572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22573         wcsnlen, mbrtowc, wcrtomb.
22574         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22575         * tests/test-vasprintf-posix.c (test_function): Likewise.
22576         * tests/test-snprintf-posix.h (test_function): Likewise.
22577         * tests/test-sprintf-posix.h (test_function): Likewise.
22578         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22579
22580 2009-02-22  Bruno Haible  <bruno@clisp.org>
22581
22582         Implement new clarified decomposition of Hangul syllables.
22583         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22584         of type LTV, return only a pairwise decomposition.
22585         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22586         Likewise.
22587         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22588         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22589         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22590
22591 2009-02-22  Bruno Haible  <bruno@clisp.org>
22592
22593         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22594         zero-length results and shrink excess allocated memory.
22595         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22596         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22597         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22598         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22599         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22600         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22601         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22602         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22603         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22604         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22605         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22606         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22607
22608 2009-02-21  Bruno Haible  <bruno@clisp.org>
22609
22610         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22611         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22612         spaces after a period. Put a space between a macro name and its
22613         argument list. Trivial rewordings.
22614         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22615         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22616         (main): Return 0 explicitly.
22617
22618 2009-02-21  Bruno Haible  <bruno@clisp.org>
22619
22620         Tests for module 'uninorm/filter'.
22621         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22622         * modules/uninorm/filter-tests: New file.
22623
22624         New module 'uninorm/filter'.
22625         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22626         uninorm_filter_flush, uninorm_filter_free): New declarations.
22627         * lib/uninorm/uninorm-filter.c: New file.
22628         * modules/uninorm/filter: New file.
22629
22630 2009-02-21  Bruno Haible  <bruno@clisp.org>
22631
22632         Tests for module 'uninorm/nfkc'.
22633         * tests/uninorm/test-nfkc.c: New file.
22634         * tests/uninorm/test-u8-nfkc.c: New file.
22635         * tests/uninorm/test-u16-nfkc.c: New file.
22636         * tests/uninorm/test-u32-nfkc.c: New file.
22637         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22638         * tests/uninorm/test-u32-nfkc-big.c: New file.
22639         * modules/uninorm/nfkc-tests: New file.
22640
22641         New module 'uninorm/nfkc'.
22642         * lib/uninorm/nfkc.c: New file.
22643         * modules/uninorm/nfkc: New file.
22644
22645         Tests for module 'uninorm/nfkd'.
22646         * tests/uninorm/test-nfkd.c: New file.
22647         * tests/uninorm/test-u8-nfkd.c: New file.
22648         * tests/uninorm/test-u16-nfkd.c: New file.
22649         * tests/uninorm/test-u32-nfkd.c: New file.
22650         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22651         * tests/uninorm/test-u32-nfkd-big.c: New file.
22652         * modules/uninorm/nfkd-tests: New file.
22653
22654         New module 'uninorm/nfkd'.
22655         * lib/uninorm/nfkd.c: New file.
22656         * modules/uninorm/nfkd: New file.
22657
22658         Tests for module 'uninorm/nfc'.
22659         * tests/uninorm/test-nfc.c: New file.
22660         * tests/uninorm/test-u8-nfc.c: New file.
22661         * tests/uninorm/test-u16-nfc.c: New file.
22662         * tests/uninorm/test-u32-nfc.c: New file.
22663         * tests/uninorm/test-u32-nfc-big.sh: New file.
22664         * tests/uninorm/test-u32-nfc-big.c: New file.
22665         * modules/uninorm/nfc-tests: New file.
22666
22667         New module 'uninorm/nfc'.
22668         * lib/uninorm/nfc.c: New file.
22669         * modules/uninorm/nfc: New file.
22670
22671         Tests for module 'uninorm/nfd'.
22672         * tests/uninorm/test-nfd.c: New file.
22673         * tests/uninorm/test-u8-nfd.c: New file.
22674         * tests/uninorm/test-u16-nfd.c: New file.
22675         * tests/uninorm/test-u32-nfd.c: New file.
22676         * tests/uninorm/test-u32-nfd-big.sh: New file.
22677         * tests/uninorm/test-u32-nfd-big.c: New file.
22678         * tests/uninorm/test-u32-normalize-big.h: New file.
22679         * tests/uninorm/test-u32-normalize-big.c: New file.
22680         * tests/uninorm/NormalizationTest.txt: New file, created from
22681         Unicode 5.1.0 NormalizationTest.txt.
22682         * modules/uninorm/nfd-tests: New file.
22683
22684         New module 'uninorm/nfd'.
22685         * lib/uninorm/nfd.c: New file.
22686         * modules/uninorm/nfd: New file.
22687
22688         New module 'uninorm/u32-normalize'.
22689         * lib/uninorm/u32-normalize.c: New file.
22690         * modules/uninorm/u32-normalize: New file.
22691
22692         New module 'uninorm/u16-normalize'.
22693         * lib/uninorm/u16-normalize.c: New file.
22694         * modules/uninorm/u16-normalize: New file.
22695
22696         New module 'uninorm/u8-normalize'.
22697         * lib/uninorm/u8-normalize.c: New file.
22698         * lib/uninorm/normalize-internal.h: New file.
22699         * lib/uninorm/u-normalize-internal.h: New file.
22700         * modules/uninorm/u8-normalize: New file.
22701
22702         New module 'uninorm/decompose-internal'.
22703         * lib/uninorm/decompose-internal.c: New file.
22704         * modules/uninorm/decompose-internal: New file.
22705
22706         Tests for module 'uninorm/composition'.
22707         * tests/uninorm/test-composition.c: New file.
22708         * modules/uninorm/composition-tests: New file.
22709
22710         New module 'uninorm/composition'.
22711         * lib/uninorm/composition.c: New file.
22712         * lib/uninorm/composition-table.gperf: New file, generated by
22713         gen-uni-tables.
22714         * modules/uninorm/composition: New file.
22715
22716         Tests for module 'uninorm/compat-decomposition'.
22717         * tests/uninorm/test-compat-decomposition.c: New file.
22718         * modules/uninorm/compat-decomposition-tests: New file.
22719
22720         New module 'uninorm/compat-decomposition'.
22721         * lib/uninorm/decompose-internal.h: New file.
22722         * lib/uninorm/compat-decomposition.c: New file.
22723         * modules/uninorm/compat-decomposition: New file.
22724
22725         Tests for module 'uninorm/canonical-decomposition'.
22726         * tests/uninorm/test-canonical-decomposition.c: New file.
22727         * modules/uninorm/canonical-decomposition-tests: New file.
22728
22729         New module 'uninorm/canonical-decomposition'.
22730         * lib/uninorm/canonical-decomposition.c: New file.
22731         * modules/uninorm/canonical-decomposition: New file.
22732
22733         Tests for module 'uninorm/decomposition'.
22734         * tests/uninorm/test-decomposition.c: New file.
22735         * modules/uninorm/decomposition-tests: New file.
22736
22737         New module 'uninorm/decomposition'.
22738         * lib/uninorm/decomposition.c: New file.
22739         * modules/uninorm/decomposition: New file.
22740
22741         New module 'uninorm/decomposition-table'.
22742         * lib/uninorm/decomposition-table.h: New file.
22743         * lib/uninorm/decomposition-table.c: New file.
22744         * lib/uninorm/decomposition-table1.h: New file, generated by
22745         gen-uni-tables.
22746         * lib/uninorm/decomposition-table2.h: New file, generated by
22747         gen-uni-tables.
22748         * modules/uninorm/decomposition-table: New file.
22749
22750         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22751         (UC_DECOMP_*): New enumeration items.
22752         (get_decomposition): New function.
22753         (struct decomp_table): New type.
22754         (output_decomposition, output_decomposition_tables): New functions.
22755         (unicode_composition_exclusions): New variable.
22756         (fill_composition_exclusions, debug_output_composition_tables): New
22757         functions.
22758         (main): Accept one more argument. Invoke fill_composition_exclusions.
22759         Output decomposition and composition tables.
22760
22761         New module 'uninorm/base'.
22762         * lib/uninorm.h: New file.
22763         * lib/unictype.h: Update comment.
22764         * modules/uninorm/base: New file.
22765
22766 2009-02-21  David Lutterkort  <lutter@redhat.com>
22767
22768         Tests for module 'safe-alloc'.
22769         * tests/test-safe-alloc.c: New file.
22770         * modules/safe-alloc-tests: New file.
22771
22772         New module 'safe-alloc'.
22773         * lib/safe-alloc.h: New file.
22774         * lib/safe-alloc.c: New file.
22775         * m4/safe-alloc.m4: New file.
22776         * modules/safe-alloc: New file.
22777         * doc/safe-alloc.texi: New file.
22778         * doc/gnulib.texi: Include it.
22779         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22780         safe-alloc.
22781
22782 2009-02-18  Bruno Haible  <bruno@clisp.org>
22783
22784         Fix link error on non-glibc systems.
22785         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22786         variable.
22787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22788
22789 2009-02-18  Jim Meyering  <meyering@redhat.com>
22790
22791         fts: avoid used-uninitialized error due to recent change
22792         * lib/fts.c (fts_read): Guard uses of the new member,
22793         parent->fts_n_dirs_remaining, since it's not relevant for
22794         the parent of a directory specified on the command-line.
22795
22796 2009-02-17  James Youngman  <jay@gnu.org>
22797             Bruno Haible  <bruno@clisp.org>
22798
22799         * m4/include_next.m4: Reformulate comment.
22800
22801 2009-02-16  Jim Meyering  <meyering@redhat.com>
22802
22803         fts: add #if guards so that the fts_lgpl module still builds
22804         * lib/fts.c: Guard just-added hash-table-using parts with
22805         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22806         Reported by Simon Josefsson.
22807
22808 2009-02-15  Bruno Haible  <bruno@clisp.org>
22809
22810         * modules/array-mergesort-tests: New file.
22811         * tests/test-array-mergesort.c: New file.
22812
22813         New module 'array-mergesort'.
22814         * modules/array-mergesort: New file.
22815         * lib/array-mergesort.h: New file.
22816
22817 2009-02-15  Bruno Haible  <bruno@clisp.org>
22818
22819         Fix 2009-02-07 commit.
22820         * lib/gen-uni-tables.c (output_predicate, output_category,
22821         output_combclass, output_bidi_category, output_decimal_digit,
22822         output_digit, output_numeric, output_mirror, output_scripts,
22823         output_ident_category, output_simple_mapping): Fix format directives.
22824         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22825
22826 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22827
22828         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22829         fixes are available from IBM.
22830
22831 2009-02-13  Jim Meyering  <meyering@redhat.com>
22832
22833         fts: arrange not to stat non-directories in more cases
22834         This makes GNU find (when it doesn't need to stat each file)
22835         *much* more efficient at traversing reiserfs file systems.
22836         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22837         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22838         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22839         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22840         (leaf_optimization_applies): New function.
22841         (LCO_hash, LCO_compare): New helper functions.
22842         (link_count_optimize_ok): New function.
22843         (fts_stat): Initialize new member (if dir).
22844         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22845         we've just stat'ed a directory.  Skip the stat call when possible.
22846         ---
22847         Note this AFS-related exchange:
22848         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22849         and note find's pioctl call in find/fstype.c.
22850         But that is necessary only if you want to enable the
22851         optimization for AFS, and for now, I don't.
22852
22853         fts: move a function definition "up" (no semantic change)
22854         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22855         "up" to precede upcoming use of a related function.
22856
22857 2009-02-11  Jim Meyering  <meyering@redhat.com>
22858
22859         fts: correct internal computation of nlinks (optimization-related)
22860         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22861         whether the current entry is a directory, so don't test it.
22862
22863 2009-02-10  Bruno Haible  <bruno@clisp.org>
22864
22865         Tests for module 'uniwbrk/ulc-wordbreaks'.
22866         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22867         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22868         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22869
22870         Tests for module 'uniwbrk/u32-wordbreaks'.
22871         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22872         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22873
22874         Tests for module 'uniwbrk/u16-wordbreaks'.
22875         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22876         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22877
22878         Tests for module 'uniwbrk/u8-wordbreaks'.
22879         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22880         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22881
22882 2009-02-10  Bruno Haible  <bruno@clisp.org>
22883
22884         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22885         property.
22886         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22887         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22888         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22889
22890 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22891
22892         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22893         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22894
22895 2009-02-10  Bruno Haible  <bruno@clisp.org>
22896
22897         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22898         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22899         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22900         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22901         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22902         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22903
22904 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22905
22906         * lib/sockets.h (gl_fd_to_handle): New function.
22907
22908         * tests/test-sockets.c: Call gl_fd_to_handle.
22909
22910 2009-02-09  Bruno Haible  <bruno@clisp.org>
22911
22912         * doc/havelib.texi: Document the conventions on bi-arch systems.
22913
22914 2009-02-08  Bruno Haible  <bruno@clisp.org>
22915
22916         Document the AC_LIB_LINKFLAGS macro.
22917         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22918         * doc/gnulib.texi: Include it.
22919
22920 2009-02-08  Bruno Haible  <bruno@clisp.org>
22921
22922         Fix wrong order of sections, compared to TOC.
22923         * doc/gnulib.texi: Include relocatable-maint.texi after the
22924         "Regular expressions" node, not before.
22925
22926 2009-02-08  Bruno Haible  <bruno@clisp.org>
22927
22928         Tests for module 'unicase/totitle'.
22929         * modules/unicase/totitle-tests: New file.
22930
22931         Tests for module 'unicase/tolower'.
22932         * modules/unicase/tolower-tests: New file.
22933
22934         Tests for module 'unicase/toupper'.
22935         * modules/unicase/toupper-tests: New file.
22936         * tests/unicase/test-mapping-part1.h: New file.
22937         * tests/unicase/test-mapping-part2.h: New file.
22938
22939         New module 'unicase/totitle'.
22940         * modules/unicase/totitle: New file.
22941         * lib/unicase/totitle.c: New file.
22942
22943         New module 'unicase/tolower'.
22944         * modules/unicase/tolower: New file.
22945         * lib/unicase/tolower.c: New file.
22946
22947         New module 'unicase/toupper'.
22948         * modules/unicase/toupper: New file.
22949         * lib/unicase/toupper.c: New file.
22950         * lib/unicase/simple-mapping.h: New file.
22951
22952         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22953         (mapping_table): New structure.
22954         (output_simple_mapping): New function.
22955         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22956         * modules/gen-uni-tables (Description): Update.
22957         * lib/unicase/toupper.h: New file, automatically generated by
22958         gen-uni-tables.
22959         * lib/unicase/tolower.h: New file, automatically generated by
22960         gen-uni-tables.
22961         * lib/unicase/totitle.h: New file, automatically generated by
22962         gen-uni-tables.
22963         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22964         gen-uni-tables.
22965         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22966         gen-uni-tables.
22967         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22968         gen-uni-tables.
22969
22970         New module 'unicase/base'.
22971         * modules/unicase/base: New file.
22972         * lib/unicase.h: New file.
22973
22974 2009-02-08  Bruno Haible  <bruno@clisp.org>
22975
22976         New module 'uniwbrk/ulc-wordbreaks'.
22977         * modules/uniwbrk/ulc-wordbreaks: New file.
22978         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22979
22980         New module 'uniwbrk/u32-wordbreaks'.
22981         * modules/uniwbrk/u32-wordbreaks: New file.
22982         * lib/uniwbrk/u32-wordbreaks.c: New file.
22983
22984         New module 'uniwbrk/u16-wordbreaks'.
22985         * modules/uniwbrk/u16-wordbreaks: New file.
22986         * lib/uniwbrk/u16-wordbreaks.c: New file.
22987
22988         New module 'uniwbrk/u8-wordbreaks'.
22989         * modules/uniwbrk/u8-wordbreaks: New file.
22990         * lib/uniwbrk/u8-wordbreaks.c: New file.
22991         * lib/uniwbrk/u-wordbreaks.h: New file.
22992
22993         New module 'uniwbrk/table'.
22994         * modules/uniwbrk/table: New file.
22995         * lib/uniwbrk/wbrktable.h: New file.
22996         * lib/uniwbrk/wbrktable.c: New file.
22997
22998         New module 'uniwbrk/wordbreak-property'.
22999         * modules/uniwbrk/wordbreak-property: New file.
23000         * lib/uniwbrk/wordbreak-property.c: New file.
23001
23002         * lib/gen-uni-tables.c (WBP_*): New enum items.
23003         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23004         (unicode_org_wbp): New variable.
23005         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23006         New functions.
23007         (wbp_table): New structure.
23008         (output_wbp, output_wbrk_tables): New functions.
23009         (main): Accept additional argument. Invoke fill_org_wbp,
23010         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23011         output_wbrk_tables.
23012         * modules/gen-uni-tables (Description): Update.
23013         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23014         gen-uni-tables.
23015
23016         New module 'uniwbrk/base'.
23017         * modules/uniwbrk/base: New file.
23018         * lib/uniwbrk.h: New file.
23019
23020 2009-02-08  Bruno Haible  <bruno@clisp.org>
23021
23022         Update to Unicode 5.1.0.
23023         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23024         U+2185..U+2188.
23025         (is_property_default_ignorable_code_point): Don't include characters
23026         of category Cc or Cs and not-a-characters.
23027         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23028         U+0D79, U+109E, U+109F, U+A60C.
23029         * lib/unictype/bidi_of.h: Regenerated.
23030         * lib/unictype/blocks.h: Regenerated.
23031         * lib/unictype/categ_C.h: Regenerated.
23032         * lib/unictype/categ_Cf.h: Regenerated.
23033         * lib/unictype/categ_Cn.h: Regenerated.
23034         * lib/unictype/categ_L.h: Regenerated.
23035         * lib/unictype/categ_Ll.h: Regenerated.
23036         * lib/unictype/categ_Lm.h: Regenerated.
23037         * lib/unictype/categ_Lo.h: Regenerated.
23038         * lib/unictype/categ_Lu.h: Regenerated.
23039         * lib/unictype/categ_M.h: Regenerated.
23040         * lib/unictype/categ_Mc.h: Regenerated.
23041         * lib/unictype/categ_Me.h: Regenerated.
23042         * lib/unictype/categ_Mn.h: Regenerated.
23043         * lib/unictype/categ_N.h: Regenerated.
23044         * lib/unictype/categ_Nd.h: Regenerated.
23045         * lib/unictype/categ_Nl.h: Regenerated.
23046         * lib/unictype/categ_No.h: Regenerated.
23047         * lib/unictype/categ_P.h: Regenerated.
23048         * lib/unictype/categ_Pd.h: Regenerated.
23049         * lib/unictype/categ_Pe.h: Regenerated.
23050         * lib/unictype/categ_Pf.h: Regenerated.
23051         * lib/unictype/categ_Pi.h: Regenerated.
23052         * lib/unictype/categ_Po.h: Regenerated.
23053         * lib/unictype/categ_Ps.h: Regenerated.
23054         * lib/unictype/categ_S.h: Regenerated.
23055         * lib/unictype/categ_Sk.h: Regenerated.
23056         * lib/unictype/categ_Sm.h: Regenerated.
23057         * lib/unictype/categ_So.h: Regenerated.
23058         * lib/unictype/categ_of.h: Regenerated.
23059         * lib/unictype/combining.h: Regenerated.
23060         * lib/unictype/ctype_alnum.h: Regenerated.
23061         * lib/unictype/ctype_alpha.h: Regenerated.
23062         * lib/unictype/ctype_graph.h: Regenerated.
23063         * lib/unictype/ctype_lower.h: Regenerated.
23064         * lib/unictype/ctype_print.h: Regenerated.
23065         * lib/unictype/ctype_punct.h: Regenerated.
23066         * lib/unictype/ctype_upper.h: Regenerated.
23067         * lib/unictype/decdigit.h: Regenerated.
23068         * lib/unictype/digit.h: Regenerated.
23069         * lib/unictype/mirror.h: Regenerated.
23070         * lib/unictype/numeric.h: Regenerated.
23071         * lib/unictype/pr_alphabetic.h: Regenerated.
23072         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23073         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23074         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23075         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23076         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23077         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23078         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23079         * lib/unictype/pr_combining.h: Regenerated.
23080         * lib/unictype/pr_dash.h: Regenerated.
23081         * lib/unictype/pr_decimal_digit.h: Regenerated.
23082         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23083         * lib/unictype/pr_deprecated.h: Regenerated.
23084         * lib/unictype/pr_diacritic.h: Regenerated.
23085         * lib/unictype/pr_extender.h: Regenerated.
23086         * lib/unictype/pr_format_control.h: Regenerated.
23087         * lib/unictype/pr_grapheme_base.h: Regenerated.
23088         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23089         * lib/unictype/pr_grapheme_link.h: Regenerated.
23090         * lib/unictype/pr_id_continue.h: Regenerated.
23091         * lib/unictype/pr_id_start.h: Regenerated.
23092         * lib/unictype/pr_ideographic.h: Regenerated.
23093         * lib/unictype/pr_ignorable_control.h: Regenerated.
23094         * lib/unictype/pr_lowercase.h: Regenerated.
23095         * lib/unictype/pr_math.h: Regenerated.
23096         * lib/unictype/pr_numeric.h: Regenerated.
23097         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23098         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23099         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23100         * lib/unictype/pr_other_id_continue.h: Regenerated.
23101         * lib/unictype/pr_other_lowercase.h: Regenerated.
23102         * lib/unictype/pr_other_math.h: Regenerated.
23103         * lib/unictype/pr_punctuation.h: Regenerated.
23104         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23105         * lib/unictype/pr_soft_dotted.h: Regenerated.
23106         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23107         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23108         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23109         * lib/unictype/pr_uppercase.h: Regenerated.
23110         * lib/unictype/pr_xid_continue.h: Regenerated.
23111         * lib/unictype/pr_xid_start.h: Regenerated.
23112         * lib/unictype/pr_zero_width.h: Regenerated.
23113         * lib/unictype/scripts.h: Regenerated.
23114         * lib/unictype/scripts_byname.gperf: Regenerated.
23115         * lib/unictype/sy_java_ident.h: Regenerated.
23116         * lib/unilbrk/lbrkprop1.h: Regenerated.
23117         * lib/unilbrk/lbrkprop2.h: Regenerated.
23118         * tests/unictype/test-categ_C.c: Regenerated.
23119         * tests/unictype/test-categ_Cf.c: Regenerated.
23120         * tests/unictype/test-categ_Cn.c: Regenerated.
23121         * tests/unictype/test-categ_L.c: Regenerated.
23122         * tests/unictype/test-categ_Ll.c: Regenerated.
23123         * tests/unictype/test-categ_Lm.c: Regenerated.
23124         * tests/unictype/test-categ_Lo.c: Regenerated.
23125         * tests/unictype/test-categ_Lu.c: Regenerated.
23126         * tests/unictype/test-categ_M.c: Regenerated.
23127         * tests/unictype/test-categ_Mc.c: Regenerated.
23128         * tests/unictype/test-categ_Me.c: Regenerated.
23129         * tests/unictype/test-categ_Mn.c: Regenerated.
23130         * tests/unictype/test-categ_N.c: Regenerated.
23131         * tests/unictype/test-categ_Nd.c: Regenerated.
23132         * tests/unictype/test-categ_Nl.c: Regenerated.
23133         * tests/unictype/test-categ_No.c: Regenerated.
23134         * tests/unictype/test-categ_P.c: Regenerated.
23135         * tests/unictype/test-categ_Pd.c: Regenerated.
23136         * tests/unictype/test-categ_Pe.c: Regenerated.
23137         * tests/unictype/test-categ_Pf.c: Regenerated.
23138         * tests/unictype/test-categ_Pi.c: Regenerated.
23139         * tests/unictype/test-categ_Po.c: Regenerated.
23140         * tests/unictype/test-categ_Ps.c: Regenerated.
23141         * tests/unictype/test-categ_S.c: Regenerated.
23142         * tests/unictype/test-categ_Sk.c: Regenerated.
23143         * tests/unictype/test-categ_Sm.c: Regenerated.
23144         * tests/unictype/test-categ_So.c: Regenerated.
23145         * tests/unictype/test-ctype_alnum.c: Regenerated.
23146         * tests/unictype/test-ctype_alpha.c: Regenerated.
23147         * tests/unictype/test-ctype_graph.c: Regenerated.
23148         * tests/unictype/test-ctype_lower.c: Regenerated.
23149         * tests/unictype/test-ctype_print.c: Regenerated.
23150         * tests/unictype/test-ctype_punct.c: Regenerated.
23151         * tests/unictype/test-ctype_upper.c: Regenerated.
23152         * tests/unictype/test-decdigit.h: Regenerated.
23153         * tests/unictype/test-digit.h: Regenerated.
23154         * tests/unictype/test-numeric.h: Regenerated.
23155         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23156         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23157         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23158         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23160         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23161         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23162         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23163         * tests/unictype/test-pr_combining.c: Regenerated.
23164         * tests/unictype/test-pr_dash.c: Regenerated.
23165         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23166         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23167         * tests/unictype/test-pr_deprecated.c: Regenerated.
23168         * tests/unictype/test-pr_diacritic.c: Regenerated.
23169         * tests/unictype/test-pr_extender.c: Regenerated.
23170         * tests/unictype/test-pr_format_control.c: Regenerated.
23171         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23172         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23173         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23174         * tests/unictype/test-pr_id_continue.c: Regenerated.
23175         * tests/unictype/test-pr_id_start.c: Regenerated.
23176         * tests/unictype/test-pr_ideographic.c: Regenerated.
23177         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23178         * tests/unictype/test-pr_lowercase.c: Regenerated.
23179         * tests/unictype/test-pr_math.c: Regenerated.
23180         * tests/unictype/test-pr_numeric.c: Regenerated.
23181         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23182         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23183         Regenerated.
23184         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23185         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23186         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23187         * tests/unictype/test-pr_other_math.c: Regenerated.
23188         * tests/unictype/test-pr_punctuation.c: Regenerated.
23189         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23190         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23191         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23192         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23193         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23194         * tests/unictype/test-pr_uppercase.c: Regenerated.
23195         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23196         * tests/unictype/test-pr_xid_start.c: Regenerated.
23197         * tests/unictype/test-pr_zero_width.c: Regenerated.
23198
23199         Update to Unicode 5.1.0.
23200         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23201         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23202         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23203         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23204         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23205         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23206         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23207         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23208         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23209         (nonspacing_table_ind): Update.
23210         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23211
23212         Update to Unicode 5.1.0.
23213         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23214         code transform.
23215         * lib/uniname/uniname.c (unicode_character_name,
23216         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23217         * lib/uniname/uninames.h: Regenerated.
23218         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23219
23220 2009-02-07  Bruno Haible  <bruno@clisp.org>
23221
23222         Merge gen-ctype and gen-lbrk into a single program.
23223         * lib/gen-uni-tables.c: New file, incorporating
23224         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23225         Add directory prefixes to the names of the generated files.
23226         * lib/unictype/gen-ctype.c: Remove file.
23227         * lib/unilbrk/gen-lbrk.c: Remove file.
23228         * modules/gen-uni-tables: New file.
23229         * modules/unictype/gen-ctype: Remove file.
23230         * modules/unilbrk/gen-lbrk: Remove file.
23231
23232 2009-02-07  Bruno Haible  <bruno@clisp.org>
23233
23234         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23235
23236         New module 'unistr/u32-strcoll'.
23237         * modules/unistr/u32-strcoll: New file.
23238         * lib/unistr/u32-strcoll.c: New file.
23239
23240         New module 'unistr/u16-strcoll'.
23241         * modules/unistr/u16-strcoll: New file.
23242         * lib/unistr/u16-strcoll.c: New file.
23243
23244         New module 'unistr/u8-strcoll'.
23245         * modules/unistr/u8-strcoll: New file.
23246         * lib/unistr/u8-strcoll.c: New file.
23247         * lib/unistr/u-strcoll.h: New file.
23248
23249 2009-02-07  Bruno Haible  <bruno@clisp.org>
23250
23251         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23252         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23253         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23254         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23255         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23256         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23257
23258 2009-02-07  Bruno Haible  <bruno@clisp.org>
23259
23260         Make 64-bit clean.
23261         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23262         output_combclass, output_bidi_category, output_decimal_digit,
23263         output_digit, output_numeric, output_mirror, output_scripts,
23264         output_ident_category): Use proper width specifier in format strings.
23265
23266 2009-02-07  Bruno Haible  <bruno@clisp.org>
23267
23268         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23269         failure behaviour.
23270
23271 2009-02-07  Jim Meyering  <meyering@redhat.com>
23272
23273         regex: avoid compilation failure with upcoming gcc-4.4
23274         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23275         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23276         "... error: integer overflow in preprocessor expression".
23277
23278 2009-02-05  Ben Pfaff  <blp@gnu.org>
23279
23280         Fix link errors on Windows when close module is used.
23281         * modules/close: Add $(LIB_CLOSE) to Link section.
23282         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23283         $(LIB_CLOSE) on Windows.
23284
23285 2009-02-05  Jim Meyering  <meyering@redhat.com>
23286
23287         still avoid unused-parameter warnings, but do it cleanly
23288         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23289         (get_fs_usage): Cast to void instead.
23290         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23291         (dev_from_mount_options, read_file_system_list): Cast to void.
23292         Prompted by Bruno Haible.
23293
23294 2009-02-04  Jim Meyering  <meyering@redhat.com>
23295
23296         fsusage.c: correct copyright year
23297         * lib/fsusage.c: Reflect year in which the change is pushed into
23298
23299         avoid misc. warnings
23300         * lib/fsusage.c (UNUSED_PARAM): Define.
23301         (get_fs_usage): Mark parameter "disk" as unused.
23302         * lib/getugroups.c (getgrent): Use "void" in prototype.
23303         * lib/mountlist.c: Mark unused parameters.
23304         (read_file_system_list): Declare a local with "const".
23305         * lib/nanosleep.c (getnow): Declare static.
23306         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23307
23308         dirfd: set errno upon failure
23309         * lib/dirfd.c: Include <errno.h>.
23310         Set errno to ENOTSUP when returning -1.
23311         * modules/dirfd (Depends-on): Add errno.
23312         Suggested by John Kodis <kodis@comcast.net>.
23313
23314 2009-02-01  Bruno Haible  <bruno@clisp.org>
23315
23316         Don't assume sizeof (long) >= sizeof (void *).
23317         * lib/memcmp.c: Include stdint.h.
23318         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23319         srcp2 to 'const byte *'.
23320         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23321         types to uintptr_t.
23322         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23323         * modules/memcmp (Depends-on): Add stdint.
23324         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23325
23326 2009-01-30  Eric Blake  <ebb9@byu.net>
23327
23328         fix more require-before-expand issues
23329         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23330         expand, AC_PROG_AWK.
23331         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23332
23333 2009-01-28  Eric Blake  <ebb9@byu.net>
23334
23335         version-etc: use consistent URL formatting
23336         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23337         Improve formatting.  Use fputs for string without %.
23338
23339 2009-01-28  Jim Meyering  <meyering@redhat.com>
23340
23341         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23342         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23343         "underquoted definition of NAME" from autoconf-2.59.
23344
23345 2009-01-28  Bruno Haible  <bruno@clisp.org>
23346
23347         * doc/gnulib.texi: Add "Obsolete modules" to index.
23348
23349 2009-01-28  Jim Meyering  <meyering@redhat.com>
23350
23351         useless-if-before-free: recognize more variants
23352         * build-aux/useless-if-before-free: Also recognize e.g.,
23353         if (NULL != p) free (p);
23354
23355 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23356
23357         test-getaddrinfo: skip (don't fail) this test when there's no network
23358         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23359         on the presumption that it means you lack network access.
23360
23361 2009-01-26  Jim Meyering  <meyering@redhat.com>
23362
23363         fflush: avoid warnings on modern systems
23364         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23365         pos and result, into scopes where they're used.
23366
23367 2009-01-26  Eric Blake  <ebb9@byu.net>
23368
23369         Silence warning reintroduced by recent extensions patch.
23370         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23371         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23372         autoconf.
23373
23374         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23375         * m4/00gnulib.m4: New file.
23376         * gnulib-tool (func_get_filelist): Always use it.
23377         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23378         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23379
23380 2009-01-25  Bruno Haible  <bruno@clisp.org>
23381
23382         Make test-quotearg work on MacOS X and AIX.
23383         * tests/test-quotearg.sh: New file.
23384         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23385         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23386         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23387         include <libintl.h>.
23388         (fake_locale): Remove variable.
23389         (gettext, dgettext, dcgettext): Remove functions.
23390         (main): Instead of setting a fake locale, set a real locale. Call
23391         textdomain and bindtextdomain.
23392         * modules/quotearg-tests (Files): Add the new files.
23393         (Depends-on): Add gettext, setenv, unsetenv.
23394         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23395         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23396         Augment TESTS_ENVIRONMENT.
23397
23398 2009-01-25  Bruno Haible  <bruno@clisp.org>
23399
23400         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23401         fr_FR.ISO8859-1 locale on MacOS X.
23402         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23403         ja_JP.eucJP locale on MacOS X.
23404         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23405         zh_CN.GB18030 locale on MacOS X.
23406
23407 2009-01-25  Bruno Haible  <bruno@clisp.org>
23408
23409         Avoid link errors on MacOS X 10.3.
23410         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23411         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23412
23413 2009-01-25  Bruno Haible  <bruno@clisp.org>
23414
23415         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23416         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23417         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23418         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23419         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23420         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23421         posix_spawnattr_init, posix_spawnattr_setsigmask,
23422         posix_spawnattr_setflags, posix_spawnattr_destroy.
23423
23424         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23425         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23426         * modules/execute (Files): Remove m4/posix_spawn.m4.
23427         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23428         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23429         posix_spawnattr_init, posix_spawnattr_setsigmask,
23430         posix_spawnattr_setflags, posix_spawnattr_destroy.
23431
23432 2009-01-25  Bruno Haible  <bruno@clisp.org>
23433
23434         * lib/glthread/threadlib.c: Include <stdlib.h>.
23435
23436 2009-01-25  Bruno Haible  <bruno@clisp.org>
23437
23438         * lib/glthread/threadlib.c (dummy): New declaration.
23439
23440 2009-01-25  Bruno Haible  <bruno@clisp.org>
23441
23442         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23443         multibyte characters also for the GB18030 encoding. Don't crash when
23444         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23445
23446 2009-01-25  Bruno Haible  <bruno@clisp.org>
23447
23448         Avoid redefining 'struct random_data' on OSF/1 5.1.
23449         * lib/stdlib.in.h: Include <random.h> if it exists.
23450         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23451         HAVE_RANDOM_H. Include <random.h> when testing whether
23452         'struct random_data' exists.
23453         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23454
23455 2009-01-25  Bruno Haible  <bruno@clisp.org>
23456
23457         Don't install charset.alias on MacOS X >= 10.3.
23458         * lib/localcharset.c (DARWIN7): New macro.
23459         (get_charset_aliases): Hardcode the result for Darwin7.
23460         * modules/localcharset (install-exec-local): Don't install
23461         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23462
23463 2009-01-25  Bruno Haible  <bruno@clisp.org>
23464
23465         Don't install charset.alias on mingw and Cygwin.
23466         * modules/localcharset (install-exec-local): Don't install
23467         charset.alias on mingw and Cygwin, if the file does not yet exist.
23468         The result for these platforms is hardcoded in localcharset.c.
23469
23470 2009-01-25  Bruno Haible  <bruno@clisp.org>
23471
23472         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23474         before requiring AC_USE_SYSTEM_EXTENSIONS.
23475
23476 2009-01-25  Jim Meyering  <meyering@redhat.com>
23477
23478         c-strtod: avoid warnings
23479         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23480         "assignment discards qualifiers from pointer target type" warnings.
23481
23482 2009-01-24  Bruno Haible  <bruno@clisp.org>
23483
23484         Add support for non-UTF-8 locales on MacOS X.
23485         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23486         canonical encodings. For Darwin 7 and newer, don't map traditional
23487         encodings to UTF-8.
23488         Reported by Vincent Lefevre <vincent@vinc17.org>
23489         at <http://savannah.gnu.org/bugs/?25235>.
23490
23491 2009-01-24  Bruno Haible  <bruno@clisp.org>
23492
23493         * doc/gnulib.texi (Obsolete modules): New section.
23494         Reported by Mike Frysinger <vapier@gentoo.org>.
23495
23496 2009-01-24  Bruno Haible  <bruno@clisp.org>
23497
23498         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23499         (%.dvi): New rule.
23500
23501 2009-01-24  Bruno Haible  <bruno@clisp.org>
23502
23503         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23504         Reported by Eric Blake.
23505
23506 2009-01-24  Bruno Haible  <bruno@clisp.org>
23507
23508         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23509         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23510         Reported by Gary V. Vaughan <gary@gnu.org>.
23511
23512 2009-01-24  Bruno Haible  <bruno@clisp.org>
23513
23514         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23515
23516 2009-01-23  Bruno Haible  <bruno@clisp.org>
23517
23518         Make c-strtod, c-strtold usable in libraries.
23519         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23520         (C_STRTOD): Call strdup instead of xstrdup.
23521         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23522         * modules/c-strtold (Depends-on): Likewise.
23523         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23524         * NEWS: Mention the change.
23525         Reported by Michael Gold <mgold@ncf.ca>.
23526
23527 2009-01-23  Jim Meyering  <meyering@redhat.com>
23528
23529         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23530         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23531         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23532
23533 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23534
23535         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23536         GNU CoreUtils.
23537         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23538         * modules/version-etc (Description): Update.
23539
23540 2009-01-22  Bruno Haible  <bruno@clisp.org>
23541
23542         Cache the C locale object.
23543         * lib/c-strtod.c (c_locale_cache): New variable.
23544         (c_locale): New function.
23545         (C_STRTOD): Use it, and don't call freelocale.
23546         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23547         Suggested by Paolo Bonzini.
23548
23549 2009-01-21  Bruno Haible  <bruno@clisp.org>
23550
23551         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23552         conditions other than overflow.
23553
23554 2009-01-21  Bruno Haible  <bruno@clisp.org>
23555
23556         * lib/c-strtod.c: Include errno.h.
23557         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23558         value from STRTOD_L and STRTOD.
23559
23560 2009-01-21  Bruno Haible  <bruno@clisp.org>
23561         and Jim Meyering  <meyering@redhat.com>
23562
23563         nanosleep: skip configure test (fail it) for apple universal builds
23564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23565         universal builds, assume that nanosleep does not work.
23566         * modules/nanosleep (Depends-on): Add multiarch.
23567
23568         mktime: skip configure test (fail it) for apple universal builds
23569         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23570         universal builds, assume that mktime does not work.
23571         * modules/mktime (Depends-on): Add multiarch.
23572
23573 2009-01-21  Eric Blake  <ebb9@byu.net>
23574
23575         multiarch: avoid expand-before-require warning
23576         * modules/multiarch (configure.ac): Require, rather than expand,
23577         gl_MULTIARCH.
23578         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23579         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23580         enforce that all clients require it.  Partial reversion of
23581         2008-12-29 patch.
23582
23583         error: avoid expand-before-require warning
23584         * modules/errno (configure.ac): Require, rather than expand,
23585         gl_HEADER_ERRNO_H.
23586         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23587         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23588         enforce that all clients require it.
23589
23590         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23591         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23592         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23593         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23594
23595 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23596
23597         Revert:
23598         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23599
23600         regex: do not depend on obsolete modules.
23601         * modules/regex: Remove memcmp and memmove.
23602
23603 2009-01-20  Bruno Haible  <bruno@clisp.org>
23604
23605         Make the 'link' module link on Windows NT 4.
23606         * lib/link.c (_WIN32_WINNT): Don't define.
23607         (CreateHardLinkFuncType): New type.
23608         (CreateHardLinkFunc, initialized): New variables.
23609         (initialize): New function.
23610         (link): Invoke CreateHardLink indirectly through the function pointer.
23611
23612 2009-01-20  Bruno Haible  <bruno@clisp.org>
23613
23614         Fix compilation failure on mingw.
23615         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23616
23617 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23618
23619         * doc/c-strtod.texi: Mention a couple of restrictions.
23620
23621 2009-01-20  Jim Meyering  <meyering@redhat.com>
23622
23623         gettimeofday: move more declarations out of functions
23624         * lib/gettimeofday.c: Move extern declarations of tzset and
23625         gmtime out of containing functions.  Prompted by Bruno Haible.
23626
23627 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23628
23629         regex: do not depend on obsolete modules.
23630         * modules/regex: Remove memcmp and memmove.
23631
23632 2009-01-19  Bruno Haible  <bruno@clisp.org>
23633
23634         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23635         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23636         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23637         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23638         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23639
23640 2009-01-19  Bruno Haible  <bruno@clisp.org>
23641
23642         * tests/test-link.c: Include <errno.h>.
23643         (main): Exit with code 77 when a hard link cannot be created due to
23644         the file system.
23645         * tests/test-link.sh: Skip test when a hard link cannot be created due
23646         to the file system.
23647         Suggested by Eric Blake.
23648
23649 2009-01-19  Martin Lambers  <marlam@marlam.de>
23650
23651         * modules/link-tests: New file.
23652         * tests/test-link.sh: New file.
23653         * tests/test-link.c: New file.
23654
23655 2009-01-19  Eric Blake  <ebb9@byu.net>
23656
23657         doc: mention another function added in cygwin 1.7.0
23658         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23659         Another new function in cygwin 1.7.
23660
23661 2009-01-19  Bruno Haible  <bruno@clisp.org>
23662
23663         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23664         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23665         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23666         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23668         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23669         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23670         * m4/md4.m4 (gl_MD4): Likewise.
23671         * m4/md5.m4 (gl_MD5): Likewise.
23672         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23673         * m4/sha1.m4 (gl_SHA1): Likewise.
23674         * m4/sha256.m4 (gl_SHA256): Likewise.
23675         * m4/sha512.m4 (gl_SHA512): Likewise.
23676
23677 2009-01-19  Bruno Haible  <bruno@clisp.org>
23678
23679         * modules/uniname/uniname-tests (Depends-on): Add progname.
23680         * tests/uniname/test-uninames.c: Include progname.h.
23681         (main): Call set_program_name.
23682
23683         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23684         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23685         (main): Call set_program_name.
23686
23687         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23688         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23689         (main): Call set_program_name.
23690
23691         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23692         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23693         (main): Call set_program_name.
23694
23695         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23696         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23697         (main): Call set_program_name.
23698
23699         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23700         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23701         (main): Call set_program_name.
23702
23703         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23704         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23705         (main): Call set_program_name.
23706
23707         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23708         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23709         (main): Call set_program_name.
23710
23711         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23712         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23713         (main): Call set_program_name.
23714
23715 2009-01-19  Eric Blake  <ebb9@byu.net>
23716
23717         test-unistd: test previous patch
23718         * tests/test-unistd.c: Test *_FILENO macros.
23719
23720         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23721         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23722         Guarantee a definition.
23723         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23724         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23725         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23726         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23727         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23728         Likewise.
23729         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23730         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23731         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23732         Likewise.
23733         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23734         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23735         (STDERR_FILENO): Likewise.
23736         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23737         (STDERR_FILENO): Likewise.
23738         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23739         (STDERR_FILENO): Likewise.
23740         Reported by Elbert Pol.
23741
23742 2009-01-19  Eric Blake  <ebb9@byu.net>
23743
23744         doc: mention more functions added in cygwin 1.7.0
23745         * doc/posix-functions/abort.texi (abort): Update wording related
23746         to cygwin.
23747         * doc/posix-functions/daylight.texi (daylight): Likewise.
23748         * doc/posix-functions/optarg.texi (optarg): Likewise.
23749         * doc/posix-functions/optarg.texi (opterr): Likewise.
23750         * doc/posix-functions/optarg.texi (optind): Likewise.
23751         * doc/posix-functions/optarg.texi (optopt): Likewise.
23752         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23753         worked in 1.5.x, and was withdrawn in 1.7.
23754         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23755         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23756         cygwin versions.
23757         * doc/posix-functions/perror.texi (perror): Likewise.
23758         * doc/posix-functions/printf.texi (printf): Likewise.
23759         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23760         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23761         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23762         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23763         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23764         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23765         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23766         Likewise.
23767         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23768         Likewise.
23769         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23770         this function.
23771         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23772         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23773         Likewise.
23774         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23775         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23776         * doc/posix-functions/confstr.texi (confstr): Likewise.
23777         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23778         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23779         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23780         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23781         * doc/posix-functions/fputws.texi (fputws): Likewise.
23782         * doc/posix-functions/fwide.texi (fwide): Likewise.
23783         * doc/posix-functions/getwc.texi (getwc): Likewise.
23784         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23785         * doc/posix-functions/putwc.texi (putwc): Likewise.
23786         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23787         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23788         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23789         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23790         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23791         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23792         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23793         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23794         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23795         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23796         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23797
23798 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23799
23800         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23801         * lib/ioctl.c: Include <sys/ioctl.h>.
23802
23803 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23804
23805         * modules/getdate-tests (Depends-on): Add progname.
23806         * tests/test-getdate.c: Use progname module, to avoid link errors
23807         on non-glibc systems.
23808
23809 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23810
23811         * modules/filenamecat-tests (Depends-on): Add progname.
23812         * modules/fstrcmp-tests (Depends-on): Likewise.
23813
23814         * tests/test-filenamecat.c: Use progname module, to avoid link
23815         errors on non-glibc systems.
23816         * tests/test-fstrcmp.c: Likewise.
23817
23818 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23819
23820         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23821         * lib/gettimeofday.c: Move extern declaration out of function.
23822
23823 2009-01-18  Bruno Haible  <bruno@clisp.org>
23824
23825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23826         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23827         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23828
23829 2009-01-18  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/strftime.c (MEMPCPY): Remove unused macro.
23832         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23833
23834 2009-01-18  Martin Lambers  <marlam@marlam.de>
23835
23836         New module 'link'.
23837         * lib/unistd.in.h (link): New declaration.
23838         * lib/link.c: New file.
23839         * m4/link.m4: New file.
23840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23841         HAVE_LINK.
23842         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23843         * modules/link: New file.
23844         * doc/posix-functions/link.texi: Mention the new module.
23845
23846 2009-01-18  Bruno Haible  <bruno@clisp.org>
23847
23848         * tests/test-avltree_list.c (main): Call set_program_name.
23849         * tests/test-avltree_oset.c (main): Likewise.
23850         * tests/test-obstack-printf.c: Include progname.h.
23851         (main): Call set_program_name.
23852         * tests/test-quotearg.c: Include progname.h.
23853         (main): Call set_program_name.
23854         * tests/test-xmemdup0.c: Include progname.h.
23855         (main): Call set_program_name.
23856
23857 2009-01-18  Bruno Haible  <bruno@clisp.org>
23858
23859         New module 'alphasort'.
23860         * lib/dirent.in.h (alphasort): New declaration.
23861         * lib/alphasort.c: New file, from glibc with modifications.
23862         * m4/alphasort.m4: New file.
23863         * modules/alphasort: New file.
23864         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23865         HAVE_ALPHASORT.
23866         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23867         HAVE_ALPHASORT.
23868         * doc/posix-functions/alphasort.texi: Mention the new module and the
23869         portability problems.
23870
23871 2009-01-18  Bruno Haible  <bruno@clisp.org>
23872
23873         New module 'scandir'.
23874         * lib/dirent.in.h (scandir): New declaration.
23875         * lib/scandir.c: New file, from glibc with modifications.
23876         * m4/scandir.m4: New file.
23877         * modules/scandir: New file.
23878         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23879         HAVE_SCANDIR.
23880         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23881         HAVE_SCANDIR.
23882         * doc/posix-functions/scandir.texi: Mention the new module and the
23883         portability problems.
23884
23885 2009-01-17  Bruno Haible  <bruno@clisp.org>
23886
23887         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23888         Update documentation.
23889         (func_remove_suffix): Escape all dots in the suffix. Update
23890         documentation.
23891         (func_filter_filelist): Update documentation.
23892         Reported by Ralf Wildenhues.
23893
23894 2009-01-17  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/dprintf-posix-tests: New file.
23897         * tests/test-dprintf-posix.sh: New file.
23898         * tests/test-dprintf-posix.c: New file.
23899
23900         New modules 'dprintf', 'dprintf-posix'.
23901         * lib/stdio.in.h (dprintf): New declaration.
23902         * lib/dprintf.c: New file.
23903         * m4/dprintf.m4: New file.
23904         * m4/dprintf-posix.m4: New file.
23905         * modules/dprintf: New file.
23906         * modules/dprintf-posix: New file.
23907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23908         HAVE_DPRINTF, REPLACE_DPRINTF.
23909         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23910         HAVE_DPRINTF, REPLACE_DPRINTF.
23911         * doc/posix-functions/dprintf.texi: Mention the new modules.
23912
23913 2009-01-17  Bruno Haible  <bruno@clisp.org>
23914
23915         * modules/vdprintf-posix-tests: New file.
23916         * tests/test-vdprintf-posix.sh: New file.
23917         * tests/test-vdprintf-posix.c: New file.
23918
23919         New modules 'vdprintf', 'vdprintf-posix'.
23920         * lib/stdio.in.h (vdprintf): New declaration.
23921         * lib/vdprintf.c: New file.
23922         * m4/vdprintf.m4: New file.
23923         * m4/vdprintf-posix.m4: New file.
23924         * modules/vdprintf: New file.
23925         * modules/vdprintf-posix: New file.
23926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23927         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23928         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23929         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23930         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23931
23932 2009-01-17  Bruno Haible  <bruno@clisp.org>
23933
23934         Fix replacement of fopen on mingw.
23935         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23936         mingw.
23937
23938 2009-01-17  Bruno Haible  <bruno@clisp.org>
23939
23940         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23941         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23942
23943 2009-01-17  Bruno Haible  <bruno@clisp.org>
23944
23945         Avoid test-fflush2.sh failure on mingw.
23946         * tests/test-fflush2.c: Include binary-io.h.
23947         (main): Put standard input into binary mode.
23948         * modules/fflush-tests (Depends-on): Add binary-io.
23949
23950 2009-01-17  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/wchar.in.h: In another particular situation, include only the
23953         system's <wchar.h> file.
23954         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23955         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23956         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23957
23958 2009-01-17  Bruno Haible  <bruno@clisp.org>
23959
23960         Support for stripping executables in --enable-relocatable.
23961         * build-aux/install-reloc: Expect one more argument, or an environment
23962         variable RELOC_STRIP_PROG. If set, strip the destination program and
23963         its wrapper.
23964         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23965         RELOC_STRIP_PROG.
23966         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23967         to set RELOCATABLE_STRIP.
23968         * NEWS: Mention the new Makefile requirement.
23969
23970 2009-01-17  Bruno Haible  <bruno@clisp.org>
23971
23972         * build-aux/install-reloc: Remove debugging information left over by
23973         C compiler on MacOS X.
23974
23975 2009-01-17  Bruno Haible  <bruno@clisp.org>
23976
23977         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23978         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23979         _NSGetExecutablePath.
23980
23981 2009-01-16  Jim Meyering  <meyering@redhat.com>
23982
23983         strerror: avoid warnings about discarding "const"
23984         * lib/strerror.c (rpl_strerror): Instead of returning a const
23985         string from each and every "case", use a variable, and add a single
23986         cast after the switch.
23987
23988 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23989
23990         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23991
23992 2009-01-16  Bruno Haible  <bruno@clisp.org>
23993
23994         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23995         array initializer syntax that also works in C++ mode.
23996         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23997
23998 2009-01-16  Jim Meyering  <meyering@redhat.com>
23999
24000         poll: suppress a warning
24001         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24002         to ignore "...unsigned expression < 0 is always false" warnings.
24003
24004 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24005
24006         poll: remove declarations of unused variables
24007         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24008         sockbuf and optlen.
24009
24010 2009-01-15  Bruno Haible  <bruno@clisp.org>
24011
24012         Make fflush-after-ungetc POSIX compliant on BSD systems.
24013         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24014         (clear_ungetc_buffer): Implement also for other systems.
24015         (rpl_fflush): On glibc systems, invoke
24016         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24017         clear_ungetc_buffer after fetching the stream's position, not before.
24018
24019 2009-01-15  Bruno Haible  <bruno@clisp.org>
24020
24021         Make fflush-after-ungetc POSIX compliant on glibc systems.
24022         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24023         after ungetc.
24024         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24025         (rpl_fflush): On glibc systems, simply call the system's fflush
24026         function after clearing the ungetc buffer.
24027         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24028         Instead, lseek only to the end of file, then use the system's fseeko
24029         for the rest. On glibc systems, reset the EOF indicator bit.
24030
24031 2009-01-15  Jim Meyering  <meyering@redhat.com>
24032
24033         openmp.m4: revert quote-adding change, for portability to older autoconf
24034         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24035         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24036         Simon Josefsson noticed the problem when using autoconf-2.61.
24037
24038 2009-01-15  Bruno Haible  <bruno@clisp.org>
24039
24040         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24041         * tests/test-fflush2.c (ASSERT): Always fail.
24042         (main): Add two tests for fflush() after ungetc(), taking into account
24043         the Austin Group's clarification.
24044         Suggested by Eric Blake.
24045
24046 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24047
24048         mktime.m4: remove K&R-style function prototypes
24049         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24050         for the Sun C++ compiler.
24051
24052 2009-01-14  Bruno Haible  <bruno@clisp.org>
24053
24054         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24055         while including <wchar.h>.
24056         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24057         the system's <wchar.h> file.
24058         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24059
24060 2009-01-14  Bruno Haible  <bruno@clisp.org>
24061
24062         * m4/csharp.m4: Don't mention gettext on the serial number line.
24063         * m4/csharpexec.m4: Likewise.
24064         * m4/eaccess.m4: Likewise.
24065         * m4/javaexec.m4: Likewise.
24066         * m4/sig_atomic_t.m4: Likewise.
24067         * m4/tmpdir.m4: Likewise.
24068         * m4/intldir.m4: Bump gettext version.
24069         * m4/lib-ld.m4: Likewise.
24070
24071 2009-01-14  Bruno Haible  <bruno@clisp.org>
24072
24073         * lib/progname.c (set_program_name): Add more comments.
24074         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24075
24076 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24077
24078         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24079         were sys/stat.h does not define it.
24080
24081 2009-01-14  Jim Meyering  <meyering@redhat.com>
24082
24083         many *.m4 files: improve m4 quoting
24084         99% of this change was performed by running the following commands:
24085         git ls-files | grep '\.m4$' | xargs perl -pi \
24086           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24087           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24088           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24089           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24090         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24091         The remainder were to add Copyright dates, increment serial numbers,
24092         undo some changes in comments, exclude m4/intl.m4, and add quotes
24093         around the "1" in ",1" where the unusual spacing prohibited the
24094         above regexps from doing the job.  For more details, see
24095         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24096         * m4/acl.m4: Modified.
24097         * m4/afs.m4: Likewise.
24098         * m4/alloca.m4: Likewise.
24099         * m4/argp.m4: Likewise.
24100         * m4/argz.m4: Likewise.
24101         * m4/atexit.m4: Likewise.
24102         * m4/bison-i18n.m4: Likewise.
24103         * m4/bison.m4: Likewise.
24104         * m4/byteswap.m4: Likewise.
24105         * m4/c-stack.m4: Likewise.
24106         * m4/c-strtod.m4: Likewise.
24107         * m4/calloc.m4: Likewise.
24108         * m4/canonicalize-lgpl.m4: Likewise.
24109         * m4/chown.m4: Likewise.
24110         * m4/clock_time.m4: Likewise.
24111         * m4/codeset.m4: Likewise.
24112         * m4/copy-file.m4: Likewise.
24113         * m4/csharp.m4: Likewise.
24114         * m4/csharpcomp.m4: Likewise.
24115         * m4/csharpexec.m4: Likewise.
24116         * m4/d-ino.m4: Likewise.
24117         * m4/d-type.m4: Likewise.
24118         * m4/dirfd.m4: Likewise.
24119         * m4/double-slash-root.m4: Likewise.
24120         * m4/eaccess.m4: Likewise.
24121         * m4/eealloc.m4: Likewise.
24122         * m4/environ.m4: Likewise.
24123         * m4/errno_h.m4: Likewise.
24124         * m4/euidaccess.m4: Likewise.
24125         * m4/execute.m4: Likewise.
24126         * m4/fatal-signal.m4: Likewise.
24127         * m4/fchdir.m4: Likewise.
24128         * m4/fcntl_h.m4: Likewise.
24129         * m4/fileblocks.m4: Likewise.
24130         * m4/filenamecat.m4: Likewise.
24131         * m4/findprog.m4: Likewise.
24132         * m4/flexmember.m4: Likewise.
24133         * m4/fnmatch.m4: Likewise.
24134         * m4/fopen.m4: Likewise.
24135         * m4/fpending.m4: Likewise.
24136         * m4/fprintf-posix.m4: Likewise.
24137         * m4/free.m4: Likewise.
24138         * m4/frexp.m4: Likewise.
24139         * m4/frexpl.m4: Likewise.
24140         * m4/fsusage.m4: Likewise.
24141         * m4/ftruncate.m4: Likewise.
24142         * m4/gc-camellia.m4: Likewise.
24143         * m4/gc-random.m4: Likewise.
24144         * m4/gc.m4: Likewise.
24145         * m4/getaddrinfo.m4: Likewise.
24146         * m4/getcwd-abort-bug.m4: Likewise.
24147         * m4/getcwd-path-max.m4: Likewise.
24148         * m4/getdate.m4: Likewise.
24149         * m4/getdomainname.m4: Likewise.
24150         * m4/getgroups.m4: Likewise.
24151         * m4/gethostname.m4: Likewise.
24152         * m4/gethrxtime.m4: Likewise.
24153         * m4/getline.m4: Likewise.
24154         * m4/getloadavg.m4: Likewise.
24155         * m4/getndelim2.m4: Likewise.
24156         * m4/getpass.m4: Likewise.
24157         * m4/gettext.m4: Likewise.
24158         * m4/gettime.m4: Likewise.
24159         * m4/gettimeofday.m4: Likewise.
24160         * m4/gnulib-common.m4: Likewise.
24161         * m4/group-member.m4: Likewise.
24162         * m4/host-os.m4: Likewise.
24163         * m4/iconv.m4: Likewise.
24164         * m4/iconv_open.m4: Likewise.
24165         * m4/inet_ntop.m4: Likewise.
24166         * m4/inet_pton.m4: Likewise.
24167         * m4/inline.m4: Likewise.
24168         * m4/intldir.m4: Likewise.
24169         * m4/intlmacosx.m4: Likewise.
24170         * m4/intmax.m4: Likewise.
24171         * m4/intmax_t.m4: Likewise.
24172         * m4/inttypes.m4: Likewise.
24173         * m4/inttypes_h.m4: Likewise.
24174         * m4/inttypes-pri.m4: Likewise.
24175         * m4/isapipe.m4: Likewise.
24176         * m4/isnand.m4: Likewise.
24177         * m4/isnanf.m4: Likewise.
24178         * m4/isnanl.m4: Likewise.
24179         * m4/javacomp.m4: Likewise.
24180         * m4/javaexec.m4: Likewise.
24181         * m4/jm-winsz1.m4: Likewise.
24182         * m4/jm-winsz2.m4: Likewise.
24183         * m4/lchown.m4: Likewise.
24184         * m4/lcmessage.m4: Likewise.
24185         * m4/ldexpl.m4: Likewise.
24186         * m4/lib-ld.m4: Likewise.
24187         * m4/lib-link.m4: Likewise.
24188         * m4/libsigsegv.m4: Likewise.
24189         * m4/link-follow.m4: Likewise.
24190         * m4/localcharset.m4: Likewise.
24191         * m4/locale-fr.m4: Likewise.
24192         * m4/locale-ja.m4: Likewise.
24193         * m4/locale-tr.m4: Likewise.
24194         * m4/locale-zh.m4: Likewise.
24195         * m4/lock.m4: Likewise.
24196         * m4/longlong.m4: Likewise.
24197         * m4/ls-mntd-fs.m4: Likewise.
24198         * m4/lstat.m4: Likewise.
24199         * m4/malloc.m4: Likewise.
24200         * m4/mathl.m4: Likewise.
24201         * m4/mbrtowc.m4: Likewise.
24202         * m4/mbstate_t.m4: Likewise.
24203         * m4/mbswidth.m4: Likewise.
24204         * m4/memchr.m4: Likewise.
24205         * m4/memcmp.m4: Likewise.
24206         * m4/memcpy.m4: Likewise.
24207         * m4/memmem.m4: Likewise.
24208         * m4/memmove.m4: Likewise.
24209         * m4/mempcpy.m4: Likewise.
24210         * m4/memrchr.m4: Likewise.
24211         * m4/memset.m4: Likewise.
24212         * m4/minmax.m4: Likewise.
24213         * m4/mkdir-slash.m4: Likewise.
24214         * m4/mkdtemp.m4: Likewise.
24215         * m4/mktime.m4: Likewise.
24216         * m4/mmap-anon.m4: Likewise.
24217         * m4/mountlist.m4: Likewise.
24218         * m4/nanosleep.m4: Likewise.
24219         * m4/nls.m4: Likewise.
24220         * m4/nocrash.m4: Likewise.
24221         * m4/open.m4: Likewise.
24222         * m4/openat.m4: Likewise.
24223         * m4/openmp.m4: Likewise.
24224         * m4/pathmax.m4: Likewise.
24225         * m4/perl.m4: Likewise.
24226         * m4/physmem.m4: Likewise.
24227         * m4/pipe.m4: Likewise.
24228         * m4/po.m4: Likewise.
24229         * m4/poll.m4: Likewise.
24230         * m4/posixtm.m4: Likewise.
24231         * m4/posixver.m4: Likewise.
24232         * m4/printf-frexp.m4: Likewise.
24233         * m4/printf-frexpl.m4: Likewise.
24234         * m4/printf-posix.m4: Likewise.
24235         * m4/printf-posix-rpl.m4: Likewise.
24236         * m4/printf.m4: Likewise.
24237         * m4/progtest.m4: Likewise.
24238         * m4/putenv.m4: Likewise.
24239         * m4/readline.m4: Likewise.
24240         * m4/readlink.m4: Likewise.
24241         * m4/readutmp.m4: Likewise.
24242         * m4/realloc.m4: Likewise.
24243         * m4/regex.m4: Likewise.
24244         * m4/relocatable.m4: Likewise.
24245         * m4/relocatable-lib.m4: Likewise.
24246         * m4/rename-dest-slash.m4: Likewise.
24247         * m4/rename.m4: Likewise.
24248         * m4/rmdir-errno.m4: Likewise.
24249         * m4/rmdir.m4: Likewise.
24250         * m4/roundf.m4: Likewise.
24251         * m4/roundl.m4: Likewise.
24252         * m4/rpmatch.m4: Likewise.
24253         * m4/save-cwd.m4: Likewise.
24254         * m4/selinux-selinux-h.m4: Likewise.
24255         * m4/setenv.m4: Likewise.
24256         * m4/settime.m4: Likewise.
24257         * m4/sig2str.m4: Likewise.
24258         * m4/sig_atomic_t.m4: Likewise.
24259         * m4/signalblocking.m4: Likewise.
24260         * m4/signbit.m4: Likewise.
24261         * m4/sigpipe.m4: Likewise.
24262         * m4/sockets.m4: Likewise.
24263         * m4/sockpfaf.m4: Likewise.
24264         * m4/st_dm_mode.m4: Likewise.
24265         * m4/stat-time.m4: Likewise.
24266         * m4/stdbool.m4: Likewise.
24267         * m4/stdint.m4: Likewise.
24268         * m4/stdint_h.m4: Likewise.
24269         * m4/stpcpy.m4: Likewise.
24270         * m4/stpncpy.m4: Likewise.
24271         * m4/strcase.m4: Likewise.
24272         * m4/strchrnul.m4: Likewise.
24273         * m4/strcspn.m4: Likewise.
24274         * m4/strdup.m4: Likewise.
24275         * m4/strftime.m4: Likewise.
24276         * m4/strndup.m4: Likewise.
24277         * m4/strnlen.m4: Likewise.
24278         * m4/strpbrk.m4: Likewise.
24279         * m4/strptime.m4: Likewise.
24280         * m4/strsep.m4: Likewise.
24281         * m4/strtod.m4: Likewise.
24282         * m4/strtoimax.m4: Likewise.
24283         * m4/strtok_r.m4: Likewise.
24284         * m4/strtol.m4: Likewise.
24285         * m4/strtoll.m4: Likewise.
24286         * m4/strtoul.m4: Likewise.
24287         * m4/strtoull.m4: Likewise.
24288         * m4/strtoumax.m4: Likewise.
24289         * m4/strverscmp.m4: Likewise.
24290         * m4/threadlib.m4: Likewise.
24291         * m4/timegm.m4: Likewise.
24292         * m4/tm_gmtoff.m4: Likewise.
24293         * m4/tmpdir.m4: Likewise.
24294         * m4/tmpfile.m4: Likewise.
24295         * m4/tzset.m4: Likewise.
24296         * m4/uintmax_t.m4: Likewise.
24297         * m4/unlinkdir.m4: Likewise.
24298         * m4/unlocked-io.m4: Likewise.
24299         * m4/uptime.m4: Likewise.
24300         * m4/userspec.m4: Likewise.
24301         * m4/utimbuf.m4: Likewise.
24302         * m4/utime.m4: Likewise.
24303         * m4/utimes-null.m4: Likewise.
24304         * m4/utimes.m4: Likewise.
24305         * m4/vararrays.m4: Likewise.
24306         * m4/vasnprintf.m4: Likewise.
24307         * m4/vfprintf-posix.m4: Likewise.
24308         * m4/vprintf-posix.m4: Likewise.
24309         * m4/wait-process.m4: Likewise.
24310         * m4/wchar_t.m4: Likewise.
24311         * m4/wint_t.m4: Likewise.
24312         * m4/write-any-file.m4: Likewise.
24313         * m4/yield.m4: Likewise.
24314
24315 2009-01-13  Bruno Haible  <bruno@clisp.org>
24316
24317         Avoid test-copy-file.sh failures when ACL support insufficient.
24318         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24319         TESTS_ENVIRONMENT.
24320         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24321         Reported by Jim Meyering.
24322
24323 2009-01-13  Bruno Haible  <bruno@clisp.org>
24324
24325         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24326         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24327         * modules/unistdio/u8-printf-parse (Files): Likewise.
24328         * modules/unistdio/u32-printf-parse (Files): Likewise.
24329         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24330
24331 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24332
24333         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24334         and m4/inttypes_h.m4 too.
24335
24336 2009-01-12  Eric Blake  <ebb9@byu.net>
24337
24338         tests: IRIX 6.2 cc can't compile -0.0 into .data
24339         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24340         rather than at compile-time.
24341         * tests/test-floorl.c (minus_zero): Likewise.
24342         * tests/test-frexpl.c (minus_zero): Likewise.
24343         * tests/test-isnan.c (minus_zerol): Likewise.
24344         * tests/test-isnanl.h (minus_zero): Likewise.
24345         * tests/test-ldexpl.c (minus_zero): Likewise.
24346         * tests/test-roundl.c (minus_zero): Likewise.
24347         * tests/test-signbit.c (minus_zerol): Likewise.
24348         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24349         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24350         * tests/test-truncl.c (minus_zero): Likewise.
24351         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24352         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24353         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24354
24355 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24356
24357         regex: fix glibc bug 9697
24358         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24359         handling.
24360
24361 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24362
24363         regex: fix glibc bug 697
24364         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24365         being NULL also if there are no backreferences.
24366
24367 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24368
24369         regex: merge glibc changes
24370         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24371         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24372         re_string_skip_chars, re_string_reconstruct): Likewise.
24373         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24374
24375 2009-01-07  Jim Meyering  <meyering@redhat.com>
24376
24377         poll: filter through cppi
24378         * lib/poll.c: Indent cpp directives to reflect nesting.
24379
24380 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24381
24382         poll: don't return uninitialized
24383         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24384
24385 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24386
24387         avoid compile failure on AIX 6.1
24388         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24389         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24390
24391 2009-01-04  Jim Meyering  <meyering@redhat.com>
24392
24393         remove duplicate inclusion of <stdio.h>
24394         * tests/test-fprintf-posix.c: Likewise.
24395         * tests/test-printf-posix.c: Likewise.
24396         * tests/test-snprintf-posix.c: Likewise.
24397         * tests/test-sprintf-posix.c: Likewise.
24398         * tests/test-vasprintf-posix.c: Likewise.
24399         * tests/test-vfprintf-posix.c: Likewise.
24400         * tests/test-vprintf-posix.c: Likewise.
24401         * tests/test-vsnprintf-posix.c: Likewise.
24402         * tests/test-vsprintf-posix.c: Likewise.
24403
24404 2009-01-03  Jim Meyering  <meyering@redhat.com>
24405
24406         gnulib-tool: fix sed-based filtering
24407         * gnulib-tool (func_filter_filelist): Remove extra backslash
24408         in sed_fff_filter definition.
24409
24410 2009-01-02  Jim Meyering  <meyering@redhat.com>
24411
24412         strftime: avoid compilation failure on Solaris 2.6
24413         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24414         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24415         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24416         be available.  Reported by Tom G. Christensen.  Details in
24417         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24418
24419 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24420             Bruno Haible  <bruno@clisp.org>
24421
24422         Speed up gnulib-tool by doing more string processing through shell
24423         built-ins.
24424         * gnulib-tool (fast_func_append): New variable.
24425         (func_remove_prefix, func_remove_suffix): New functions.
24426         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24427         (func_filter_filelist): New function.
24428         (func_get_dependencies): Use func_remove_suffix instead of sed.
24429         (func_get_automake_snippet): Use func_filter_filelist instead of a
24430         subshell and sed invocation.
24431
24432 2009-01-01  Bruno Haible  <bruno@clisp.org>
24433
24434         Fix a security bug.
24435         * gnulib-tool (func_import, import, update): Don't allow the characters
24436         '"', '$', '`', '\' in macro arguments that become part of commands that
24437         are evaluated.
24438
24439 2009-01-01  Bruno Haible  <bruno@clisp.org>
24440
24441         * gnulib-tool (func_reset_sigpipe): Add more comments.
24442
24443 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24444
24445         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24446         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24447         already know the answer.
24448
24449 2009-01-01  Jim Meyering  <meyering@redhat.com>
24450
24451         * lib/version-etc.c (version_etc_va): Update copyright year.
24452
24453 2008-12-30  Bruno Haible  <bruno@clisp.org>
24454
24455         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24456         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24457         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24458
24459 2008-12-29  Eric Blake  <ebb9@byu.net>
24460
24461         multiarch: avoid autoconf AC_REQUIRE bug
24462         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24463         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24464         2.63 and older.
24465         Reported by Bruno Haible, and analyzed in
24466         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24467
24468 2008-12-29  Bruno Haible  <bruno@clisp.org>
24469
24470         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24471         files in subdirectories correctly.
24472         Reported by Ralf Wildenhues.
24473
24474 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24475
24476         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24477         rather than 'join FILE -', for Solaris join.
24478
24479 2008-12-29  Bruno Haible  <bruno@clisp.org>
24480
24481         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24482         quoting.
24483         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24484         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24485         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24486         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24487         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24488         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24489         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24490         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24491         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24492         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24493         * m4/nls.m4 (AM_NLS): Likewise.
24494         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24495         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24496         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24497         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24498         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24499         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24500         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24501         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24502         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24503         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24504         * m4/xsize.m4 (gl_XSIZE): Likewise.
24505         Suggested by Jim Meyering.
24506
24507 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24508
24509         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24510         * lib/parse-duration.c: use a switch instead of cascading if's.
24511
24512 2008-12-29  Eric Blake  <ebb9@byu.net>
24513
24514         wchar.h: supply WEOF on Irix 5.3
24515         * lib/wchar.in.h (wint_t): Also supply WEOF.
24516         * lib/wctype.in.h (wint_t): Likewise.
24517         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24518         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24519         Reported by Tom G. Christensen.
24520
24521 2008-12-26  Bruno Haible  <bruno@clisp.org>
24522
24523         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24524         i486, i586, i686.
24525
24526 2008-12-26  Bruno Haible  <bruno@clisp.org>
24527
24528         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24529
24530 2008-12-26  Bruno Haible  <bruno@clisp.org>
24531
24532         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24533         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24534         not __STDC_CONSTANT_MACROS.
24535         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24536
24537 2008-12-25  Bruno Haible  <bruno@clisp.org>
24538
24539         Add support for universal builds to vasnprintf.
24540         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24541         universal builds, guess no.
24542         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24543         * modules/vasprintf-posix (Depends-on): Likewise.
24544         * modules/fprintf-posix (Depends-on): Likewise.
24545         * modules/vfprintf-posix (Depends-on): Likewise.
24546         * modules/snprintf-posix (Depends-on): Likewise.
24547         * modules/vsnprintf-posix (Depends-on): Likewise.
24548         * modules/sprintf-posix (Depends-on): Likewise.
24549         * modules/vsprintf-posix (Depends-on): Likewise.
24550         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24551         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24552         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24553         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24554         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24555         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24556         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24557
24558         Add support for universal builds to <inttypes.h>.
24559         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24560         _SCNu64_PREFIX): In Apple
24561         universal builds, define directly, using _LP64.
24562         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24563         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24564         * modules/inttypes (Depends-on): Add multiarch.
24565         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24566
24567         Add support for universal builds to <stdint.h>.
24568         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24569         universal builds, define directly, using _LP64.
24570         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24571         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24572         and size_t.
24573         * modules/stdint (Depends-on): Add multiarch.
24574         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24575
24576         New module 'multiarch'.
24577         * modules/multiarch: New file.
24578         * m4/multiarch.m4: New file.
24579
24580 2008-12-25  Bruno Haible  <bruno@clisp.org>
24581
24582         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24583
24584 2008-12-25  Bruno Haible  <bruno@clisp.org>
24585
24586         * modules/btowc (License): Relicense under LGPLv2+.
24587         * modules/mbsinit (License): Likewise.
24588         * modules/mbrtowc (License): Likewise.
24589         * modules/wcrtomb (License): Likewise.
24590         * modules/streq (License): Likewise.
24591         Reported by David Lutterkort <lutter@redhat.com>.
24592
24593 2008-12-23  Bruno Haible  <bruno@clisp.org>
24594
24595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24596
24597 2008-12-23  Bruno Haible  <bruno@clisp.org>
24598
24599         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24601         GETADDRINFO_LIB, not in LIBS.
24602         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24603         * modules/canon-host (Link): Likewise.
24604         * NEWS: Mention the change.
24605         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24606         GETADDRINFO_LIB.
24607
24608 2008-12-22  Bruno Haible  <bruno@clisp.org>
24609
24610         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24611         * doc/posix-functions/iswalpha_l.texi: Likewise.
24612         * doc/posix-functions/iswblank_l.texi: Likewise.
24613         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24614         * doc/posix-functions/iswctype_l.texi: Likewise.
24615         * doc/posix-functions/iswdigit_l.texi: Likewise.
24616         * doc/posix-functions/iswgraph_l.texi: Likewise.
24617         * doc/posix-functions/iswlower_l.texi: Likewise.
24618         * doc/posix-functions/iswprint_l.texi: Likewise.
24619         * doc/posix-functions/iswpunct_l.texi: Likewise.
24620         * doc/posix-functions/iswspace_l.texi: Likewise.
24621         * doc/posix-functions/iswupper_l.texi: Likewise.
24622         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24623         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24624         * doc/posix-functions/open_wmemstream.texi: Likewise.
24625         * doc/posix-functions/swscanf.texi: Likewise.
24626         * doc/posix-functions/towctrans_l.texi: Likewise.
24627         * doc/posix-functions/towlower.texi: Likewise.
24628         * doc/posix-functions/towlower_l.texi: Likewise.
24629         * doc/posix-functions/towupper.texi: Likewise.
24630         * doc/posix-functions/towupper_l.texi: Likewise.
24631         * doc/posix-functions/vfwprintf.texi: Likewise.
24632         * doc/posix-functions/vfwscanf.texi: Likewise.
24633         * doc/posix-functions/vswscanf.texi: Likewise.
24634         * doc/posix-functions/vwprintf.texi: Likewise.
24635         * doc/posix-functions/vwscanf.texi: Likewise.
24636         * doc/posix-functions/wcpcpy.texi: Likewise.
24637         * doc/posix-functions/wcpncpy.texi: Likewise.
24638         * doc/posix-functions/wcscasecmp.texi: Likewise.
24639         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24640         * doc/posix-functions/wcscoll_l.texi: Likewise.
24641         * doc/posix-functions/wcsdup.texi: Likewise.
24642         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24643         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24644         * doc/posix-functions/wcsnlen.texi: Likewise.
24645         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24646         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24647         * doc/posix-functions/wctrans_l.texi: Likewise.
24648         * doc/posix-functions/wctype_l.texi: Likewise.
24649         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24650         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24651         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24652         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24653         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24654         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24655         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24656         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24657         * doc/glibc-functions/wcschrnul.texi: Likewise.
24658         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24659         * doc/glibc-functions/wcstod_l.texi: Likewise.
24660         * doc/glibc-functions/wcstof_l.texi: Likewise.
24661         * doc/glibc-functions/wcstol_l.texi: Likewise.
24662         * doc/glibc-functions/wcstold_l.texi: Likewise.
24663         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24664         * doc/glibc-functions/wcstoq.texi: Likewise.
24665         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24666         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24667         * doc/glibc-functions/wcstouq.texi: Likewise.
24668         * doc/glibc-functions/wmempcpy.texi: Likewise.
24669
24670 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24671             Eric Blake  <ebb9@byu.net>
24672             Paolo Bonzini  <bonzini@gnu.org>
24673             Bruno Haible  <bruno@clisp.org>
24674
24675         Make c-stack work on Haiku.
24676         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24677         (c_stack_action): Use SA_ONSTACK flag.
24678
24679 2008-12-22  Bruno Haible  <bruno@clisp.org>
24680
24681         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24682
24683 2008-12-22  Bruno Haible  <bruno@clisp.org>
24684
24685         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24686         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24687         being overridden.
24688         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24689         New macros.
24690         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24692         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24693         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24694
24695 2008-12-22  Bruno Haible  <bruno@clisp.org>
24696
24697         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24698         from test code.
24699
24700 2008-12-22  Eric Blake  <ebb9@byu.net>
24701
24702         Avoid gcc warnings on cygwin.
24703         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24704         Avoid unused variable.
24705         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24706         Likewise.
24707
24708 2008-12-22  Bruno Haible  <bruno@clisp.org>
24709
24710         Remove HAVE_MBRTOWC conditionals.
24711         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24712         (mbscasecmp): Assume mbrtowc function.
24713         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24714         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24715         * lib/mbschr.c: Include mbuiter.h unconditionally.
24716         (mbschr): Assume mbrtowc function.
24717         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24718         (mbscspn): Assume mbrtowc function.
24719         * lib/mbslen.c: Include mbuiter.h unconditionally.
24720         (mbslen): Assume mbrtowc function.
24721         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24722         (mbsncasecmp): Assume mbrtowc function.
24723         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24724         (mbsnlen): Assume mbrtowc function.
24725         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24726         (mbspbrk): Assume mbrtowc function.
24727         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24728         (mbspcasecmp): Assume mbrtowc function.
24729         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24730         (mbsrchr): Assume mbrtowc function.
24731         * lib/mbssep.c: Include mbuiter.h unconditionally.
24732         (mbssep): Assume mbrtowc function.
24733         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24734         (mbsspn): Assume mbrtowc function.
24735         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24736         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24737         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24738         (mbstok_r): Assume mbrtowc function.
24739         * lib/propername.c: Include mbuiter.h unconditionally.
24740         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24741         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24742         (trim2): Assume mbrtowc function.
24743         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24744         (mbsnwidth): Assume mbrtowc function.
24745         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24746         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24747         fallback definitions.
24748         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24749
24750 2008-12-22  Bruno Haible  <bruno@clisp.org>
24751
24752         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24753
24754 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24755
24756         * modules/regex: Request emulations for the mb*/wc* functions we need.
24757         * m4/regex.m4: Don't look for those functions here.
24758         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24759
24760 2008-12-22  Bruno Haible  <bruno@clisp.org>
24761
24762         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24763
24764 2008-12-21  Bruno Haible  <bruno@clisp.org>
24765
24766         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24767         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24768         (Include): Remove conditionalization.
24769         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24770         (Include): Remove conditionalization.
24771         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24772         (Include): Remove conditionalization.
24773         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24774         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24775         * NEWS: Mention the change.
24776         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24777         via Sergey Poznyakoff <gray@gnu.org.ua>.
24778
24779 2008-12-21  Bruno Haible  <bruno@clisp.org>
24780
24781         * MODULES.html.sh (Extended multibyte and wide character utilities
24782         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24783         wcrtomb, wcsrtombs.
24784         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24785         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24786         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24787         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24788
24789 2008-12-21  Bruno Haible  <bruno@clisp.org>
24790
24791         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24792
24793 2008-12-21  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/wcsnrtombs-tests: New file.
24796         * tests/test-wcsnrtombs1.sh: New file.
24797         * tests/test-wcsnrtombs2.sh: New file.
24798         * tests/test-wcsnrtombs3.sh: New file.
24799         * tests/test-wcsnrtombs4.sh: New file.
24800         * tests/test-wcsnrtombs.c: New file.
24801
24802         New module 'wcsnrtombs'.
24803         * lib/wchar.in.h (wcsnrtombs): New declaration.
24804         * lib/wcsnrtombs.c: New file.
24805         * lib/wcsrtombs-state.c: New file.
24806         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24807         (internal_state): Remove variable.
24808         * m4/wcsnrtombs.m4: New file.
24809         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24810         compilation units.
24811         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24812         HAVE_WCSNRTOMBS.
24813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24814         HAVE_WCSNRTOMBS.
24815         * modules/wcsnrtombs: New file.
24816         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24817         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24818
24819 2008-12-21  Bruno Haible  <bruno@clisp.org>
24820
24821         * modules/wcsrtombs-tests: New file.
24822         * tests/test-wcsrtombs1.sh: New file.
24823         * tests/test-wcsrtombs2.sh: New file.
24824         * tests/test-wcsrtombs3.sh: New file.
24825         * tests/test-wcsrtombs4.sh: New file.
24826         * tests/test-wcsrtombs.c: New file.
24827
24828         New module 'wcsrtombs'.
24829         * lib/wchar.in.h (wcsrtombs): New declaration.
24830         * lib/wcsrtombs.c: New file.
24831         * m4/wcsrtombs.m4: New file.
24832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24833         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24835         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24836         * modules/wcsrtombs: New file.
24837         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24838         bugs.
24839
24840 2008-12-21  Bruno Haible  <bruno@clisp.org>
24841
24842         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24843         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24844         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24845         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24846         if not correct.
24847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24848         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24849         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24850         m4/locale-zh.m4, m4/codeset.m4.
24851         * doc/posix-functions/wcrtomb.texi: Document the bug.
24852
24853 2008-12-21  Bruno Haible  <bruno@clisp.org>
24854
24855         Work around a btowc() bug on IRIX 6.5.
24856         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24857         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24858         REPLACE_WTOBC if not.
24859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24860         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24861         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24862
24863 2008-12-21  Bruno Haible  <bruno@clisp.org>
24864
24865         * modules/wcrtomb-tests: New file.
24866         * tests/test-wcrtomb.sh: New file.
24867         * tests/test-wcrtomb.c: New file.
24868
24869         New module 'wcrtomb'.
24870         * lib/wchar.in.h (wcrtomb): New declaration.
24871         * lib/wcrtomb.c: New file.
24872         * m4/wcrtomb.m4: New file.
24873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24874         HAVE_WCRTOMB.
24875         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24876         HAVE_WCRTOMB.
24877         * modules/wcrtomb: New file.
24878         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24879
24880 2008-12-21  Bruno Haible  <bruno@clisp.org>
24881
24882         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24883         * modules/mbsrtowcs (Files): Likewise.
24884         * modules/wctob (Files): Likewise.
24885         * modules/c-strcase-tests (Files): Likewise.
24886         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24887         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24888         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24889         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24890         * modules/vasnprintf-posix-tests (Files): Likewise.
24891
24892 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24893
24894         gitlog-to-changelog: pass all command-line arguments to git-log
24895         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24896         it is sometimes convenient to filter the commits in various ways.
24897         gitlog-to-changelog only allows --since to specify a start date,
24898         but git-log itself supports many other filtering mechanisms.
24899         At the moment, I want to filter by branch name.  Rather than
24900         adding a --branch option to gitlog-to-changelog, it seems more
24901         flexible to simply pass all options directly to git-log and let
24902         git do the work.  Notice that this effectively makes --since a
24903         redundant option for gitlog-to-changelog, but removing it would
24904         require current usage to change since calls would then require
24905         an additional '--'.
24906
24907 2008-12-21  Bruno Haible  <bruno@clisp.org>
24908
24909         * modules/mbsnrtowcs-tests: New file.
24910         * tests/test-mbsnrtowcs1.sh: New file.
24911         * tests/test-mbsnrtowcs2.sh: New file.
24912         * tests/test-mbsnrtowcs3.sh: New file.
24913         * tests/test-mbsnrtowcs4.sh: New file.
24914         * tests/test-mbsnrtowcs.c: New file.
24915
24916         New module 'mbsnrtowcs'.
24917         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24918         * lib/mbsnrtowcs.c: New file.
24919         * lib/mbsrtowcs-state.c: New file.
24920         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24921         (internal_state): Remove variable.
24922         * m4/mbsnrtowcs.m4: New file.
24923         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24924         compilation units.
24925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24926         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24927         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24928         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24929         * modules/mbsnrtowcs: New file.
24930         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24931         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24932         portability problem.
24933
24934 2008-12-21  Bruno Haible  <bruno@clisp.org>
24935
24936         Work around mbsrtowcs bug.
24937         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24938         (gl_FUNC_MBSRTOWCS): Invoke it.
24939         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24940         m4/locale-zh.m4.
24941         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24942
24943 2008-12-21  Bruno Haible  <bruno@clisp.org>
24944
24945         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24946
24947 2008-12-21  Bruno Haible  <bruno@clisp.org>
24948
24949         Update doc for AIX.
24950         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24951         16-bit wchar_t type.
24952         * doc/posix-functions/btowc.texi: Likewise.
24953         * doc/posix-functions/fgetwc.texi: Likewise.
24954         * doc/posix-functions/fgetws.texi: Likewise.
24955         * doc/posix-functions/fputwc.texi: Likewise.
24956         * doc/posix-functions/fputws.texi: Likewise.
24957         * doc/posix-functions/fwide.texi: Likewise.
24958         * doc/posix-functions/fwprintf.texi: Likewise.
24959         * doc/posix-functions/fwscanf.texi: Likewise.
24960         * doc/posix-functions/getwchar.texi: Likewise.
24961         * doc/posix-functions/getwc.texi: Likewise.
24962         * doc/posix-functions/iswalnum.texi: Likewise.
24963         * doc/posix-functions/iswalpha.texi: Likewise.
24964         * doc/posix-functions/iswblank.texi: Likewise.
24965         * doc/posix-functions/iswcntrl.texi: Likewise.
24966         * doc/posix-functions/iswctype.texi: Likewise.
24967         * doc/posix-functions/iswdigit.texi: Likewise.
24968         * doc/posix-functions/iswgraph.texi: Likewise.
24969         * doc/posix-functions/iswlower.texi: Likewise.
24970         * doc/posix-functions/iswprint.texi: Likewise.
24971         * doc/posix-functions/iswpunct.texi: Likewise.
24972         * doc/posix-functions/iswspace.texi: Likewise.
24973         * doc/posix-functions/iswupper.texi: Likewise.
24974         * doc/posix-functions/iswxdigit.texi: Likewise.
24975         * doc/posix-functions/mbrtowc.texi: Likewise.
24976         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24977         * doc/posix-functions/mbstowcs.texi: Likewise.
24978         * doc/posix-functions/mbtowc.texi: Likewise.
24979         * doc/posix-functions/putwchar.texi: Likewise.
24980         * doc/posix-functions/putwc.texi: Likewise.
24981         * doc/posix-functions/swprintf.texi: Likewise.
24982         * doc/posix-functions/tolower.texi: Likewise.
24983         * doc/posix-functions/toupper.texi: Likewise.
24984         * doc/posix-functions/towctrans.texi: Likewise.
24985         * doc/posix-functions/ungetwc.texi: Likewise.
24986         * doc/posix-functions/vswprintf.texi: Likewise.
24987         * doc/posix-functions/wcrtomb.texi: Likewise.
24988         * doc/posix-functions/wcscat.texi: Likewise.
24989         * doc/posix-functions/wcschr.texi: Likewise.
24990         * doc/posix-functions/wcscmp.texi: Likewise.
24991         * doc/posix-functions/wcscoll.texi: Likewise.
24992         * doc/posix-functions/wcscpy.texi: Likewise.
24993         * doc/posix-functions/wcscspn.texi: Likewise.
24994         * doc/posix-functions/wcsftime.texi: Likewise.
24995         * doc/posix-functions/wcslen.texi: Likewise.
24996         * doc/posix-functions/wcsncat.texi: Likewise.
24997         * doc/posix-functions/wcsncmp.texi: Likewise.
24998         * doc/posix-functions/wcsncpy.texi: Likewise.
24999         * doc/posix-functions/wcspbrk.texi: Likewise.
25000         * doc/posix-functions/wcsrchr.texi: Likewise.
25001         * doc/posix-functions/wcsrtombs.texi: Likewise.
25002         * doc/posix-functions/wcsspn.texi: Likewise.
25003         * doc/posix-functions/wcsstr.texi: Likewise.
25004         * doc/posix-functions/wcstod.texi: Likewise.
25005         * doc/posix-functions/wcstof.texi: Likewise.
25006         * doc/posix-functions/wcstoimax.texi: Likewise.
25007         * doc/posix-functions/wcstok.texi: Likewise.
25008         * doc/posix-functions/wcstold.texi: Likewise.
25009         * doc/posix-functions/wcstoll.texi: Likewise.
25010         * doc/posix-functions/wcstol.texi: Likewise.
25011         * doc/posix-functions/wcstombs.texi: Likewise.
25012         * doc/posix-functions/wcstoull.texi: Likewise.
25013         * doc/posix-functions/wcstoul.texi: Likewise.
25014         * doc/posix-functions/wcstoumax.texi: Likewise.
25015         * doc/posix-functions/wcswidth.texi: Likewise.
25016         * doc/posix-functions/wcsxfrm.texi: Likewise.
25017         * doc/posix-functions/wctob.texi: Likewise.
25018         * doc/posix-functions/wctomb.texi: Likewise.
25019         * doc/posix-functions/wctrans.texi: Likewise.
25020         * doc/posix-functions/wctype.texi: Likewise.
25021         * doc/posix-functions/wcwidth.texi: Likewise.
25022         * doc/posix-functions/wmemchr.texi: Likewise.
25023         * doc/posix-functions/wmemcmp.texi: Likewise.
25024         * doc/posix-functions/wmemcpy.texi: Likewise.
25025         * doc/posix-functions/wmemmove.texi: Likewise.
25026         * doc/posix-functions/wmemset.texi: Likewise.
25027         * doc/posix-functions/wprintf.texi: Likewise.
25028         * doc/posix-functions/wscanf.texi: Likewise.
25029
25030 2008-12-21  Bruno Haible  <bruno@clisp.org>
25031
25032         Update doc for HP-UX 11.11.
25033         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25034         in HP-UX version 11.00, not in all versions of HP-UX 11.
25035         * doc/posix-functions/fwide.texi: Likewise.
25036         * doc/posix-functions/fwprintf.texi: Likewise.
25037         * doc/posix-functions/fwscanf.texi: Likewise.
25038         * doc/posix-functions/inet_ntop.texi: Likewise.
25039         * doc/posix-functions/inet_pton.texi: Likewise.
25040         * doc/posix-functions/mbrlen.texi: Likewise.
25041         * doc/posix-functions/mbrtowc.texi: Likewise.
25042         * doc/posix-functions/mbsinit.texi: Likewise.
25043         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25044         * doc/posix-functions/swprintf.texi: Likewise.
25045         * doc/posix-functions/swscanf.texi: Likewise.
25046         * doc/posix-functions/towctrans.texi: Likewise.
25047         * doc/posix-functions/vfwprintf.texi: Likewise.
25048         * doc/posix-functions/vswprintf.texi: Likewise.
25049         * doc/posix-functions/vwprintf.texi: Likewise.
25050         * doc/posix-functions/wcrtomb.texi: Likewise.
25051         * doc/posix-functions/wcsrtombs.texi: Likewise.
25052         * doc/posix-functions/wcsstr.texi: Likewise.
25053         * doc/posix-functions/wctob.texi: Likewise.
25054         * doc/posix-functions/wctrans.texi: Likewise.
25055         * doc/posix-functions/wmemchr.texi: Likewise.
25056         * doc/posix-functions/wmemcmp.texi: Likewise.
25057         * doc/posix-functions/wmemcpy.texi: Likewise.
25058         * doc/posix-functions/wmemmove.texi: Likewise.
25059         * doc/posix-functions/wmemset.texi: Likewise.
25060         * doc/posix-functions/wprintf.texi: Likewise.
25061         * doc/posix-functions/wscanf.texi: Likewise.
25062
25063 2008-12-21  Bruno Haible  <bruno@clisp.org>
25064
25065         Work around a portability problem.
25066         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25067         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25068
25069 2008-12-20  Bruno Haible  <bruno@clisp.org>
25070
25071         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25072         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25073         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25075         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25076
25077         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25078         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25079         set.
25080         (GNULIB_defined_mbstate_t): New macro.
25081         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25082         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25083         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25084         reuses the system's mbrtowc function but works around the bugs.
25085         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25086         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25087         macros.
25088         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25089         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25090         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25091         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25092         REPLACE_MBSINIT if mbsinit needs to be overridden.
25093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25094         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25095         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25096         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25097         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25098         m4/locale-zh.m4.
25099         (Depends): Add mbsinit.
25100         * modules/mbsinit (Depends): Add mbrtowc.
25101         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25102
25103 2008-12-20  Bruno Haible  <bruno@clisp.org>
25104
25105         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25106         so that there are no conversion errors on AIX.
25107         * tests/test-mbsrtowcs.c (main): LIkewise.
25108
25109 2008-12-20  Bruno Haible  <bruno@clisp.org>
25110
25111         Work around wctob bug on Solaris <= 9.
25112         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25113         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25115         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25116         * modules/wctob (Files): Add m4/locale-fr.m4.
25117         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25118
25119 2008-12-20  Bruno Haible  <bruno@clisp.org>
25120
25121         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25122         /dev/null.
25123         * tests/test-select-in.sh: Likewise.
25124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25125
25126 2008-12-20  Bruno Haible  <bruno@clisp.org>
25127
25128         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25129         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25130         Cygwin 1.5.x.
25131
25132 2008-12-20  Bruno Haible  <bruno@clisp.org>
25133
25134         Ensure mbstate_t is defined on HP-UX 11.11.
25135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25136         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25137         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25138         AC_USE_SYSTEM_EXTENSIONS.
25139         * modules/fnmatch (Depends-on): Add extensions.
25140         * modules/mbrlen (Depends-on): Likewise.
25141         * modules/mbrtowc (Depends-on): Likewise.
25142         * modules/mbsinit (Depends-on): Likewise.
25143         * modules/mbsrtowcs (Depends-on): Likewise.
25144         * modules/mbswidth (Depends-on): Likewise.
25145         * modules/quotearg (Depends-on): Likewise.
25146         * modules/strftime (Depends-on): Likewise.
25147
25148 2008-12-20  Bruno Haible  <bruno@clisp.org>
25149
25150         Ensure wctob is declared on IRIX 6.5.
25151         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25152         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25153         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25155         of HAVE_WCTOB.
25156         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25157         HAVE_WCTOB.
25158         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25159
25160 2008-12-19  Bruno Haible  <bruno@clisp.org>
25161
25162         * modules/mbsrtowcs-tests: New file.
25163         * tests/test-mbsrtowcs1.sh: New file.
25164         * tests/test-mbsrtowcs2.sh: New file.
25165         * tests/test-mbsrtowcs3.sh: New file.
25166         * tests/test-mbsrtowcs4.sh: New file.
25167         * tests/test-mbsrtowcs.c: New file.
25168
25169         New module 'mbsrtowcs'.
25170         * lib/wchar.in.h (mbsrtowcs): New declaration.
25171         * lib/mbsrtowcs.c: New file.
25172         * m4/mbsrtowcs.m4: New file.
25173         * modules/mbsrtowcs: New file.
25174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25175         HAVE_MBSRTOWCS.
25176         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25177         HAVE_MBSRTOWCS.
25178         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25179
25180 2008-12-19  Bruno Haible  <bruno@clisp.org>
25181
25182         New module 'mbrlen'.
25183         * lib/wchar.in.h (mbrlen): New declaration.
25184         * lib/mbrlen.c: New file.
25185         * m4/mbrlen.m4: New file.
25186         * modules/mbrlen: New file.
25187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25188         HAVE_MBRLEN.
25189         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25190         HAVE_MBRLEN.
25191         * doc/posix-functions/mbrlen.texi: Document the new module.
25192
25193 2008-12-19  Bruno Haible  <bruno@clisp.org>
25194
25195         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25196         * modules/mbrtowc (Depends-on): Add verify.
25197         Suggested by Paul Eggert.
25198
25199 2008-12-18  Bruno Haible  <bruno@clisp.org>
25200
25201         * modules/mbsinit-tests: New file.
25202         * tests/test-mbsinit.sh: New file.
25203         * tests/test-mbsinit.c: New file.
25204
25205 2008-12-18  Bruno Haible  <bruno@clisp.org>
25206
25207         * modules/mbrtowc-tests: New file.
25208         * tests/test-mbrtowc1.sh: New file.
25209         * tests/test-mbrtowc2.sh: New file.
25210         * tests/test-mbrtowc3.sh: New file.
25211         * tests/test-mbrtowc4.sh: New file.
25212         * tests/test-mbrtowc.c: New file.
25213
25214         New module 'mbrtowc'.
25215         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25216         mbsinit and mbrtowc.
25217         (mbrtowc): New declaration.
25218         * lib/mbrtowc.c: New file.
25219         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25220         * modules/mbrtowc: New file.
25221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25222         HAVE_MBRTOWC.
25223         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25224         HAVE_MBRTOWC.
25225         * doc/posix-functions/mbrtowc.texi: Document the new module.
25226
25227 2008-12-18  Bruno Haible  <bruno@clisp.org>
25228
25229         New module 'wctob'.
25230         * lib/wchar.in.h (wctob): New declaration.
25231         * lib/wctob.c: New file.
25232         * m4/wctob.m4: New file.
25233         * modules/wctob: New file.
25234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25235         HAVE_WCTOB.
25236         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25237         * doc/posix-functions/wctob.texi: Document the new module.
25238
25239 2008-12-18  Bruno Haible  <bruno@clisp.org>
25240
25241         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25242         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25243
25244 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25245
25246         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25247         G. Christensen" <tgc@jupiterrise.com>.
25248
25249         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25250         G. Christensen" <tgc@jupiterrise.com>.
25251
25252         * lib/flock.c: Need to include string.h.  Reported by "Tom
25253         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25254         <ebb9@byu.net>.
25255
25256 2008-12-18  Bruno Haible  <bruno@clisp.org>
25257
25258         * m4/locale-ja.m4: New file, from GNU gettext.
25259
25260 2008-12-17  Bruno Haible  <bruno@clisp.org>
25261
25262         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25263         Suggested by Eric Blake.
25264
25265 2008-12-17  Bruno Haible  <bruno@clisp.org>
25266
25267         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25268
25269 2008-12-17  Bruno Haible  <bruno@clisp.org>
25270
25271         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25272         * modules/mbsinit (Depends-on): Add verify.
25273         Suggested by Paul Eggert.
25274
25275 2008-12-17  Bruno Haible  <bruno@clisp.org>
25276
25277         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25278         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25279         gl_FUNC_MBRTOWC.
25280         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25281         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25282         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25283         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25284         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25285         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25286         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25287         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25288         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25289         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25290         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25291         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25292         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25293         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25294         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25295         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25296         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25297         * modules/trim (configure.ac): Likewise.
25298
25299 2008-12-17  Bruno Haible  <bruno@clisp.org>
25300
25301         * modules/btowc-tests: New file.
25302         * tests/test-btowc1.sh: New file.
25303         * tests/test-btowc2.sh: New file.
25304         * tests/test-btowc.c: New file.
25305
25306         New module 'btowc'.
25307         * lib/wchar.in.h (btowc): New declaration.
25308         * lib/btowc.c: New file.
25309         * m4/btowc.m4: New file.
25310         * modules/btowc: New file.
25311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25312         HAVE_BTOWC.
25313         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25314         * doc/posix-functions/btowc.texi: Document the new module.
25315
25316 2008-12-17  Bruno Haible  <bruno@clisp.org>
25317
25318         New module 'mbsinit'.
25319         * lib/wchar.in.h (mbsinit): New declaration.
25320         * lib/mbsinit.c: New file.
25321         * m4/mbsinit.m4: New file.
25322         * modules/mbsinit: New file.
25323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25324         HAVE_MBSINIT.
25325         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25326         HAVE_MBSINIT.
25327         * doc/posix-functions/mbsinit.texi: Document the new module.
25328
25329 2008-12-16  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/unistd.in.h: Add comment.
25332         * tests/test-environ.c: Don't include <stdlib.h>.
25333
25334 2008-12-16  Bruno Haible  <bruno@clisp.org>
25335
25336         * lib/parse-duration.h (parse_duration): Document return value
25337         convention.
25338         * lib/parse-duration.c: Include specification header first. Add
25339         comments.
25340         (_): Remove macro.
25341         (parse_year_month_day, parse_hour_minute_second): Move side effects
25342         outside of strchr call.
25343         (parse_non_iso8601): Move side effects outside of isspace call.
25344         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25345         call.
25346
25347 2008-12-16  Bruno Haible  <bruno@clisp.org>
25348
25349         * tests/test-parse-duration.sh: Produce no output when the test
25350         succeeds.
25351
25352 2008-12-16  Bruno Haible  <bruno@clisp.org>
25353
25354         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25355         expressions.
25356
25357 2008-12-15  Bruno Haible  <bruno@clisp.org>
25358
25359         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25360         * doc/glibc-functions/flistxattr.texi: Likewise.
25361         * doc/glibc-functions/fopencookie.texi: Likewise.
25362         * doc/glibc-functions/fremovexattr.texi: Likewise.
25363         * doc/glibc-functions/fsetxattr.texi: Likewise.
25364         * doc/glibc-functions/getxattr.texi: Likewise.
25365         * doc/glibc-functions/lgetxattr.texi: Likewise.
25366         * doc/glibc-functions/listxattr.texi: Likewise.
25367         * doc/glibc-functions/llistxattr.texi: Likewise.
25368         * doc/glibc-functions/lremovexattr.texi: Likewise.
25369         * doc/glibc-functions/lsetxattr.texi: Likewise.
25370         * doc/glibc-functions/removexattr.texi: Likewise.
25371         * doc/glibc-functions/setxattr.texi: Likewise.
25372         * doc/posix-functions/open_memstream.texi: Likewise.
25373
25374 2008-12-15  Eric Blake  <ebb9@byu.net>
25375
25376         Update doc for cygwin 1.7.
25377         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25378         functions.
25379         * doc/posix-functions/fchmodat.texi: Likewise.
25380         * doc/posix-functions/fchownat.texi: Likewise.
25381         * doc/posix-functions/fdopendir.texi: Likewise.
25382         * doc/posix-functions/fmemopen.texi: Likewise.
25383         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25384         * doc/posix-functions/fstatat.texi: Likewise.
25385         * doc/posix-functions/futimens.texi: Likewise.
25386         * doc/posix-functions/gai_strerror.texi: Likewise.
25387         * doc/posix-functions/getaddrinfo.texi: Likewise.
25388         * doc/posix-functions/getnameinfo.texi: Likewise.
25389         * doc/posix-functions/if_freenameindex.texi: Likewise.
25390         * doc/posix-functions/if_indextoname.texi: Likewise.
25391         * doc/posix-functions/if_nameindex.texi: Likewise.
25392         * doc/posix-functions/if_nametoindex.texi: Likewise.
25393         * doc/posix-functions/insque.texi: Likewise.
25394         * doc/posix-functions/linkat.texi: Likewise.
25395         * doc/posix-functions/llrint.texi: Likewise.
25396         * doc/posix-functions/llrintf.texi: Likewise.
25397         * doc/posix-functions/llrintl.texi: Likewise.
25398         * doc/posix-functions/lockf.texi: Likewise.
25399         * doc/posix-functions/lrintl.texi: Likewise.
25400         * doc/posix-functions/mkdirat.texi: Likewise.
25401         * doc/posix-functions/mkfifoat.texi: Likewise.
25402         * doc/posix-functions/mknodat.texi: Likewise.
25403         * doc/posix-functions/mq_close.texi: Likewise.
25404         * doc/posix-functions/mq_getattr.texi: Likewise.
25405         * doc/posix-functions/mq_notify.texi: Likewise.
25406         * doc/posix-functions/mq_open.texi: Likewise.
25407         * doc/posix-functions/mq_receive.texi: Likewise.
25408         * doc/posix-functions/mq_send.texi: Likewise.
25409         * doc/posix-functions/mq_setattr.texi: Likewise.
25410         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25411         * doc/posix-functions/mq_timedsend.texi: Likewise.
25412         * doc/posix-functions/mq_unlink.texi: Likewise.
25413         * doc/posix-functions/open_memstream.texi: Likewise.
25414         * doc/posix-functions/openat.texi: Likewise.
25415         * doc/posix-functions/posix_fadvise.texi: Likewise.
25416         * doc/posix-functions/posix_fallocate.texi: Likewise.
25417         * doc/posix-functions/posix_madvise.texi: Likewise.
25418         * doc/posix-functions/posix_memalign.texi: Likewise.
25419         * doc/posix-functions/posix_openpt.texi: Likewise.
25420         * doc/posix-functions/readlinkat.texi: Likewise.
25421         * doc/posix-functions/remque.texi: Likewise.
25422         * doc/posix-functions/renameat.texi: Likewise.
25423         * doc/posix-functions/rintl.texi: Likewise.
25424         * doc/posix-functions/sem_unlink.texi: Likewise.
25425         * doc/posix-functions/shm_open.texi: Likewise.
25426         * doc/posix-functions/shm_unlink.texi: Likewise.
25427         * doc/posix-functions/signgam.texi: Likewise.
25428         * doc/posix-functions/sigset.texi: Likewise.
25429         * doc/posix-functions/stpcpy.texi: Likewise.
25430         * doc/posix-functions/stpncpy.texi: Likewise.
25431         * doc/posix-functions/strerror.texi: Likewise.
25432         * doc/posix-functions/strtod.texi: Likewise.
25433         * doc/posix-functions/symlinkat.texi: Likewise.
25434         * doc/posix-functions/unlinkat.texi: Likewise.
25435         * doc/posix-functions/utimensat.texi: Likewise.
25436         * doc/glibc-functions/bindresvport.texi: Likewise.
25437         * doc/glibc-functions/dn_expand.texi: Likewise.
25438         * doc/glibc-functions/exp10.texi: Likewise.
25439         * doc/glibc-functions/exp10f.texi: Likewise.
25440         * doc/glibc-functions/fgetxattr.texi: Likewise.
25441         * doc/glibc-functions/flistxattr.texi: Likewise.
25442         * doc/glibc-functions/fopencookie.texi: Likewise.
25443         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25444         * doc/glibc-functions/fremovexattr.texi: Likewise.
25445         * doc/glibc-functions/fsetxattr.texi: Likewise.
25446         * doc/glibc-functions/getifaddrs.texi: Likewise.
25447         * doc/glibc-functions/getxattr.texi: Likewise.
25448         * doc/glibc-functions/lgetxattr.texi: Likewise.
25449         * doc/glibc-functions/listxattr.texi: Likewise.
25450         * doc/glibc-functions/llistxattr.texi: Likewise.
25451         * doc/glibc-functions/lremovexattr.texi: Likewise.
25452         * doc/glibc-functions/lsetxattr.texi: Likewise.
25453         * doc/glibc-functions/pow10.texi: Likewise.
25454         * doc/glibc-functions/pow10f.texi: Likewise.
25455         * doc/glibc-functions/rcmd_af.texi: Likewise.
25456         * doc/glibc-functions/removexattr.texi: Likewise.
25457         * doc/glibc-functions/res_init.texi: Likewise.
25458         * doc/glibc-functions/res_mkquery.texi: Likewise.
25459         * doc/glibc-functions/res_query.texi: Likewise.
25460         * doc/glibc-functions/res_querydomain.texi: Likewise.
25461         * doc/glibc-functions/res_send.texi: Likewise.
25462         * doc/glibc-functions/rresvport_af.texi: Likewise.
25463         * doc/glibc-functions/setxattr.texi: Likewise.
25464         * doc/glibc-functions/strcasestr.texi: Likewise.
25465
25466 2008-12-15  Bruno Haible  <bruno@clisp.org>
25467
25468         Fix compilation error on OSF/1 4.0.
25469         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25470         <sys/time.h>, simply delegate to the system header.
25471         Reported by Daniel Richard G. <oss@teragram.com>.
25472
25473 2008-12-15  Bruno Haible  <bruno@clisp.org>
25474
25475         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25476         * doc/posix-functions/fchmodat.texi: Likewise.
25477         * doc/posix-functions/fchownat.texi: Likewise.
25478         * doc/posix-functions/fdopendir.texi: Likewise.
25479         * doc/posix-functions/fstatat.texi: Likewise.
25480         * doc/posix-functions/mkdirat.texi: Likewise.
25481         * doc/posix-functions/unlinkat.texi: Likewise.
25482
25483 2008-12-14  Bruno Haible  <bruno@clisp.org>
25484
25485         Update doc for POSIX:2008.
25486         * doc/posix-functions/faccessat.texi: New file.
25487         * doc/posix-functions/fchmodat.texi: New file.
25488         * doc/posix-functions/fchownat.texi: New file.
25489         * doc/posix-functions/fdopendir.texi: New file.
25490         * doc/posix-functions/fstatat.texi: New file.
25491         * doc/posix-functions/futimens.texi: New file.
25492         * doc/posix-functions/linkat.texi: New file.
25493         * doc/posix-functions/mkdirat.texi: New file.
25494         * doc/posix-functions/mkfifoat.texi: New file.
25495         * doc/posix-functions/mknodat.texi: New file.
25496         * doc/posix-functions/open_wmemstream.texi: New file.
25497         * doc/posix-functions/openat.texi: New file.
25498         * doc/posix-functions/psiginfo.texi: New file.
25499         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25500         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25501         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25502         * doc/posix-functions/readlinkat.texi: New file.
25503         * doc/posix-functions/renameat.texi: New file.
25504         * doc/posix-functions/strerror_l.texi: New file.
25505         * doc/posix-functions/symlinkat.texi: New file.
25506         * doc/posix-functions/unlinkat.texi: New file.
25507         * doc/posix-functions/utimensat.texi: New file.
25508         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25509
25510 2008-12-14  Bruno Haible  <bruno@clisp.org>
25511
25512         Update doc for POSIX:2008.
25513         * doc/posix-functions/alphasort.texi: Renamed from
25514         doc/glibc-functions/alphasort.texi.
25515         * doc/posix-functions/dirfd.texi: Renamed from
25516         doc/glibc-functions/dirfd.texi.
25517         * doc/posix-functions/dprintf.texi: Renamed from
25518         doc/glibc-functions/dprintf.texi.
25519         * doc/posix-functions/duplocale.texi: Renamed from
25520         doc/glibc-functions/duplocale.texi.
25521         * doc/posix-functions/fexecve.texi: Renamed from
25522         doc/glibc-functions/fexecve.texi.
25523         * doc/posix-functions/fmemopen.texi: Renamed from
25524         doc/glibc-functions/fmemopen.texi.
25525         * doc/posix-functions/freelocale.texi: Renamed from
25526         doc/glibc-functions/freelocale.texi.
25527         * doc/posix-functions/getdate_err.texi: Renamed from
25528         doc/glibc-functions/getdate_err.texi.
25529         * doc/posix-functions/isalnum_l.texi: Renamed from
25530         doc/glibc-functions/isalnum_l.texi.
25531         * doc/posix-functions/isalpha_l.texi: Renamed from
25532         doc/glibc-functions/isalpha_l.texi.
25533         * doc/posix-functions/isblank_l.texi: Renamed from
25534         doc/glibc-functions/isblank_l.texi.
25535         * doc/posix-functions/iscntrl_l.texi: Renamed from
25536         doc/glibc-functions/iscntrl_l.texi.
25537         * doc/posix-functions/isdigit_l.texi: Renamed from
25538         doc/glibc-functions/isdigit_l.texi.
25539         * doc/posix-functions/isgraph_l.texi: Renamed from
25540         doc/glibc-functions/isgraph_l.texi.
25541         * doc/posix-functions/islower_l.texi: Renamed from
25542         doc/glibc-functions/islower_l.texi.
25543         * doc/posix-functions/isprint_l.texi: Renamed from
25544         doc/glibc-functions/isprint_l.texi.
25545         * doc/posix-functions/ispunct_l.texi: Renamed from
25546         doc/glibc-functions/ispunct_l.texi.
25547         * doc/posix-functions/isspace_l.texi: Renamed from
25548         doc/glibc-functions/isspace_l.texi.
25549         * doc/posix-functions/isupper_l.texi: Renamed from
25550         doc/glibc-functions/isupper_l.texi.
25551         * doc/posix-functions/iswalnum_l.texi: Renamed from
25552         doc/glibc-functions/iswalnum_l.texi.
25553         * doc/posix-functions/iswalpha_l.texi: Renamed from
25554         doc/glibc-functions/iswalpha_l.texi.
25555         * doc/posix-functions/iswblank_l.texi: Renamed from
25556         doc/glibc-functions/iswblank_l.texi.
25557         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25558         doc/glibc-functions/iswcntrl_l.texi.
25559         * doc/posix-functions/iswctype_l.texi: Renamed from
25560         doc/glibc-functions/iswctype_l.texi.
25561         * doc/posix-functions/iswdigit_l.texi: Renamed from
25562         doc/glibc-functions/iswdigit_l.texi.
25563         * doc/posix-functions/iswgraph_l.texi: Renamed from
25564         doc/glibc-functions/iswgraph_l.texi.
25565         * doc/posix-functions/iswlower_l.texi: Renamed from
25566         doc/glibc-functions/iswlower_l.texi.
25567         * doc/posix-functions/iswprint_l.texi: Renamed from
25568         doc/glibc-functions/iswprint_l.texi.
25569         * doc/posix-functions/iswpunct_l.texi: Renamed from
25570         doc/glibc-functions/iswpunct_l.texi.
25571         * doc/posix-functions/iswspace_l.texi: Renamed from
25572         doc/glibc-functions/iswspace_l.texi.
25573         * doc/posix-functions/iswupper_l.texi: Renamed from
25574         doc/glibc-functions/iswupper_l.texi.
25575         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25576         doc/glibc-functions/iswxdigit_l.texi.
25577         * doc/posix-functions/isxdigit_l.texi: Renamed from
25578         doc/glibc-functions/isxdigit_l.texi.
25579         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25580         doc/glibc-functions/mbsnrtowcs.texi.
25581         * doc/posix-functions/mkdtemp.texi: Renamed from
25582         doc/glibc-functions/mkdtemp.texi.
25583         * doc/posix-functions/newlocale.texi: Renamed from
25584         doc/glibc-functions/newlocale.texi.
25585         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25586         doc/glibc-functions/nl_langinfo_l.texi.
25587         * doc/posix-functions/open_memstream.texi: Renamed from
25588         doc/glibc-functions/open_memstream.texi.
25589         * doc/posix-functions/opterr.texi: Renamed from
25590         doc/glibc-functions/opterr.texi.
25591         * doc/posix-functions/optind.texi: Renamed from
25592         doc/glibc-functions/optind.texi.
25593         * doc/posix-functions/optopt.texi: Renamed from
25594         doc/glibc-functions/optopt.texi.
25595         * doc/posix-functions/psignal.texi: Renamed from
25596         doc/glibc-functions/psignal.texi.
25597         * doc/posix-functions/scandir.texi: Renamed from
25598         doc/glibc-functions/scandir.texi.
25599         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25600         doc/glibc-functions/sched_get_priority_min.texi.
25601         * doc/posix-functions/signgam.texi: Renamed from
25602         doc/glibc-functions/signgam.texi.
25603         * doc/posix-functions/stpcpy.texi: Renamed from
25604         doc/glibc-functions/stpcpy.texi.
25605         * doc/posix-functions/stpncpy.texi: Renamed from
25606         doc/glibc-functions/stpncpy.texi.
25607         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25608         doc/glibc-functions/strcasecmp_l.texi.
25609         * doc/posix-functions/strcoll_l.texi: Renamed from
25610         doc/glibc-functions/strcoll_l.texi.
25611         * doc/posix-functions/strfmon_l.texi: Renamed from
25612         doc/glibc-functions/strfmon_l.texi.
25613         * doc/posix-functions/strftime_l.texi: Renamed from
25614         doc/glibc-functions/strftime_l.texi.
25615         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25616         doc/glibc-functions/strncasecmp_l.texi.
25617         * doc/posix-functions/strndup.texi: Renamed from
25618         doc/glibc-functions/strndup.texi.
25619         * doc/posix-functions/strnlen.texi: Renamed from
25620         doc/glibc-functions/strnlen.texi.
25621         * doc/posix-functions/strsignal.texi: Renamed from
25622         doc/glibc-functions/strsignal.texi.
25623         * doc/posix-functions/strxfrm_l.texi: Renamed from
25624         doc/glibc-functions/strxfrm_l.texi.
25625         * doc/posix-functions/timer_gettime.texi: Renamed from
25626         doc/glibc-functions/timer_gettime.texi.
25627         * doc/posix-functions/tolower_l.texi: Renamed from
25628         doc/glibc-functions/tolower_l.texi.
25629         * doc/posix-functions/toupper_l.texi: Renamed from
25630         doc/glibc-functions/toupper_l.texi.
25631         * doc/posix-functions/towctrans_l.texi: Renamed from
25632         doc/glibc-functions/towctrans_l.texi.
25633         * doc/posix-functions/towlower_l.texi: Renamed from
25634         doc/glibc-functions/towlower_l.texi.
25635         * doc/posix-functions/towupper_l.texi: Renamed from
25636         doc/glibc-functions/towupper_l.texi.
25637         * doc/posix-functions/uselocale.texi: Renamed from
25638         doc/glibc-functions/uselocale.texi.
25639         * doc/posix-functions/vdprintf.texi: Renamed from
25640         doc/glibc-functions/vdprintf.texi.
25641         * doc/posix-functions/wcpcpy.texi:
25642         Renamed from doc/glibc-functions/wcpcpy.texi.
25643         * doc/posix-functions/wcpncpy.texi: Renamed from
25644         doc/glibc-functions/wcpncpy.texi.
25645         * doc/posix-functions/wcscasecmp.texi: Renamed from
25646         doc/glibc-functions/wcscasecmp.texi.
25647         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25648         doc/glibc-functions/wcscasecmp_l.texi.
25649         * doc/posix-functions/wcscoll_l.texi: Renamed from
25650         doc/glibc-functions/wcscoll_l.texi.
25651         * doc/posix-functions/wcsdup.texi: Renamed from
25652         doc/glibc-functions/wcsdup.texi.
25653         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25654         doc/glibc-functions/wcsncasecmp.texi.
25655         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25656         doc/glibc-functions/wcsncasecmp_l.texi.
25657         * doc/posix-functions/wcsnlen.texi: Renamed from
25658         doc/glibc-functions/wcsnlen.texi.
25659         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25660         doc/glibc-functions/wcsnrtombs.texi.
25661         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25662         doc/glibc-functions/wcsxfrm_l.texi.
25663         * doc/posix-functions/wctrans_l.texi: Renamed from
25664         doc/glibc-functions/wctrans_l.texi.
25665         * doc/posix-functions/wctype_l.texi: Renamed from
25666         doc/glibc-functions/wctype_l.texi.
25667         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25668         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25669         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25670         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25671         these subsections.
25672         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25673         Remove sections.
25674
25675 2008-12-14  Bruno Haible  <bruno@clisp.org>
25676
25677         Update doc for POSIX:2008.
25678         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25679
25680 2008-12-14  Bruno Haible  <bruno@clisp.org>
25681
25682         Update doc for POSIX:2008.
25683         * doc/pastposix-functions/bcmp.texi: Renamed from
25684         doc/posix-functions/bcmp.texi.
25685         * doc/pastposix-functions/bcopy.texi: Renamed from
25686         doc/posix-functions/bcopy.texi.
25687         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25688         doc/posix-functions/bsd_signal.texi.
25689         * doc/pastposix-functions/bzero.texi: Renamed from
25690         doc/posix-functions/bzero.texi.
25691         * doc/pastposix-functions/ecvt.texi: Renamed from
25692         doc/posix-functions/ecvt.texi.
25693         * doc/pastposix-functions/fcvt.texi: Renamed from
25694         doc/posix-functions/fcvt.texi.
25695         * doc/pastposix-functions/ftime.texi: Renamed from
25696         doc/posix-functions/ftime.texi.
25697         * doc/pastposix-functions/gcvt.texi: Renamed from
25698         doc/posix-functions/gcvt.texi.
25699         * doc/pastposix-functions/getcontext.texi: Renamed from
25700         doc/posix-functions/getcontext.texi.
25701         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25702         doc/posix-functions/gethostbyaddr.texi.
25703         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25704         doc/posix-functions/gethostbyname.texi.
25705         * doc/pastposix-functions/getwd.texi: Renamed from
25706         doc/posix-functions/getwd.texi.
25707         * doc/pastposix-functions/h_errno.texi: Renamed from
25708         doc/posix-functions/h_errno.texi.
25709         * doc/pastposix-functions/index.texi: Renamed from
25710         doc/posix-functions/index.texi.
25711         * doc/pastposix-functions/makecontext.texi: Renamed from
25712         doc/posix-functions/makecontext.texi.
25713         * doc/pastposix-functions/mktemp.texi: Renamed from
25714         doc/posix-functions/mktemp.texi.
25715         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25716         doc/posix-functions/pthread_attr_getstackaddr.texi.
25717         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25718         doc/posix-functions/pthread_attr_setstackaddr.texi.
25719         * doc/pastposix-functions/rindex.texi: Renamed from
25720         doc/posix-functions/rindex.texi.
25721         * doc/pastposix-functions/scalb.texi: Renamed from
25722         doc/posix-functions/scalb.texi.
25723         * doc/pastposix-functions/setcontext.texi: Renamed from
25724         doc/posix-functions/setcontext.texi.
25725         * doc/pastposix-functions/swapcontext.texi: Renamed from
25726         doc/posix-functions/swapcontext.texi.
25727         * doc/pastposix-functions/ualarm.texi: Renamed from
25728         doc/posix-functions/ualarm.texi.
25729         * doc/pastposix-functions/usleep.texi: Renamed from
25730         doc/posix-functions/usleep.texi.
25731         * doc/pastposix-functions/vfork.texi: Renamed from
25732         doc/posix-functions/vfork.texi.
25733         * doc/pastposix-functions/wcswcs.texi: Renamed from
25734         doc/posix-functions/wcswcs.texi.
25735         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25736         (Function Substitutes): Update.
25737
25738 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25739
25740         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25741         m4/strerror.m4.
25742
25743 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25744             Bruno Haible  <bruno@clisp.org>
25745
25746         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25747
25748 2008-12-13  Bruno Haible  <bruno@clisp.org>
25749
25750         * modules/strtoull (Depends-on): Remove unistd.
25751
25752 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25753
25754         * modules/strtoull (Depends-on): Add stdlib.
25755
25756 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25757
25758         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25759
25760 2008-12-10  Jim Meyering  <meyering@redhat.com>
25761
25762         gl_ASSERT: don't say assertions are disabled when they're not
25763         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25764         "checking whether to enable assertions... no", when they are in
25765         fact enabled.  This is solely a bug in the output of configure.
25766         In spite of saying "no", NDEBUG was not defined in that case.
25767         Also, as noted by Eric Blake, leave assertions enabled upon
25768         --enable-assert=INVALID.
25769
25770 2008-12-10  Bruno Haible  <bruno@clisp.org>
25771
25772         Change MODULES.html to refer to POSIX:2008 where possible.
25773         * MODULES.html.sh (POSIX2008_URL): New variable.
25774         (posix_headers): Remove sys/timeb, ucontext.
25775         (posix2001_headers): New variable.
25776         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25777         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25778         index, makecontext, mktemp, pthread_attr_getstackaddr,
25779         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25780         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25781         (posix2001_functions): New variable.
25782         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25783         otherwise.
25784
25785 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25786
25787         add missing include to parse-duration.c
25788         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25789         * modules/parse-duration (Depends-on): Add xalloc.
25790
25791         fix sed script reading maint.mk
25792         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25793         (syntax-check-rules): Use it.
25794
25795 2008-12-09  Bruno Haible  <bruno@clisp.org>
25796
25797         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25798         MacOS X 10.4/PowerPC.
25799         Reported by Simon Josefsson.
25800
25801 2008-12-08  Jim Meyering  <meyering@redhat.com>
25802
25803         work around mingw's lack of some S_IF definitions
25804         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25805         Reported by Simon Josefsson.
25806
25807 2008-12-08  Bruno Haible  <bruno@clisp.org>
25808
25809         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25810         applied to variables. Needed on MacOS X 10.4/PowerPC.
25811         Reported by Simon Josefsson.
25812
25813 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25814         and Eric Blake  <ebb9@byu.net>
25815
25816         assert: honor --enable-assert
25817         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25818         order to honor --enable-assert, rather than treating it as a
25819         synonym for --disable-assert.
25820
25821 2008-12-08  Jim Meyering  <meyering@redhat.com>
25822
25823         * lib/posixtm.c: Remove now-useless declaration of mktime.
25824
25825         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25826
25827 2008-12-07  Bruno Haible  <bruno@clisp.org>
25828
25829         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25830         test_once): Mark functions as static.
25831         * tests/test-tls.c (test_tls): Likewise.
25832
25833 2008-12-07  Bruno Haible  <bruno@clisp.org>
25834
25835         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25836         iconv_register_autodetect.
25837
25838 2008-12-07  Jim Meyering  <meyering@redhat.com>
25839
25840         posixtm.c: avoid a warning
25841         * lib/posixtm.c (posixtime): Don't initialize tm0.
25842         It's no longer needed to placate gcc4's -Wuninitialized,
25843         and the attempt to placate would elicit a new warning.
25844
25845         unicodeio.c: mark unused parameters
25846         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25847         (fallback_failure_callback): Likewise.
25848
25849 2008-12-07  Bruno Haible  <bruno@clisp.org>
25850
25851         * gnulib-tool (func_create_testdir): When building the tests
25852         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25853         Reported by Simon Josefsson.
25854
25855 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25856
25857         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25858
25859 2008-12-06  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25862         Suggested by Eric Blake.
25863
25864 2008-12-06  Bruno Haible  <bruno@clisp.org>
25865
25866         Fix a c-stack test failure on MacOS X.
25867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25868         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25869         handler for SIGBUS as well.
25870         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25871         install a signal handler for SIGBUS as well.
25872         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25873
25874 2008-12-06  Bruno Haible  <bruno@clisp.org>
25875
25876         Advocacy documentation.
25877         * doc/gnulib-intro.texi (Benefits): New section.
25878         * doc/gnulib.texi: Update.
25879
25880 2008-12-06  Bruno Haible  <bruno@clisp.org>
25881
25882         Document the 'manywarnings' module.
25883         * doc/manywarnings.texi: New file.
25884         * doc/gnulib.texi: Include it.
25885
25886 2008-12-05  Eric Blake  <ebb9@byu.net>
25887
25888         tests: silence some gcc warnings
25889         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25890         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25891         type mismatches.
25892
25893 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25894             Bruno Haible  <bruno@clisp.org>
25895
25896         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25897
25898 2008-11-29  Jim Meyering  <meyering@redhat.com>
25899
25900         unicodeio.c: mark unused parameters
25901         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25902         (fallback_failure_callback): Likewise.
25903
25904         fts: fix a thinko
25905         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25906         (set_stat_type): Return S_IF*-valued "type" directly.
25907         Prompted by James Youngman's spotting a related bug.
25908         Confirmed by further testing through find.
25909
25910         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25911         * lib/fts.c (D_TYPE): Define.
25912         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25913         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25914         (s_ifmt_shift_bits): New function.
25915         (set_stat_type): New function.
25916         (fts_build): When not calling fts_stat, call set_stat_type
25917         to propagate dirent.d_type info to fts_read caller.
25918         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25919         fts_statp->st_mode type information may be valid.
25920
25921 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25922
25923         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25924         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25925         <sds@gnu.org>.
25926
25927 2008-11-20  Bruno Haible  <bruno@clisp.org>
25928
25929         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25930         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25931         INCLUDE_NEXT.
25932         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25933         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25934         * modules/math (Makefile.am): Substitute
25935         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25936         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25937
25938 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25939             Bruno Haible  <bruno@clisp.org>
25940
25941         * lib/stdint.in.h: Define all type macros so that their expansion is
25942         a single typedef'ed token. Fixes a compilation failure in Boost which
25943         does "using ::int8_t;".
25944
25945 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25946
25947         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25948         gl_MANYWARN_ALL_GCC.
25949         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25950         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25951         * modules/manywarnings: New file.
25952         * MODULES.html.sh: Mention manywarnings module.
25953
25954 2008-11-18  Bruno Haible  <bruno@clisp.org>
25955
25956         * doc/gnulib-tool.texi (Unit tests): New section.
25957
25958 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25959
25960         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25961         paths like 'lib/po/foo.po'.
25962
25963 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25964
25965         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25966         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25967
25968 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25969
25970         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25971         parameter works.
25972
25973 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25974
25975         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25976
25977 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25978
25979         * modules/parse-duration-tests: New file.
25980         * tests/test-parse-duration.sh: New file.
25981         * tests/test-parse-duration.c: New file.
25982
25983         New module 'parse-duration'.
25984         * lib/parse-duration.h: New file.
25985         * lib/parse-duration.c: New file.
25986         * modules/parse-duration: New file.
25987
25988 2008-11-17  Bruno Haible  <bruno@clisp.org>
25989
25990         * tests/test-select-out.sh: Comment out the first pipe test.
25991         Reported by Simon Josefsson.
25992
25993 2008-11-17  Bruno Haible  <bruno@clisp.org>
25994
25995         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25997         gl_HOSTENT.
25998
25999 2008-11-17  Bruno Haible  <bruno@clisp.org>
26000
26001         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26002         -lnetwork and -lnet. Needed for Haiku and BeOS.
26003
26004 2008-11-16  Bruno Haible  <bruno@clisp.org>
26005
26006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26007
26008 2008-11-16  Bruno Haible  <bruno@clisp.org>
26009
26010         Avoid test failure on Haiku.
26011         * tests/test-fsync.c: Include <errno.h>.
26012         (main): Don't require that fsync (0) fails.
26013
26014 2008-11-15  Bruno Haible  <bruno@clisp.org>
26015
26016         New module 'hostent'.
26017         * modules/hostent: New file.
26018         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26019
26020 2008-11-15  Bruno Haible  <bruno@clisp.org>
26021
26022         New module 'servent'.
26023         * modules/servent: New file.
26024         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26025
26026 2008-11-15  Bruno Haible  <bruno@clisp.org>
26027
26028         Avoid generating same test program with two different rules.
26029         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26030         test-frexp to test-frexp-nolibm.
26031         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26032         test-frexpl to test-frexpl-nolibm.
26033
26034 2008-11-15  Bruno Haible  <bruno@clisp.org>
26035
26036         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26037         $(FREXPL_LIBM).
26038
26039 2008-11-15  Bruno Haible  <bruno@clisp.org>
26040
26041         * lib/netdb.in.h: Activate the definitions also when the system's
26042         <netdb.h> has 'struct addrinfo'.
26043         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26044         EAI_OVERFLOW or AI_NUMERICSERV.
26045         * doc/posix-headers/netdb.texi: Document the problem.
26046
26047 2008-11-15  Bruno Haible  <bruno@clisp.org>
26048
26049         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26050
26051         Make the 'sched' module work on platforms where <sched.h> exists but
26052         is incomplete (such as Haiku).
26053         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26054         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26055         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26056         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26057         HAVE_STRUCT_SCHED_PARAM.
26058         * modules/sched (Depends-on): Add include_next.
26059         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26060         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26061         * doc/posix-headers/sched.texi: Document the issue.
26062
26063 2008-11-13  Jim Meyering  <meyering@redhat.com>
26064
26065         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26066         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26067         test would fail due to the difference in the Report bugs to ...
26068         line.  The expected address is empty, "<>", while the actual
26069         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26070
26071 2008-11-12  Bruno Haible  <bruno@clisp.org>
26072
26073         lstat: don't compile lstat.c on systems lacking lstat
26074         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26075         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26076         Reported by Daniel P. Berrange via Jim Meyering.
26077
26078 2008-11-12  Jim Meyering  <meyering@redhat.com>
26079
26080         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26081
26082 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26083
26084         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26085         instead.
26086
26087 2008-11-12  Bruno Haible  <bruno@clisp.org>
26088
26089         * lib/unicodeio.c: Include unistr.h.
26090         (utf8_wctomb): Remove function.
26091         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26092
26093 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26094
26095         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26096         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26097         <bruno@clisp.org>.
26098         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26099
26100 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26101
26102         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26103         * doc/gnulib.texi: Add section for warnings.
26104
26105 2008-11-11  Bruno Haible  <bruno@clisp.org>
26106
26107         * lib/sockets.h: Add a comment.
26108
26109 2008-11-11  Karl Berry  <karl@gnu.org>
26110
26111         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26112
26113 2008-11-11  Eric Blake  <ebb9@byu.net>
26114
26115         fdl.texi: avoid git symlinks
26116         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26117
26118 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26119
26120         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26121
26122 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26123
26124         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26125         (gl_WARN_ADD): Substitute $2 if literal.
26126
26127 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26128
26129         * m4/warning.m4: Remove.
26130
26131 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26132
26133         * m4/warnings.m4: Almost complete rewrite. :-)
26134
26135 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26136
26137         * modules/warnings: New module.
26138         * m4/warnings.m4: New file.
26139         * MODULES.html.sh: Mention warnings module.
26140         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26141         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26142
26143 2008-11-10  Eric Blake  <ebb9@byu.net>
26144
26145         fdl.texi: make a symlink to the latest version
26146         * doc/standards.texi: Revert today's earlier change.
26147         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26148         * doc/fdl.texi: ...and replace this with a symlink to the newer
26149         fdl-1.3.texi.
26150
26151 2008-11-10  Bruno Haible  <bruno@clisp.org>
26152
26153         * tests/test-select-fd.c (main): Accept the result file name as fourth
26154         argument.
26155         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26156         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26157
26158 2008-11-10  Bruno Haible  <bruno@clisp.org>
26159
26160         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26161         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26162         as autoconf-substituted macros.
26163         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26165         gl_NETDB_H_DEFAULTS. Set these variables.
26166         * modules/netdb (Makefile.am): Substitute these variables.
26167
26168 2008-11-10  Eric Blake  <ebb9@byu.net>
26169
26170         standards.texi: include correct file for FDL 1.3
26171         * doc/standards.texi (GNU Free Documentation License): Change
26172         include file to pull in FDL 1.3, not 1.2.
26173
26174         fdl.texi: revert accidental change to license
26175         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26176
26177 2008-11-10  Bruno Haible  <bruno@clisp.org>
26178
26179         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26180         cross-compiling guesses also when the native compile gives no result.
26181
26182 2008-11-10  Bruno Haible  <bruno@clisp.org>
26183
26184         * lib/spawni.c (__spawni): Force variable into the stack.
26185
26186 2008-11-10  Bruno Haible  <bruno@clisp.org>
26187
26188         Add support for Haiku.
26189         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26190         glibc and BeOS, but also on Haiku.
26191         * lib/fpurge.c (fpurge): Likewise.
26192         * lib/freadable.c (freadable): Likewise.
26193         * lib/freadahead.c (freadahead): Likewise.
26194         * lib/freading.c (freading): Likewise.
26195         * lib/freadptr.c (freadptr): Likewise.
26196         * lib/freadseek.c (freadptrinc): Likewise.
26197         * lib/fseeko.c (rpl_fseeko): Likewise.
26198         * lib/fseterr.c (fseterr): Likewise.
26199         * lib/fwritable.c (fwritable): Likewise.
26200         * lib/fwriting.c (fwriting): Likewise.
26201         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26202
26203 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26204
26205         * lib/config.charset: Treat Haiku like BeOS.
26206
26207 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26208
26209         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26210         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26211
26212 2008-11-08  Bruno Haible  <bruno@clisp.org>
26213
26214         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26215         AC_CACHE_CHECK.
26216
26217 2008-11-08  Bruno Haible  <bruno@clisp.org>
26218
26219         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26220
26221 2008-11-08  Bruno Haible  <bruno@clisp.org>
26222
26223         * tests/test-select-fd.c: New file.
26224         * tests/test-select-in.sh: New file.
26225         * tests/test-select-out.sh: New file.
26226         * tests/test-select-stdin.c: New file.
26227         * modules/select-tests (Files): Add the new files.
26228         (Depends-on): Add gettimeofday.
26229         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26230         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26231         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26232
26233 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26234             Bruno Haible  <bruno@clisp.org>
26235
26236         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26237
26238 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26239
26240         * build-aux/pmccabe2html: Added support for C++ source files.
26241
26242 2008-11-05  Ben Pfaff  <blp@gnu.org>
26243
26244         Fix lib/close.c build on Windows.
26245         * modules/close (Files): Add lib/w32sock.h.
26246
26247 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26248
26249         Accept Bison's NEWS format.
26250         * build-aux/announce-gen (print_news_deltas): Tweak
26251         $re_prefix.
26252
26253 2008-11-04  Bruno Haible  <bruno@clisp.org>
26254
26255         * modules/random_r (Maintainer): Add glibc.
26256
26257 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26258
26259         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26260         by karl@freefriends.org (Karl Berry).
26261         * doc/alloca.texi: Likewise.
26262         * doc/c-ctype.texi: Likewise.
26263         * doc/c-strcase.texi: Likewise.
26264         * doc/c-strcaseeq.texi: Likewise.
26265         * doc/c-strcasestr.texi: Likewise.
26266         * doc/c-strstr.texi: Likewise.
26267         * doc/c-strtod.texi: Likewise.
26268         * doc/c-strtold.texi: Likewise.
26269         * doc/ctime.texi: Likewise.
26270         * doc/error.texi: Likewise.
26271         * doc/fdl.texi: Likewise.
26272         * doc/gcd.texi: Likewise.
26273         * doc/getdate.texi: Likewise.
26274         * doc/gnulib-intro.texi: Likewise.
26275         * doc/gnulib-tool.texi: Likewise.
26276         * doc/gnulib.texi: Likewise.
26277         * doc/inet_ntoa.texi: Likewise.
26278         * doc/maintain.texi: Likewise.
26279         * doc/make-stds.texi: Likewise.
26280         * doc/quote.texi: Likewise.
26281         * doc/regexprops-generic.texi: Likewise.
26282         * doc/standards.texi: Likewise.
26283         * doc/verify.texi: Likewise.
26284         * doc/visibility.texi: Likewise.
26285         * doc/gnulib.texi (GNU Free Documentation License): Include
26286         fdl-1.3.texi instead of fdl.texi.
26287
26288 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26289
26290         * doc/fdl-1.3.texi: New file, from
26291         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26292         * modules/fdl-1.3: Add.
26293         * MODULES.html.sh: Add fdl-1.3.
26294
26295 2008-11-03  Bruno Haible  <bruno@clisp.org>
26296
26297         Make determination of absolute name of header file work with AIX xlc.
26298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26299         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26300         preprocessing.
26301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26302         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26303
26304 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26305
26306         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26307         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26308         <ludo@gnu.org>.
26309
26310 2008-11-02  Bruno Haible  <bruno@clisp.org>
26311
26312         Mark 'strpbrk' obsolete.
26313         * modules/strpbrk (Status, Notice): New sections.
26314         * modules/strtok_r (Depends-on): Add strpbrk.
26315
26316 2008-11-02  Bruno Haible  <bruno@clisp.org>
26317
26318         Mark 'strdup' obsolete.
26319         * modules/strdup (Status, Notice): New sections.
26320         * modules/findprog (Depends-on): Add strdup.
26321         * modules/getaddrinfo (Depends-on): Likewise.
26322         * modules/localename (Depends-on): Likewise.
26323         * modules/relocatable-lib (Depends-on): Likewise.
26324         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26325         * modules/relocatable-prog (Depends-on): Likewise.
26326         * modules/trim (Depends-on): Likewise.
26327         * modules/unictype/gen-ctype (Depends-on): Likewise.
26328         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26329
26330 2008-11-02  Bruno Haible  <bruno@clisp.org>
26331
26332         Mark 'strcspn' obsolete.
26333         * modules/strcspn (Status, Notice): New sections.
26334
26335 2008-11-02  Bruno Haible  <bruno@clisp.org>
26336
26337         Mark 'rmdir' obsolete.
26338         * modules/rmdir (Status, Notice): New sections.
26339         * modules/clean-temp (Depends-on): Add rmdir.
26340         * modules/openat (Depends-on): Likewise.
26341
26342 2008-11-02  Bruno Haible  <bruno@clisp.org>
26343
26344         Mark 'raise' obsolete.
26345         * modules/raise (Status, Notice): New sections.
26346         (Include): Specify <signal.h>.
26347         * modules/stdio (Depends-on): Add raise.
26348         * modules/write (Depends-on): Likewise.
26349
26350 2008-11-02  Bruno Haible  <bruno@clisp.org>
26351
26352         Mark 'memset' obsolete.
26353         * modules/memset (Status, Notice): New sections.
26354
26355 2008-11-02  Bruno Haible  <bruno@clisp.org>
26356
26357         Mark 'memmove' obsolete.
26358         * modules/memmove (Status, Notice): New sections.
26359         * modules/argp (Depends-on): Add memmove.
26360         * modules/argz (Depends-on): Likewise.
26361         * modules/canonicalize (Depends-on): Likewise.
26362         * modules/canonicalize-lgpl (Depends-on): Likewise.
26363         * modules/fts (Depends-on): Likewise.
26364         * modules/getcwd (Depends-on): Likewise.
26365         * modules/human (Depends-on): Likewise.
26366         * modules/regex (Depends-on): Likewise.
26367         * modules/striconveh (Depends-on): Likewise.
26368         * modules/trim (Depends-on): Likewise.
26369         * modules/unistr/u8-move (Depends-on): Likewise.
26370         * modules/unistr/u16-move (Depends-on): Likewise.
26371         * modules/unistr/u32-move (Depends-on): Likewise.
26372
26373 2008-11-02  Bruno Haible  <bruno@clisp.org>
26374
26375         Mark 'memcpy' obsolete.
26376         * modules/memcpy (Status, Notice): New sections.
26377
26378 2008-11-02  Bruno Haible  <bruno@clisp.org>
26379
26380         Mark 'memcmp' obsolete.
26381         * modules/memcmp (Status, Notice): New sections.
26382         * modules/argmatch (Depends-on): Add memchr.
26383         * modules/backupfile (Depends-on): Likewise.
26384         * modules/c-strcasestr (Depends-on): Likewise.
26385         * modules/crypto/des (Depends-on): Likewise.
26386         * modules/csharpcomp (Depends-on): Likewise.
26387         * modules/fnmatch (Depends-on): Likewise.
26388         * modules/git-merge-changelog (Depends-on): Likewise.
26389         * modules/isnand (Depends-on): Likewise.
26390         * modules/isnand-nolibm (Depends-on): Likewise.
26391         * modules/isnanf (Depends-on): Likewise.
26392         * modules/isnanf-nolibm (Depends-on): Likewise.
26393         * modules/isnanl (Depends-on): Likewise.
26394         * modules/isnanl-nolibm (Depends-on): Likewise.
26395         * modules/mbchar (Depends-on): Likewise.
26396         * modules/memcoll (Depends-on): Likewise.
26397         * modules/quotearg (Depends-on): Likewise.
26398         * modules/regex (Depends-on): Likewise.
26399         * modules/relocatable-prog (Depends-on): Likewise.
26400         * modules/same (Depends-on): Likewise.
26401         * modules/signbit (Depends-on): Likewise.
26402         * modules/strcasestr-simple (Depends-on): Likewise.
26403         * modules/unictype/gen-ctype (Depends-on): Likewise.
26404         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26405         * modules/uniname/uniname (Depends-on): Likewise.
26406         * modules/unistr/u8-cmp (Depends-on): Likewise.
26407
26408 2008-11-02  Bruno Haible  <bruno@clisp.org>
26409
26410         Mark 'memchr' obsolete.
26411         * modules/memchr (Status, Notice): New sections.
26412         * modules/argp (Depends-on): Add memchr.
26413         * modules/base64 (Depends-on): Likewise.
26414         * modules/c-strcasestr (Depends-on): Likewise.
26415         * modules/chdir-long (Depends-on): Likewise.
26416         * modules/fnmatch (Depends-on): Likewise.
26417         * modules/getsubopt (Depends-on): Likewise.
26418         * modules/git-merge-changelog (Depends-on): Likewise.
26419         * modules/glob (Depends-on): Likewise.
26420         * modules/strcasestr-simple (Depends-on): Likewise.
26421         * modules/strnlen (Depends-on): Likewise.
26422
26423 2008-11-02  Bruno Haible  <bruno@clisp.org>
26424
26425         Mark 'atexit' obsolete.
26426         * modules/atexit (Status, Notice): New sections.
26427         * modules/chdir-long (Depends-on): Add atexit.
26428         * modules/wait-process (Depends-on): Likewise.
26429
26430 2008-11-02  Bruno Haible  <bruno@clisp.org>
26431
26432         * gnulib-tool: New option --with-obsolete.
26433         (func_usage): Document it.
26434         (func_modules_transitive_closure): Drop obsolete dependencies if
26435         incobsolete is not true.
26436         (func_import): Read and save the incobsolete variable to the cache.
26437
26438 2008-11-02  Bruno Haible  <bruno@clisp.org>
26439
26440         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26441         * gnulib-tool: New option --extract-status.
26442         (func_usage): Document it.
26443         (sed_extract_prog): Recognize it.
26444         (func_get_status): New function.
26445
26446 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26447
26448         * modules/sockets (License): Change from LGPL to LGPLv2+.
26449
26450 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26451
26452         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26453
26454 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26455
26456         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26457         Mention times and sys_times.
26458         * modules/sys_times, modules/sys_times-tests: New modules.
26459         * modules/times, modules/times-tests: Likewise
26460         * m4/sys_times_h.m4: New file.
26461         * lib/sys_times.in.h: Likewise
26462         * lib/times.c: Likewise.
26463         * tests/test-sys_times.c: Likewise.
26464         * tests/test-times.c: Likewise.
26465         * doc/posix-headers/sys_times.texi: Update.
26466         * doc/posix-functions/times.texi: Update.
26467
26468 2008-10-28  Jim Meyering  <meyering@redhat.com>
26469
26470         * modules/tempname (Depends-on): Add lstat.
26471
26472         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26473
26474 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26475
26476         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26477         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26478         using idiom used elsewhere in gnulib.
26479
26480 2008-10-27  Jim Meyering  <meyering@redhat.com>
26481
26482         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26483
26484 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26485
26486         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26487         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26488         programs.
26489         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26490
26491 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26492
26493         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26494
26495 2008-10-27  Bruno Haible  <bruno@clisp.org>
26496
26497         * tests/test-lstat.c: Include <stdio.h>.
26498
26499 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26500
26501         * modules/lstat-tests: New module.
26502         * tests/test-lstat.c: New file.
26503
26504 2008-10-26  Jim Meyering  <meyering@redhat.com>
26505
26506         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26507
26508 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26509             Bruno Haible  <bruno@clisp.org>
26510
26511         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26512         * modules/configmake (Include): Add a note that the include must come
26513         after all system headers.
26514         * lib/javaversion.c: Include configmake.h after all other includes.
26515
26516 2008-10-26  Bruno Haible  <bruno@clisp.org>
26517
26518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26519         HAVE_STRUCT_RANDOM_DATA to 1.
26520         (gl_STDLIB_H): Simplify.
26521
26522 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26523
26524         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26525         substitute HAVE_STRUCT_RANDOM_DATA.
26526         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26527         random_data.
26528         * modules/stdlib (Makefile.am): Substitute
26529         HAVE_STRUCT_RANDOM_DATA.
26530
26531 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26532
26533         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26534         * doc/gnulib-intro.texi (Copyright): Likewise.
26535
26536 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26537
26538         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26539         findings.
26540
26541 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26542             Bruno Haible  <bruno@clisp.org>
26543
26544         * lib/unistd.in.h: Include <winsock2.h>.
26545         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26546         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26547         Provide dummy declarations.
26548         (gethostname): Override.
26549         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26550         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26551         gl_PREREQ_SYS_H_WINSOCK2.
26552         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26553         * doc/posix-functions/gethostname.texi: More details.
26554
26555 2008-10-25  Bruno Haible  <bruno@clisp.org>
26556
26557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26558         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26559         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26560
26561         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26562         here ...
26563         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26564         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26565         gl_UNISTD_H_DEFAULTS.
26566
26567 2008-10-25  Eric Blake  <ebb9@byu.net>
26568
26569         signbit: avoid spurious compiler failure
26570         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26571         declarations inside function.
26572
26573 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26574             Bruno Haible  <bruno@clisp.org>
26575
26576         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26577         * modules/random_r (Depends-on): Add stdint.
26578
26579 2008-10-24  Bruno Haible  <bruno@clisp.org>
26580
26581         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26582         Eggert.
26583         * modules/strerror (License): Likewise.
26584
26585 2008-10-24  Jim Meyering  <meyering@redhat.com>
26586
26587         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26588         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26589
26590 2008-10-24  Eric Blake  <ebb9@byu.net>
26591
26592         getgroups: fix compilation when getgroups is available
26593         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26594         but with <config.h> override of getgroups disabled.
26595
26596 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26597
26598         * doc/gnulib.texi (Header files): Add note about C++ problems.
26599         Explained by Bruno Haible <bruno@clisp.org>.
26600
26601 2008-10-23  Bruno Haible  <bruno@clisp.org>
26602
26603         Define a dummy SA_NODEFER macro on Interix.
26604         * lib/signal.in.h (SA_NODEFER): Define fallback.
26605         Reported by Aleksey Cheusov <cheusov@tut.by> via
26606         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26607
26608 2008-10-23  Bruno Haible  <bruno@clisp.org>
26609
26610         * modules/freadahead (License): Change to LGPLv2+.
26611         Suggested by Simon Josefsson.
26612
26613 2008-10-23  Jim Meyering  <meyering@redhat.com>
26614
26615         random_r: new module
26616         * modules/random_r: New file.
26617         * m4/random_r.m4: New file.
26618         * lib/random_r.c: New file, from glibc.
26619         * modules/random_r-tests: New file.
26620         * tests/test-random_r.c: New file.
26621         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26622          Declare.
26623         (RAND_MAX): Define.
26624         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26625         * modules/stdlib: Substitute them, too.
26626         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26627         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26628         * doc/glibc-functions/random_r.texi: Likewise.
26629         * doc/glibc-functions/setstate_r.texi: Likewise.
26630         * doc/glibc-functions/srandom_r.texi: Likewise.
26631         * config/srclist.txt: Mention it.
26632
26633 2008-10-23  David Lutterkort  <lutter@redhat.com>
26634
26635         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26636         link requirement
26637
26638 2008-10-23  Jim Meyering  <meyering@redhat.com>
26639
26640         selinux-h: mark parameters of stub functions as intentionally unused
26641         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26642         * lib/se-context.in.h: Likewise.
26643
26644 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26645
26646         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26647
26648 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26649
26650         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26651
26652 2008-10-22  Eric Blake  <ebb9@byu.net>
26653
26654         glthread/thread: avoid compiler warning
26655         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26656         Add unreachable abort to silence compiler.
26657
26658 2008-10-22  Eric Blake  <ebb9@byu.net>
26659
26660         netdb: also supply struct addrinfo for cygwin 1.5.x
26661         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26662         older cygwin.
26663         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26664         cygwin.
26665         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26666
26667 2008-10-22  Bruno Haible  <bruno@clisp.org>
26668
26669         * users.txt: Update entry about pspp.
26670
26671 2008-10-21  Bruno Haible  <bruno@clisp.org>
26672
26673         Simplification.
26674         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26675         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26676
26677         Simplification.
26678         * lib/ioctl.c (ioctl): Don't undefine.
26679         * lib/socket.c (socket): Don't undefine.
26680
26681         Remove unused module indicator macros.
26682         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26683         GNULIB_$1 as a C macro.
26684
26685         * doc/posix-functions/close.texi: Undo last change.
26686         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26687         Windows platforms.
26688
26689 2008-10-21  Bruno Haible  <bruno@clisp.org>
26690
26691         Add gethostname() declaration to <unistd.h>.
26692         * lib/unistd.in.h (gethostname): New declaration.
26693         * lib/gethostname.c: Include <unistd.h>.
26694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26695         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26697         and HAVE_GETHOSTNAME.
26698         * modules/gethostname (Depends-on): Add unistd.
26699         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26700         (Include): Specify <unistd.h>.
26701         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26702         HAVE_GETHOSTNAME.
26703         * tests/test-gethostname.c: Include <unistd.h> first.
26704
26705 2008-10-21  Bruno Haible  <bruno@clisp.org>
26706
26707         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26708         * modules/select-tests (Depends-on): Likewise.
26709         Reported by Simon Josefsson.
26710
26711 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26712
26713         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26714         * lib/accept.c: New file, based on winsock.c.
26715         * lib/bind.c: New file, based on winsock.c.
26716         * lib/connect.c: New file, based on winsock.c.
26717         * lib/getpeername.c: New file, based on winsock.c.
26718         * lib/getsockname.c: New file, based on winsock.c.
26719         * lib/getsockopt.c: New file, based on winsock.c.
26720         * lib/ioctl.c: New file, based on winsock.c.
26721         * lib/listen.c: New file, based on winsock.c.
26722         * lib/recv.c: New file, based on winsock.c.
26723         * lib/recvfrom.c: New file, based on winsock.c.
26724         * lib/send.c: New file, based on winsock.c.
26725         * lib/sendto.c: New file, based on winsock.c.
26726         * lib/setsockopt.c: New file, based on winsock.c.
26727         * lib/shutdown.c: New file, based on winsock.c.
26728         * lib/socket.c: New file, based on winsock.c.
26729         * lib/w32sock.h: New file, based on winsock.c.
26730         * lib/winsock.c: Remove file.
26731         * modules/accept: Likewise.
26732         * modules/bind: Likewise.
26733         * modules/connect: Likewise.
26734         * modules/getpeername: Likewise.
26735         * modules/getsockname: Likewise.
26736         * modules/getsockopt: Likewise.
26737         * modules/ioctl: Likewise.
26738         * modules/listen: Likewise.
26739         * modules/recv: Likewise.
26740         * modules/recvfrom: Likewise.
26741         * modules/send: Likewise.
26742         * modules/sendto: Likewise.
26743         * modules/setsockopt: Likewise.
26744         * modules/shutdown: Likewise.
26745         * modules/socket: Use socket.c instead of winsock.c.
26746         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26747         * doc/posix-functions/accept.texi: Doc fix.
26748         * doc/posix-functions/bind.texi: Doc fix.
26749         * doc/posix-functions/close.texi: Doc fix.
26750         * doc/posix-functions/connect.texi: Doc fix.
26751         * doc/posix-functions/getpeername.texi: Doc fix.
26752         * doc/posix-functions/getsockname.texi: Doc fix.
26753         * doc/posix-functions/getsockopt.texi: Doc fix.
26754         * doc/posix-functions/ioctl.texi: Doc fix.
26755         * doc/posix-functions/listen.texi: Doc fix.
26756         * doc/posix-functions/recv.texi: Doc fix.
26757         * doc/posix-functions/recvfrom.texi: Doc fix.
26758         * doc/posix-functions/send.texi: Doc fix.
26759         * doc/posix-functions/sendto.texi: Doc fix.
26760         * doc/posix-functions/setsockopt.texi: Doc fix.
26761         * doc/posix-functions/shutdown.texi: Doc fix.
26762         * doc/posix-functions/socket.texi: Doc fix.
26763
26764 2008-10-20  Bruno Haible  <bruno@clisp.org>
26765
26766         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26767         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26768         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26769         as an alias for SIGABRT.
26770         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26771         (sigaction): Map it to SIGABRT.
26772         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26773
26774 2008-10-20  Bruno Haible  <bruno@clisp.org>
26775
26776         * lib/fts.c: Don't include lstat.h.
26777         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26778
26779         Move the lstat() declaration to <sys/stat.h>.
26780         * lib/lstat.h: Remove file.
26781         * lib/sys_stat.in.h: Add special invocation convention.
26782         (lstat): New declaration.
26783         * lib/lstat.c (orig_lstat): New function.
26784         (rpl_lstat): Use orig_lstat instead of lstat.
26785         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26786         AC_C_INLINE. Set REPLACE_LSTAT.
26787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26788         and REPLACE_LSTAT.
26789         * modules/lstat (Files): Remove lib/lstat.h.
26790         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26791         (Include): Specify <sys/stat.h> instead of lstat.h.
26792         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26793         REPLACE_LSTAT.
26794         * NEWS: Mention the change.
26795
26796 2008-10-20  Bruno Haible  <bruno@clisp.org>
26797
26798         * modules/posix_spawn-tests: New file.
26799         * tests/test-posix_spawn3.c: New file.
26800
26801 2008-10-20  Bruno Haible  <bruno@clisp.org>
26802
26803         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26804         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26805         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26806         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26807         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26808
26809 2008-10-20  Bruno Haible  <bruno@clisp.org>
26810
26811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26812         of posix_spawn on AIX 5.3.
26813
26814 2008-10-20  Bruno Haible  <bruno@clisp.org>
26815
26816         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26817
26818 2008-10-20  Bruno Haible  <bruno@clisp.org>
26819
26820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26821         of AC_LANG_PROGRAM.
26822
26823 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26824
26825         * lib/netdb.in.h: Don't define GNU specific constants until they
26826         are supported or needed.  Reported by Bruno Haible
26827         <bruno@clisp.org>.
26828
26829 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26830
26831         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26832
26833 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26834
26835         * lib/getaddrinfo.h: Remove file.
26836         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26837         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26838         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26839         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26840         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26841         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26842         * tests/test-getaddrinfo.c: Likewise.
26843         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26844         * NEWS: Mention change.
26845
26846 2008-10-19  Bruno Haible  <bruno@clisp.org>
26847
26848         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26849
26850 2008-10-19  Bruno Haible  <bruno@clisp.org>
26851
26852         * lib/wait-process.c: Include simply <sys/wait.h>.
26853         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26854         WIFSTOPPED): Remove fallback definitions.
26855         * modules/wait-process (Depends-on): Add sys_wait.
26856
26857         New module 'sys_wait'.
26858         * modules/sys_wait: New file.
26859         * lib/sys_wait.in.h: New file, partially copied from
26860         lib/wait-process.c.
26861         * m4/sys_wait_h.m4: New file.
26862         * doc/posix-headers/sys_wait.texi: Mention the new module.
26863
26864 2008-10-19  Bruno Haible  <bruno@clisp.org>
26865
26866         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26867
26868 2008-10-19  Bruno Haible  <bruno@clisp.org>
26869
26870         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26871         * lib/wait-process.c (WAIT_T): Remove type.
26872         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26873         (wait_subprocess): Update.
26874
26875 2008-10-19  Bruno Haible  <bruno@clisp.org>
26876
26877         New module 'atoll'.
26878         * modules/atoll: New file.
26879         * lib/stdlib.in.h (atoll): New declaration.
26880         * lib/atoll.c: New file, from glibc with modifications.
26881         * m4/atoll.m4: New file.
26882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26883         HAVE_ATOLL.
26884         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26885         * doc/posix-functions/atoll.texi: Mention the new module.
26886
26887 2008-10-19  Bruno Haible  <bruno@clisp.org>
26888
26889         Add strtoull() declaration to <stdlib.h>.
26890         * lib/stdlib.in.h (strtoull): New declaration.
26891         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26892         Set HAVE_STRTOULL.
26893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26894         HAVE_STRTOULL.
26895         * modules/strtoull (Depends-on): Add stdlib.
26896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26897         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26898         HAVE_STRTOULL.
26899
26900 2008-10-19  Bruno Haible  <bruno@clisp.org>
26901
26902         Add strtoll() declaration to <stdlib.h>.
26903         * lib/stdlib.in.h (strtoll): New declaration.
26904         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26905         Set HAVE_STRTOLL.
26906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26907         HAVE_STRTOLL.
26908         * modules/strtoll (Depends-on): Add stdlib.
26909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26910         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26911
26912 2008-10-19  Bruno Haible  <bruno@clisp.org>
26913
26914         * modules/bcopy (Depends-on): Add strings.
26915         (Include): Specify <strings.h>.
26916
26917 2008-10-19  Bruno Haible  <bruno@clisp.org>
26918
26919         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26920
26921 2008-10-19  Bruno Haible  <bruno@clisp.org>
26922
26923         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26924         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26925         mingw.
26926
26927 2008-10-19  Bruno Haible  <bruno@clisp.org>
26928
26929         * lib/atanl.c: Don't include isnanl.h.
26930         * lib/cosl.c: Likewise.
26931         * lib/ldexpl.c: Likewise.
26932         * lib/logl.c: Likewise.
26933         * lib/sinl.c: Likewise.
26934         * lib/sqrtl.c: Likewise.
26935         * lib/tanl.c: Likewise.
26936
26937         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26938         * lib/isnanf.h: Remove file.
26939         * lib/isnand.h: Remove file.
26940         * lib/isnanl.h: Remove file.
26941         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26942         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26943         macros.
26944         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26945         HAVE_ISNANF, don't define it as a C macro.
26946         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26947         HAVE_ISNAND, don't define it as a C macro.
26948         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26949         HAVE_ISNANL, don't define it as a C macro.
26950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26951         HAVE_ISNAN[FDL].
26952         * modules/isnanf (Files): Remove lib/isnanf.h.
26953         (Depends-on): Add math.
26954         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26955         (Include): Specify <math.h> instead of isnanf.h.
26956         * modules/isnand (Files): Remove lib/isnand.h.
26957         (Depends-on): Add math.
26958         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26959         (Include): Specify <math.h> instead of isnand.h.
26960         * modules/isnanl (Files): Remove lib/isnanl.h.
26961         (Depends-on): Add math.
26962         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26963         (Include): Specify <math.h> instead of isnanl.h.
26964         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26965         HAVE_ISNAN[FDL].
26966         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26967         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26968         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26969         * NEWS: Mention the change.
26970
26971 2008-10-18  Bruno Haible  <bruno@clisp.org>
26972
26973         Add getusershell(), setusershell(), endusershell() declarations to
26974         <unistd.h>.
26975         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26976         declarations.
26977         * lib/getusershell.c: Include unistd.h.
26978         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26979         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26980         HAVE_GETUSERSHELL.
26981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26982         and HAVE_GETUSERSHELL.
26983         * modules/getusershell (Depends-on): Add unistd, extensions.
26984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26985         (Include): Specify <unistd.h>.
26986         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26987         HAVE_GETUSERSHELL.
26988
26989 2008-10-18  Bruno Haible  <bruno@clisp.org>
26990
26991         Add a getloadavg() declaration to <stdlib.h>.
26992         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26993         getloadavg declaration.
26994         (getloadavg): New declaration.
26995         * lib/getloadavg.c: Include <stdlib.h> first.
26996         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26997         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26998         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27000         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27001         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27003         (Include): Specify <stdlib.h>.
27004         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27005         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27006
27007 2008-10-18  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/dirchownmod.c: Don't include lchmod.h.
27010
27011         Move the lchmod() declaration to <sys/stat.h>.
27012         * lib/lchmod.h: Remove file.
27013         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27014         (lchmod): New declaration, moved here from lib/lchown.h.
27015         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27016         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27017         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27018         and HAVE_LCHMOD.
27019         * modules/lchmod (Files): Remove lib/lchmod.h.
27020         (Depends-on): Add sys_stat, extensions.
27021         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27022         (Include): Specify <sys/stat.h> instead of lchmod.h.
27023         * modules/sys_stat (Depends-on): Add link-warning.
27024         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27025         definition of GL_LINK_WARNING.
27026         * NEWS: Mention the change.
27027
27028 2008-10-18  Bruno Haible  <bruno@clisp.org>
27029
27030         * lib/fchdir.c: Don't include dirfd.h.
27031         * lib/fts.c: Likewise.
27032         * lib/getcwd.c: Likewise.
27033         * lib/glob.c: Likewise.
27034
27035         Move the dirfd() declaration to <dirent.h>.
27036         * lib/dirfd.h: Remove file.
27037         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27038         (dirfd): New declaration.
27039         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27040         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27041         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27042         HAVE_DECL_DIRFD.
27043         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27044         HAVE_DECL_DIRFD.
27045         * modules/dirfd (Files): Remove lib/dirfd.h.
27046         (Depends-on): Add dirent, extensions.
27047         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27048         (Include): Specify <dirent.h> instead of dirfd.h.
27049         * modules/dirent (Depends-on): Add link-warning.
27050         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27051         definition of GL_LINK_WARNING.
27052         * NEWS: Mention the change.
27053
27054 2008-10-18  Bruno Haible  <bruno@clisp.org>
27055
27056         Move the euidaccess() declaration to <unistd.h>.
27057         * lib/euidaccess.h: Remove file.
27058         * lib/unistd.in.h (euidaccess): New declaration.
27059         * lib/euidaccess.c: Don't include euidaccess.h.
27060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27061         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27063         and HAVE_EUIDACCESS.
27064         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27065         (Depends-on): Add unistd.
27066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27067         (Include): Specify <unistd.h> instead of euidaccess.h.
27068         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27069         HAVE_EUIDACCESS.
27070         * NEWS: Mention the change.
27071
27072 2008-10-18  Bruno Haible  <bruno@clisp.org>
27073
27074         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27075
27076         Move the getdomainname() declaration to <unistd.h>.
27077         * lib/getdomainname.h: Remove file.
27078         * lib/unistd.in.h (getdomainname): New declaration.
27079         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27080         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27081         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27082         HAVE_GETDOMAINNAME.
27083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27084         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27085         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27086         (Depends-on): Add unistd, extensions.
27087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27088         (Includes): Specify <unistd.h> instead of getdomainname.h.
27089         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27090         HAVE_GETDOMAINNAME.
27091         * NEWS: Mention the change.
27092
27093 2008-10-18  Bruno Haible  <bruno@clisp.org>
27094
27095         * modules/dirent: New file.
27096         * m4/dirent_h.m4: New file.
27097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27098         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27099         * modules/fchdir (Files): Remove lib/dirent.in.h.
27100         (Depends-on): Add dirent.
27101         (Makefile.am): Move rules to modules/dirent.
27102         * doc/posix-headers/dirent.texi: Mention the new module.
27103
27104 2008-10-18  Bruno Haible  <bruno@clisp.org>
27105
27106         Avoid -Wunused-parameter warnings in public gnulib header files.
27107         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27108         macro.
27109         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27110
27111 2008-10-18  Bruno Haible  <bruno@clisp.org>
27112
27113         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27114         * doc/glibc-functions/error.texi: Mention the module 'error'.
27115         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27116         * doc/glibc-functions/getdomainname.texi: Mention the module
27117         'getdomainname'.
27118         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27119         * doc/glibc-functions/getpagesize.texi: Mention the module
27120         'getpagesize'.
27121         * doc/glibc-functions/getusershell.texi: Mention the module
27122         'getusershell'.
27123         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27124         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27125         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27126         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27127         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27128         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27129         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27130         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27131         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27132         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27133         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27134         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27135         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27136         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27137
27138 2008-10-17  Bruno Haible  <bruno@clisp.org>
27139
27140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27141         HP-UX and IRIX, use -0.0L.
27142         * tests/test-ceill.c (minus_zero): Likewise.
27143         * tests/test-floorl.c (minus_zero): Likewise.
27144         * tests/test-frexpl.c (minus_zero): Likewise.
27145         * tests/test-isnan.c (minus_zerol): Likewise.
27146         * tests/test-isnanl.h (minus_zero): Likewise.
27147         * tests/test-ldexpl.c (minus_zero): Likewise.
27148         * tests/test-roundl.c (minus_zero): Likewise.
27149         * tests/test-signbit.c (minus_zerol): Likewise.
27150         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27151         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27152         * tests/test-truncl.c (minus_zero): Likewise.
27153         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27154         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27155         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27156         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27157
27158 2008-10-17  Bruno Haible  <bruno@clisp.org>
27159
27160         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27161         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27162         that it gets activated only for gcc >= 3.0.
27163         * lib/dirent.in.h: Likewise.
27164         * lib/errno.in.h: Likewise.
27165         * lib/fcntl.in.h: Likewise.
27166         * lib/float.in.h: Likewise.
27167         * lib/iconv.in.h: Likewise.
27168         * lib/inttypes.in.h: Likewise.
27169         * lib/locale.in.h: Likewise.
27170         * lib/math.in.h: Likewise.
27171         * lib/netdb.in.h: Likewise.
27172         * lib/netinet_in.in.h: Likewise.
27173         * lib/search.in.h: Likewise.
27174         * lib/signal.in.h: Likewise.
27175         * lib/spawn.in.h: Likewise.
27176         * lib/stdarg.in.h: Likewise.
27177         * lib/stdint.in.h: Likewise.
27178         * lib/stdio.in.h: Likewise.
27179         * lib/stdlib.in.h: Likewise.
27180         * lib/string.in.h: Likewise.
27181         * lib/strings.in.h: Likewise.
27182         * lib/sys_file.in.h: Likewise.
27183         * lib/sys_ioctl.in.h: Likewise.
27184         * lib/sys_select.in.h: Likewise.
27185         * lib/sys_socket.in.h: Likewise.
27186         * lib/sys_stat.in.h: Likewise.
27187         * lib/sys_time.in.h: Likewise.
27188         * lib/sysexits.in.h: Likewise.
27189         * lib/time.in.h: Likewise.
27190         * lib/unistd.in.h: Likewise.
27191         * lib/wchar.in.h: Likewise.
27192         * lib/wctype.in.h: Likewise.
27193         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27194
27195 2008-10-17  Jim Meyering  <meyering@redhat.com>
27196
27197         ignore-value: don't depend on inline module
27198         * modules/ignore-value (Depends-on): Remove 'inline'.
27199         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27200         Suggestion from Bruno Haible.
27201
27202 2008-10-17  Bruno Haible  <bruno@clisp.org>
27203
27204         New implementation of condition variables for Win32.
27205         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27206         (gl_linked_waitqueue_t): New type.
27207         (gl_cond_t): Use it.
27208         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27209         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27210         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27211         (glthread_cond_init_func, glthread_cond_wait_func,
27212         glthread_cond_timedwait_func, glthread_cond_signal_func,
27213         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27214         Reimplemented on the basis of gl_linked_waitqueue_t.
27215         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27216         gl_waitqueue_t.
27217         (gl_rwlock_t): Update.
27218         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27219
27220 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27221
27222         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27223         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27224
27225 2008-10-17  Jim Meyering  <meyering@redhat.com>
27226
27227         ignore-value: new module
27228         * modules/ignore-value: New file.
27229         * lib/ignore-value.h: New file.
27230         * MODULES.html.sh (Compiler warning management): New section,
27231         just for this module.  More to come.
27232
27233 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27234
27235         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27236         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27237         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27238
27239 2008-10-16  Jim Meyering  <meyering@redhat.com>
27240
27241         openat-die.c: avoid 'no previous prototype' warning
27242         * lib/openat-die.c: Include "openat.h".
27243         Reported by Reuben Thomas <rrt@sc3d.org>.
27244
27245 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27246
27247         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27248         * lib/netdb.in.h: Fix typo.
27249         Reported by Bruno Haible  <bruno@clisp.org>
27250
27251         * lib/netdb.in.h: Include sys/socket.h for platforms without
27252         netdb.h, to get structures like hostent on MinGW.
27253         * modules/netdb (Depends-on): Add sys_socket.
27254
27255 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27256
27257         * modules/netdb, modules/netdb-tests: New file.
27258         * m4/netdb_h.m4: New file.
27259         * lib/netdb.in.h: Add, currently just an empty file pending
27260         definitions.
27261         * tests/test-netdb.c: New file.
27262         * doc/posix-headers/netdb.texi: Mention that we replace it if
27263         needed.
27264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27265         netdb.
27266
27267 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27268
27269         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27270         with code.
27271
27272 2008-10-13  Bruno Haible  <bruno@clisp.org>
27273
27274         * lib/glthread/cond.c (glthread_cond_wait_func,
27275         glthread_cond_timedwait_func): Add a comment.
27276
27277 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27278
27279         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27280         * tests/test-select.c: Likewise,
27281
27282 2008-10-13  Bruno Haible  <bruno@clisp.org>
27283
27284         * lib/glthread/cond.c (glthread_cond_wait_func,
27285         glthread_cond_timedwait_func): Fix variable name.
27286         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27287
27288 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27289
27290         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27292         struct sockaddr.sa_len.
27293         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27294
27295 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27296
27297         * build-aux/pmccabe2html: Add css and css_url parameters.
27298
27299 2008-10-12  Bruno Haible  <bruno@clisp.org>
27300
27301         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27302         calling aclx_get.
27303         Reported by Rainer Tammer <tammer@tammer.net>.
27304
27305 2008-10-12  Bruno Haible  <bruno@clisp.org>
27306
27307         Use msvcrt aware primitives for creation/termination of Win32 threads.
27308         * lib/glthread/thread.c: Include <process.h>.
27309         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27310         (wrapper_func): Update signature.
27311         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27312
27313 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27314             Bruno Haible  <bruno@clisp.org>
27315
27316         Provide a Win32 implementation of the 'cond' module.
27317         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27318         * lib/glthread/cond.c (glthread_cond_init_func,
27319         glthread_cond_wait_func, glthread_cond_timedwait_func,
27320         glthread_cond_signal_func, glthread_cond_broadcast_func,
27321         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27322         * modules/cond (Dependencies): Add gettimeofday.
27323
27324 2008-10-11  Bruno Haible  <bruno@clisp.org>
27325
27326         Make sleep work on older versions of mingw.
27327         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27328         only whether it exists.
27329         * doc/posix-functions/sleep.texi: Mention the problem with older
27330         versions of mingw.
27331
27332 2008-10-11  Bruno Haible  <bruno@clisp.org>
27333
27334         New module 'shutdown'.
27335         * modules/shutdown: New file.
27336         * lib/sys_socket.in.h (shutdown): New declaration.
27337         * lib/winsock.c (shutdown): New function.
27338         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27339         GNULIB_SHUTDOWN.
27340         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27341         * doc/posix-functions/shutdown.texi: Document the new module.
27342
27343 2008-10-11  Jim Meyering  <meyering@redhat.com>
27344
27345         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27346
27347 2008-10-11  Bruno Haible  <bruno@clisp.org>
27348
27349         New module 'fclose'.
27350         * modules/fclose: New file.
27351         * lib/stdio.in.h (fclose): New declaration.
27352         * lib/fclose.c: New file.
27353         * m4/fclose.m4: New file.
27354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27355         REPLACE_FCLOSE.
27356         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27357         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27358         REPLACE_FCLOSE.
27359         * modules/close (Depends-on): fclose.
27360         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27361
27362 2008-10-11  Bruno Haible  <bruno@clisp.org>
27363
27364         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27365         set errno and don't call _close.
27366
27367 2008-10-10  Bruno Haible  <bruno@clisp.org>
27368
27369         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27370         ACL, not afterwards. Fixes test failure on Cygwin.
27371
27372 2008-10-09  Ben Pfaff  <blp@gnu.org>
27373
27374         * build-aux/announce-gen: Fix gnulib version related part of usage
27375         message.  Die with a useful error message if no tarballs are
27376         found.
27377
27378 2008-10-10  Jim Meyering  <meyering@redhat.com>
27379
27380         bootstrap: use git's --depth=N option only if it's supported
27381         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27382         recognize the --depth option.  Reported by Pádraig Brady.
27383
27384 2008-10-09  Bruno Haible  <bruno@clisp.org>
27385
27386         New module 'ioctl'.
27387         * modules/ioctl: New file.
27388         * lib/sys_socket.in.h (ioctl): Remove declaration.
27389         * lib/winsock.c: Include <sys/ioctl.h>.
27390         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27391         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27392         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27393         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27394         * doc/posix-functions/ioctl.texi: Mention the new module.
27395
27396 2008-10-09  Bruno Haible  <bruno@clisp.org>
27397
27398         New module 'sys_ioctl'.
27399         * lib/sys_ioctl.in.h: New file.
27400         * m4/sys_ioctl_h.m4: New file.
27401         * modules/sys_ioctl: New file.
27402         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27403
27404 2008-10-09  Bruno Haible  <bruno@clisp.org>
27405
27406         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27407         * lib/winsock.c: Include <stdarg.h>.
27408         (rpl_ioctl): Change to second argument 'int' and then varargs.
27409
27410 2008-10-09  Bruno Haible  <bruno@clisp.org>
27411
27412         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27413         when the sys_socket module is present and the system has <winsock2.h>.
27414
27415 2008-10-09  Bruno Haible  <bruno@clisp.org>
27416
27417         * doc/posix-functions/close.texi: Mention module 'close' instead of
27418         module 'sys_socket'.
27419
27420 2008-10-09  Bruno Haible  <bruno@clisp.org>
27421
27422         * doc/glibc-headers/sys_ioctl.texi: New file.
27423         * doc/gnulib.texi: Include it.
27424
27425 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27426             Bruno Haible  <bruno@clisp.org>
27427
27428         Combine the two replacements of 'close'.
27429         * lib/sys_socket.in.h (close): Define to a reminder to include
27430         <unistd.h>.
27431         (_gl_close_fd_maybe_socket): New declaration.
27432         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27433         * lib/winsock.c (close): Remove undefinition.
27434         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27435         needed for the gnulib module 'close'.
27436         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27437         define to an error symbol or to a warning, if suitable.
27438         * lib/close.c: Include <sys/socket.h>.
27439         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27441         UNISTD_H_HAVE_WINSOCK2_H.
27442         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27444         UNISTD_H_HAVE_WINSOCK2_H.
27445         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27446         (configure.ac): Set a module indicator.
27447         (Makefile.am): Substitute GNULIB_CLOSE.
27448         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27449         * modules/poll-tests (Depends-on): Add close.
27450         * modules/select-tests (Depends-on): Likewise.
27451
27452 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27453             Bruno Haible  <bruno@clisp.org>
27454
27455         New module 'close'.
27456         * modules/close: New file.
27457         * lib/unistd.in.h (close): Move declaration out of the
27458         FCHDIR_REPLACEMENT scope.
27459         (_gl_unregister_fd): New declaration.
27460         * lib/close.c: New file.
27461         * lib/fchdir.c (rpl_close): Remove function.
27462         * m4/close.m4: New file.
27463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27464         close.
27465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27466         REPLACE_CLOSE.
27467         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27468         REPLACE_CLOSE.
27469         * modules/fchdir (Depends-on): Add close.
27470
27471 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27472             Bruno Haible  <bruno@clisp.org>
27473
27474         * lib/fcntl.in.h (open): Simplify conditionals.
27475         (_gl_register_fd): New declaration.
27476         * lib/fchdir.c (rpl_open): Remove function.
27477         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27478         also.
27479         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27481         open.
27482
27483 2008-10-09  Jim Meyering  <meyering@redhat.com>
27484
27485         GNUmakefile: use the more name-space-friendly "_version"
27486         * top/GNUmakefile (_dummy): Update.
27487         (_version): Rename from "version".
27488
27489 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27490             Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27493         rpl_close.
27494         (_gl_register_fd): New function, extracted from rpl_open.
27495         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27496         (rpl_open, rpl_opendir): Use _gl_register_fd.
27497
27498 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27499
27500         Fix organization of 'open' replacement.
27501         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27502         (gl_FUNC_OPEN): Use it.
27503         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27504
27505 2008-10-08  Bruno Haible  <bruno@clisp.org>
27506
27507         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27508
27509 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27510
27511         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27512         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27513         listen).
27514
27515 2008-10-08  Eric Blake  <ebb9@byu.net>
27516
27517         GNUmakefile: add 'make version' target
27518         * top/GNUmakefile (_curr-ver): Split version update rules...
27519         (version): ...into a target.
27520
27521 2008-10-07  Bruno Haible  <bruno@clisp.org>
27522
27523         Use a more portable replacement expression for -0.0L.
27524         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27525         instead of -0.0L. Fix m4 quotation.
27526
27527         * tests/test-signbit.c: Include <float.h>.
27528         (minus_zero): New variable.
27529         (test_signbitl): Use minus_zero instead of -zero.
27530         * modules/signbit-tests (Depends-on): Add float.
27531
27532         * tests/test-ceill.c: Include <float.h>.
27533         (zero): Remove variable.
27534         (minus_zero): New variable.
27535         (main): Use minus_zero instead of -zero.
27536         * modules/ceill-tests (Depends-on): Add float.
27537
27538         * tests/test-floorl.c: Include <float.h>.
27539         (zero): Remove variable.
27540         (minus_zero): New variable.
27541         (main): Use minus_zero instead of -zero.
27542         * modules/floorl-tests (Depends-on): Add float.
27543
27544         * tests/test-roundl.c: Include <float.h>.
27545         (zero): Remove variable.
27546         (minus_zero): New variable.
27547         (main): Use minus_zero instead of -zero.
27548         * modules/roundl-tests (Depends-on): Add float.
27549
27550         * tests/test-truncl.c: Include <float.h>.
27551         (zero): Remove variable.
27552         (minus_zero): New variable.
27553         (main): Use minus_zero instead of -zero.
27554         * modules/truncl-tests (Depends-on): Add float.
27555
27556         * tests/test-frexpl.c (zero): Remove variable.
27557         (minus_zero): New variable.
27558         (main): Use minus_zero instead of -zero.
27559         * modules/frexpl-tests (Depends-on): Add float.
27560
27561         * tests/test-isnan.c (zerol): Remove variable.
27562         (minus_zerol): New variable.
27563         (test_long_double): Use minus_zerol instead of -zerol.
27564         * modules/isnan-tests (Depends-on): Add float.
27565
27566         * tests/test-isnanl.h (zero): Remove variable.
27567         (minus_zero): New variable.
27568         (main): Use minus_zero instead of -zero.
27569         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27570         * modules/isnanl-tests (Depends-on): Add float.
27571
27572         * tests/test-ldexpl.c (zero): Remove variable.
27573         (minus_zero): New variable.
27574         (main): Use minus_zero instead of -zero.
27575         * modules/ldexpl-tests (Depends-on): Add float.
27576
27577         * tests/test-snprintf-posix.h (zerol): Remove variable.
27578         (minus_zerol): New variable.
27579         (test_function): Use minus_zerol instead of -zerol.
27580         * modules/snprintf-posix-tests (Depends-on): Add float.
27581         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27582
27583         * tests/test-sprintf-posix.h (zerol): Remove variable.
27584         (minus_zerol): New variable.
27585         (test_function): Use minus_zerol instead of -zerol.
27586         * modules/sprintf-posix-tests (Depends-on): Add float.
27587         * modules/vsprintf-posix-tests (Depends-on): Add float.
27588
27589         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27590         (minus_zerol): New variable.
27591         (test_function): Use minus_zerol instead of -zerol.
27592         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27593
27594         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27595         (minus_zerol): New variable.
27596         (test_function): Use minus_zerol instead of -zerol.
27597         * modules/vasprintf-posix-tests (Depends-on): Add float.
27598
27599 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27600
27601         * MODULES.html.sh (Support for building documentation): Mention
27602         pmccabe2html.  Sort entries.
27603
27604         Add pmccabe2html module, from gnupdf.
27605         * build-aux/pmccabe.css: New file.
27606         * build-aux/pmccabe2html: New file.
27607         * m4/pmccabe2html.m4: New file.
27608         * modules/pmccabe2html: New file.
27609
27610 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27611
27612         flock: new module
27613         * MODULES.html.sh: Add to list of modules.
27614         * lib/flock.c: flock implementation for Windows and Unix systems
27615         which have fcntl.
27616         * doc/glibc-functions/flock.texi: Update documentation.
27617         * lib/sys_file.in.h: <sys/file.h> header file.
27618         * m4/flock.m4: M4 macros.
27619         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27620         * modules/flock: flock module.
27621         * modules/flock-tests: flock tests module.
27622         * modules/sys_file: sys/file.h module.
27623         * tests/test-flock.c: test suite for flock.
27624
27625 2008-10-06  Jim Meyering  <meyering@redhat.com>
27626
27627         bootstrap: check for LT_INIT more portably still ;-)
27628         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27629         Spotted by Bruno Haible.
27630
27631 2008-10-06  Eric Blake  <ebb9@byu.net>
27632
27633         test-signbit: avoid tripping Irix cc bug on -0.0L
27634         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27635         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27636         entire testsuite consistent and avoids an Irix 6.2 bug.
27637
27638 2008-10-05  Bruno Haible  <bruno@clisp.org>
27639             Jim Meyering  <jim@meyering.net>
27640
27641         Add an option for ignoring EPIPE during close_stdout.
27642         * lib/closeout.h: Include <stdbool.h>.
27643         (close_stdout_set_ignore_EPIPE): New declaration.
27644         * lib/closeout.c: Include <stdbool.h>.
27645         (ignore_EPIPE): New variable.
27646         (close_stdout_set_ignore_EPIPE): New function.
27647         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27648         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27649         failure.
27650         * modules/closeout (Depends-on): Add stdbool.
27651
27652 2008-10-05  Bruno Haible  <bruno@clisp.org>
27653
27654         * modules/accept: New file.
27655         * modules/bind: New file.
27656         * modules/connect: New file.
27657         * modules/getpeername: New file.
27658         * modules/getsockname: New file.
27659         * modules/getsockopt: New file.
27660         * modules/listen: New file.
27661         * modules/recv: New file.
27662         * modules/recvfrom: New file.
27663         * modules/send: New file.
27664         * modules/sendto: New file.
27665         * modules/setsockopt: New file.
27666         * modules/socket: New file.
27667         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27668         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27669         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27670         the particular module is requested. Add a link warning when the
27671         particular module is not requested.
27672         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27673         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27674         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27675         the particular module is requested.
27676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27677         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27678         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27679         * modules/sys_socket (Depends-on): Add link-warning.
27680         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27681         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27682         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27683         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27684         GL_LINK_WARNING.
27685         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27686         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27687         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27688         * doc/posix-functions/getpeername.texi: Mention the new module
27689         'getpeername'.
27690         * doc/posix-functions/getsockname.texi: Mention the new module
27691         'getsockname'.
27692         * doc/posix-functions/getsockopt.texi: Mention the new module
27693         'getsockopt'.
27694         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27695         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27696         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27697         * doc/posix-functions/send.texi: Mention the new module 'send'.
27698         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27699         * doc/posix-functions/setsockopt.texi: Mention the new module
27700         'setsockopt'.
27701         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27702         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27703         listen, connect, accept.
27704         * modules/select-tests (Depends-on): Likewise.
27705
27706 2008-10-05  Bruno Haible  <bruno@clisp.org>
27707
27708         * lib/winsock.c (strerror): Remove unused #undef.
27709         (rpl_close): Remove unused local variable.
27710
27711         * modules/sys_socket (Depends-on); Add errno.
27712
27713 2008-10-05  Bruno Haible  <bruno@clisp.org>
27714
27715         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27716         (select): Add a link warning when the 'select' module is not used.
27717         * modules/sys_select (Depends-on): Add link-warning.
27718         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27719         Suggested by Paolo Bonzini.
27720
27721 2008-10-05  Jim Meyering  <meyering@redhat.com>
27722
27723         bootstrap: check for LT_INIT more portably
27724         * build-aux/bootstrap: Avoid using grep -E, since it's not
27725         portable enough.  Suggestion from Bruno Haible.
27726
27727 2008-10-05  Bruno Haible  <bruno@clisp.org>
27728
27729         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27730         as being fixed by gnulib.
27731
27732 2008-10-05  Bruno Haible  <bruno@clisp.org>
27733
27734         * modules/select-tests: New file, mostly copied from
27735         modules/sys_select-tests.
27736         * tests/test-select.c: New file, mostly copied from
27737         tests/test-sys_select.c.
27738         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27739         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27740         (Makefile.am): Remove test_sys_select_LDADD.
27741
27742         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27743         to an undefined symbol, for an error message.
27744         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27745         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27746         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27747         winsock-select.c here.
27748         * modules/sys_select (Files): Remove lib/winsock-select.c.
27749         (Depends-on): Remove alloca.
27750         (Makefile.am): Substitute GNULIB_SELECT.
27751         * modules/select: New file.
27752         * doc/posix-functions/select.texi: Update.
27753
27754 2008-10-05  Bruno Haible  <bruno@clisp.org>
27755
27756         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27757         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27758         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27759         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27760         getdtablesize.
27761         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27762         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27763
27764 2008-10-05  Bruno Haible  <bruno@clisp.org>
27765
27766         * modules/getdtablesize-tests: New file.
27767         * tests/test-getdtablesize.c: New file.
27768
27769         New module 'getdtablesize'.
27770         * lib/unistd.in.h (getdtablesize): New declaration.
27771         * lib/getdtablesize.c: New file.
27772         * m4/getdtablesize.m4: New file.
27773         * modules/getdtablesize: New file.
27774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27775         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27776         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27777         HAVE_GETDTABLESIZE.
27778         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27779
27780 2008-10-05  Bruno Haible  <bruno@clisp.org>
27781
27782         * modules/sched (Makefile.am): Fix typo.
27783         Reported by Simon Josefsson.
27784
27785 2008-10-05  Jim Meyering  <meyering@redhat.com>
27786
27787         bootstrap: check for LT_INIT, too
27788         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27789         are deprecated.  Suggestion from Ralf Wildenhues.
27790
27791 2008-10-05  Bruno Haible  <bruno@clisp.org>
27792
27793         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27794         overriding them by ours.
27795         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27796
27797 2008-10-05  Jim Meyering  <meyering@redhat.com>
27798
27799         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27800         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27801         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27802
27803 2008-10-04  Bruno Haible  <bruno@clisp.org>
27804
27805         * modules/dup2 (License): Change to LGPLv2+.
27806         * modules/sleep (License): Likewise.
27807         * modules/perror (License): Likewise.
27808         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27809         Blake.
27810         * modules/signal (License): Likewise.
27811         * modules/sigprocmask (License): Likewise.
27812         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27813         Meyering.
27814
27815 2008-10-04  Bruno Haible  <bruno@clisp.org>
27816
27817         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27818         Reported by Rainer Tammer <tammer@tammer.net>.
27819
27820 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27821             Bruno Haible  <bruno@clisp.org>
27822
27823         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27824         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27825         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27826
27827 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27828
27829         filevercmp: new module
27830         * lib/filevercmp.h: New function filevercmp comparing version strings.
27831         * lib/filevercmp.c: Implementation of filevercmp function.
27832         * modules/filevercmp: Module metadata.
27833         * tests/test-filevercmp.c: Unit test for new module.
27834         * modules/filevercmp-tests: Unit test metadata.
27835         * MODULES.html.sh: Add filevercmp module.
27836
27837 2008-10-03  Bruno Haible  <bruno@clisp.org>
27838
27839         * lib/c-ctype.h: Add comment.
27840         Reported by Jim Meyering.
27841
27842 2008-10-02  Bruno Haible  <bruno@clisp.org>
27843
27844         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27845
27846 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27847
27848         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27849         name of bootstrap.conf accordingly.
27850
27851 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27852
27853         * build-aux/bootstrap: Install git-merge-changelog configuration
27854         items into .gitconfig if needed.
27855
27856 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27857
27858         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27859         git repository, and initialize/update it accordingly.
27860
27861 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27862
27863         * modules/fsync-tests: New file.
27864         * tests/test-fsync.c: New file.
27865
27866         New module 'fsync'.
27867         * lib/fsync.c: New file.
27868         * m4/fsync.m4: New file.
27869         * modules/fsync: New file.
27870         * lib/unistd.in.h (fsync): New declaration.
27871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27872         GNULIB_FSYNC and HAVE_FSYNC.
27873         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27874         * MODULES.html.sh (posix_functions): Add fsync.
27875         * doc/posix-functions/fsync.texi: Mention the new module.
27876
27877 2008-10-02  Jim Meyering  <meyering@redhat.com>
27878
27879         fts.c: sync with similar code from coreutils' remove.c
27880         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27881         Guard also with "#if defined __linux__", since for now at least,
27882         this code is Linux-kernel-specific.
27883
27884 2008-10-02  Jim Meyering  <meyering@redhat.com>
27885
27886         fts: bug fixes
27887         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27888         Include <sys/vfs.h>, not <sys/statfs.h>.
27889
27890         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27891         Include <sys/vfs.h>, not <sys/statfs.h>.
27892
27893 2008-10-01  Bruno Haible  <bruno@clisp.org>
27894
27895         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27897         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27898         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27899         * doc/posix-functions/posix_spawnp.texi: Likewise.
27900         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27901         whether posix_spawn actually works.
27902         * m4/pipe.m4 (gl_PIPE): Likewise.
27903         * modules/execute (Files): Add m4/posix_spawn.m4.
27904         * modules/pipe (Files): Add m4/posix_spawn.m4.
27905         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27906
27907 2008-10-01  Jim Meyering  <meyering@redhat.com>
27908
27909         remove trailing spaces
27910         * NEWS: Likewise.
27911         * lib/poll.c (poll): Likewise.
27912         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27913         * lib/winsock.c (rpl_close): Likewise.
27914         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27915         * modules/yield: Likewise.
27916         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27917         * tests/test-sys_select.c (connect_to_socket): Likewise.
27918
27919         fts.c: adjust a new interface to be more generally useful
27920         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27921         (fts_build): Adjust caller.
27922
27923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27924
27925         * modules/cond-tests: New file.
27926         * tests/test-cond.c: New file.
27927
27928 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27929             Bruno Haible  <bruno@clisp.org>
27930
27931         * modules/cond (Dependencies): Add errno, time.
27932         * lib/glthread/cond.h: Include <time.h>.
27933         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27934         across platforms.
27935
27936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27937             Bruno Haible  <bruno@clisp.org>
27938
27939         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27940
27941 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27942             Bruno Haible  <bruno@clisp.org>
27943
27944         * modules/tls-tests (Depends-on): Add thread, yield.
27945         (configure.ac): Remove all checks.
27946         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27947         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27948         gl_thread_self): Remove definitions. Include glthread/thread.h and
27949         glthread/yield.h instead.
27950         (test_tls): Pass an additional NULL argument to gl_thread_join.
27951
27952 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27953             Bruno Haible  <bruno@clisp.org>
27954
27955         * modules/lock-tests (Depends-on): Add thread, yield.
27956         (configure.ac): Remove all checks.
27957         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27958         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27959         gl_thread_self): Remove definitions. Include glthread/thread.h and
27960         glthread/yield.h instead.
27961         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27962         additional NULL argument to gl_thread_join.
27963
27964 2008-09-30  Bruno Haible  <bruno@clisp.org>
27965
27966         Fix the Win32 implementation of the 'thread' module.
27967         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27968         pointer type.
27969         (gl_thread_self): Invoke gl_thread_self_func.
27970         (gl_thread_self_func): New declaration.
27971         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27972         (do_init_self_key, init_self_key): New functions.
27973         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27974         Remove some fields.
27975         (running_threads, running_lock): Remove variables.
27976         (get_current_thread_handle): New function.
27977         (gl_thread_self_func, wrapper_func, glthread_create_func,
27978         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27979         simplified.
27980
27981 2008-09-30  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27984         files.
27985
27986 2008-09-30  Jim Meyering  <meyering@redhat.com>
27987
27988         fts.m4: correct the test for statfs.f_type
27989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27990         when checking for statfs.f_type.
27991
27992 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27993
27994         tests: avoid some compiler warnings
27995         * tests/test-memchr.c (main): Pass NULL indirectly.
27996         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27997
27998 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27999
28000         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28001         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28002         exactly specified dayshifts.
28003         (dayshift): New rule.
28004         (rel): Add dayshift.
28005         (relative_time_table) [tomorrow, yesterday, today, now]:
28006         Use tDAY_SHIFT in place of tDAY_UNIT.
28007         * tests/test-getdate.c: Add tests for now-disallowed countable
28008         dayshifts, e.g., "4 yesterday ago".
28009
28010 2008-09-29  Bruno Haible  <bruno@clisp.org>
28011
28012         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28013         * tests/test-posix_spawn1.in.sh: Renamed from
28014         tests/test-posix_spawn.in.sh.
28015         * tests/test-posix_spawn2.c: New file.
28016         * tests/test-posix_spawn2.in.sh: New file.
28017         * modules/posix_spawnp-tests (Files): Update.
28018         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28019
28020 2008-09-29  Bruno Haible  <bruno@clisp.org>
28021
28022         Propagate effects of putenv/setenv/unsetenv to child processes.
28023         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28024         * lib/pipe.c (create_pipe): Likewise.
28025
28026 2008-09-29  Bruno Haible  <bruno@clisp.org>
28027
28028         Enable use of shell scripts as executables in mingw.
28029         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28030         run the program as a shell script.
28031         * lib/pipe.c (create_pipe): Likewise.
28032         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28033         resulting array.
28034
28035 2008-09-29  Eric Blake  <ebb9@byu.net>
28036
28037         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28038
28039 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28040
28041         * doc/posix-functions/accept.texi: Update mingw problems.
28042         * doc/posix-functions/bind.texi: Update mingw problems.
28043         * doc/posix-functions/close.texi: Update mingw problems.
28044         * doc/posix-functions/connect.texi: Update mingw problems.
28045         * doc/posix-functions/getpeername.texi: Update mingw problems.
28046         * doc/posix-functions/getsockname.texi: Update mingw problems.
28047         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28048         * doc/posix-functions/ioctl.texi: Update mingw problems.
28049         * doc/posix-functions/listen.texi: Update mingw problems.
28050         * doc/posix-functions/recv.texi: Update mingw problems.
28051         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28052         * doc/posix-functions/select.texi: Update mingw problems.
28053         * doc/posix-functions/send.texi: Update mingw problems.
28054         * doc/posix-functions/sendto.texi: Update mingw problems.
28055         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28056         * doc/posix-functions/socket.texi: Update mingw problems.
28057
28058 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28059             Bruno Haible  <bruno@clisp.org>
28060
28061         * lib/sys_select.in.h: Include sys/time.h.
28062         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28063         * modules/sys_select: Depend on sys_time.
28064         * tests/test-sys_select.c: Test that sys/select.h defines struct
28065         timeval fully.
28066
28067 2008-09-29  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28070         * lib/sys_select.in.h: Likewise.
28071
28072 2008-09-29  Bruno Haible  <bruno@clisp.org>
28073
28074         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28075
28076 2008-09-29  Bruno Haible  <bruno@clisp.org>
28077
28078         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28079         Set LIBSOCKET instead of augmenting LIBS.
28080         * modules/sockets (Link): New section.
28081         * modules/sockets-tests (test_sockets_LDADD): New variable.
28082         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28083         * modules/poll-tests (test_poll_LDADD): New variable.
28084         * NEWS: Document the change.
28085
28086 2008-09-29  Bruno Haible  <bruno@clisp.org>
28087
28088         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28089         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28090         ARPA_INET_H directly.
28091         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28092
28093 2008-09-28  Bruno Haible  <bruno@clisp.org>
28094
28095         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28096         from gl_HEADER_SYS_SOCKET.
28097         (gl_HEADER_SYS_SOCKET): Invoke it.
28098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28099
28100 2008-09-28  Bruno Haible  <bruno@clisp.org>
28101
28102         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28103         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28104         Needed on OSF/1 4.0.
28105
28106 2008-09-28  Bruno Haible  <bruno@clisp.org>
28107
28108         Override open more carefully.
28109         * lib/open.c (orig_open): New function.
28110         (rpl_open): Use orig_open instead of open.
28111         * lib/fcntl.in.h: Add special invocation convention.
28112         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28113         (gl_FUNC_OPEN): Invoke it.
28114
28115         Override freopen more carefully.
28116         * lib/freopen.c (orig_freopen): New function.
28117         (rpl_freopen): Use orig_freopen instead of freopen.
28118         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28119         (gl_FUNC_FREOPEN): Invoke it.
28120
28121         Override fopen more carefully.
28122         * lib/fopen.c (orig_fopen): New function.
28123         (rpl_fopen): Use orig_fopen instead of fopen.
28124         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28125         (gl_FUNC_FOPEN): Invoke it.
28126         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28127
28128 2008-09-28  Bruno Haible  <bruno@clisp.org>
28129
28130         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28131         SIGPIPE.
28132
28133 2008-09-28  Bruno Haible  <bruno@clisp.org>
28134
28135         * tests/test-sigaction.c (handler, main): Disable the check whether
28136         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28137         glibc systems with LinuxThreads.
28138
28139 2008-09-28  Bruno Haible  <bruno@clisp.org>
28140
28141         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28142
28143         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28144         with AIX xlc.
28145         * lib/fcntl.in.h (open): Likewise.
28146         Reported by Rainer Tammer <tammer@tammer.net>.
28147
28148 2008-09-28  Bruno Haible  <bruno@clisp.org>
28149
28150         * modules/posix_spawnp-tests: New file.
28151         * tests/test-posix_spawn.c: New file.
28152         * tests/test-posix_spawn.in.sh: New file.
28153
28154         New module 'posix_spawnp'.
28155         * modules/posix_spawnp: New file.
28156         * lib/spawnp.c: New file, from GNU libc with modifications.
28157         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28158
28159         New module 'posix_spawn'.
28160         * modules/posix_spawn: New file.
28161         * lib/spawn.c: New file, from GNU libc with modifications.
28162         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28163
28164         New module 'posix_spawnattr_destroy'.
28165         * modules/posix_spawnattr_destroy: New file.
28166         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28167         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28168         module.
28169
28170         New module 'posix_spawnattr_setsigmask'.
28171         * modules/posix_spawnattr_setsigmask: New file.
28172         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28173         modifications.
28174         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28175         new module.
28176
28177         New module 'posix_spawnattr_getsigmask'.
28178         * modules/posix_spawnattr_getsigmask: New file.
28179         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28180         modifications.
28181         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28182         new module.
28183
28184         New module 'posix_spawnattr_setsigdefault'.
28185         * modules/posix_spawnattr_setsigdefault: New file.
28186         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28187         modifications.
28188         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28189         new module.
28190
28191         New module 'posix_spawnattr_getsigdefault'.
28192         * modules/posix_spawnattr_getsigdefault: New file.
28193         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28194         modifications.
28195         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28196         new module.
28197
28198         New module 'posix_spawnattr_setschedpolicy'.
28199         * modules/posix_spawnattr_setschedpolicy: New file.
28200         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28201         modifications.
28202         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28203         new module.
28204
28205         New module 'posix_spawnattr_getschedpolicy'.
28206         * modules/posix_spawnattr_getschedpolicy: New file.
28207         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28208         modifications.
28209         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28210         new module.
28211
28212         New module 'posix_spawnattr_setschedparam'.
28213         * modules/posix_spawnattr_setschedparam: New file.
28214         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28215         modifications.
28216         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28217         new module.
28218
28219         New module 'posix_spawnattr_getschedparam'.
28220         * modules/posix_spawnattr_getschedparam: New file.
28221         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28222         modifications.
28223         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28224         new module.
28225
28226         New module 'posix_spawnattr_setpgroup'.
28227         * modules/posix_spawnattr_setpgroup: New file.
28228         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28229         modifications.
28230         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28231         module.
28232
28233         New module 'posix_spawnattr_getpgroup'.
28234         * modules/posix_spawnattr_getpgroup: New file.
28235         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28236         modifications.
28237         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28238         module.
28239
28240         New module 'posix_spawnattr_setflags'.
28241         * modules/posix_spawnattr_setflags: New file.
28242         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28243         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28244         module.
28245
28246         New module 'posix_spawnattr_getflags'.
28247         * modules/posix_spawnattr_getflags: New file.
28248         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28249         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28250         module.
28251
28252         New module 'posix_spawnattr_init'.
28253         * modules/posix_spawnattr_init: New file.
28254         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28255         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28256         module.
28257
28258         New module 'posix_spawn_file_actions_destroy'.
28259         * modules/posix_spawn_file_actions_destroy: New file.
28260         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28261         modifications.
28262         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28263         the new module.
28264
28265         New module 'posix_spawn_file_actions_addopen'.
28266         * modules/posix_spawn_file_actions_addopen: New file.
28267         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28268         modifications.
28269         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28270         the new module.
28271
28272         New module 'posix_spawn_file_actions_adddup2'.
28273         * modules/posix_spawn_file_actions_adddup2: New file.
28274         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28275         modifications.
28276         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28277         the new module.
28278
28279         New module 'posix_spawn_file_actions_addclose'.
28280         * modules/posix_spawn_file_actions_addclose: New file.
28281         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28282         modifications.
28283         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28284         the new module.
28285
28286         New module 'posix_spawn_file_actions_init'.
28287         * modules/posix_spawn_file_actions_init: New file.
28288         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28289         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28290         new module.
28291
28292         New module 'posix_spawn-internal'.
28293         * modules/posix_spawn-internal: New file.
28294         * lib/spawn_int.h: New file, from GNU libc with modifications.
28295         * lib/spawni.c: New file, from GNU libc with modifications.
28296         * m4/posix_spawn.m4: New file.
28297
28298         New module 'spawn'.
28299         * modules/spawn: New file.
28300         * lib/spawn.in.h: New file, from GNU libc with modifications.
28301         * m4/spawn_h.m4: New file.
28302         * doc/posix-headers/spawn.texi: Mention the new module.
28303
28304 2008-09-28  Bruno Haible  <bruno@clisp.org>
28305
28306         * modules/sched-tests: New file.
28307         * tests/test-sched.c: New file.
28308
28309         New module 'sched'.
28310         * modules/sched: New file.
28311         * lib/sched.in.h: New file.
28312         * m4/sched_h.m4: New file.
28313         * doc/posix-headers/sched.texi: Mention the new module.
28314
28315 2008-09-27  Eric Blake  <ebb9@byu.net>
28316
28317         Fix previous patch, and tweak references to $0.
28318         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28319         (func_version, func_gnulib_dir): Don't call this program
28320         gnulib-tool.
28321         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28322         with using $0 in function.
28323         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28324         (func_fatal_error): Reuse the name the user invoked us with.
28325
28326 2008-09-27  Bruno Haible  <bruno@clisp.org>
28327
28328         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28329         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28330         (gl_ICONV_H): Not here.
28331         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28332         instead of assigning ICONV_H directly.
28333
28334         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28336         WCHAR_H directly.
28337
28338 2008-09-27  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28341         * modules/arpa_inet (Depends-on): Add link-warning.
28342         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28343         * modules/unistd (Makefile.am): Likewise.
28344
28345 2008-09-26  Bruno Haible  <bruno@clisp.org>
28346
28347         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28348         variables.
28349         (func_version): Essentially copied from gnulib-tool.
28350         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28351         func_readlink): Copied from gnulib-tool.
28352
28353 2008-09-26  Bruno Haible  <bruno@clisp.org>
28354
28355         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28356         invoking git-version-gen.
28357
28358 2008-09-26  Bruno Haible  <bruno@clisp.org>
28359
28360         * posix-modules: Update to directory names changed on 2008-01-19.
28361         Remove commas in output before splitting into words. No more need to
28362         avoid 'ftruncate' since 2007-02-19.
28363
28364 2008-09-26  Bruno Haible  <bruno@clisp.org>
28365
28366         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28367
28368 2008-09-26  Bruno Haible  <bruno@clisp.org>
28369
28370         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28371         * modules/fwriteerror (Depends-on): Add errno.
28372
28373 2008-09-26  Bruno Haible  <bruno@clisp.org>
28374
28375         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28376         * tests/test-vc-list-files-cvs.sh: Likewise.
28377
28378 2008-09-26  Bruno Haible  <bruno@clisp.org>
28379
28380         * doc/posix-headers/sys_resource.texi: Reorder items.
28381
28382 2008-09-26  Jim Meyering  <meyering@redhat.com>
28383
28384         fts: tweak inode comparison function
28385         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28386         inode numbers, as documented.
28387
28388         fts: sort dirent entries on inode number before traversing
28389         This avoids a quadratic, seek-related performance penalty when
28390         operating on a directory containing many entries (measurable at 10k;
28391         3.5 hours at 2 million entries with a cold cache) on certain types
28392         of file systems, including ext3 and ext4, but not tmpfs.
28393         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28394         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28395         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28396         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28397         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28398         (fts_build): Set the stat.st_ino member from D_INO.
28399         If it is likely to be useful, sort dirent entries on inode number.
28400
28401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28402         and the struct statfs.f_type member.
28403         * modules/fts (Depends-on): Add d-ino.
28404
28405 2008-09-26  Bruno Haible  <bruno@clisp.org>
28406
28407         * modules/sigpipe-die (Depends-on): Add sigpipe.
28408
28409         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28410         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28411         and GNULIB_STDIO_H_SIGPIPE are set.
28412         * lib/stdio-write.c: New file.
28413         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28414         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28415         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28416         REPLACE_STDIO_WRITE_FUNCS.
28417         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28418         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28419         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28420         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28421         * modules/stdio (Files): Add lib/stdio-write.c.
28422         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28423         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28424         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28425         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28426         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28427         REPLACE_FPRINTF_POSIX.
28428         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28429         REPLACE_PRINTF_POSIX.
28430         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28431         REPLACE_VFPRINTF_POSIX.
28432         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28433         REPLACE_VPRINTF_POSIX.
28434         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28435         SIGPIPE issue.
28436         * doc/posix-functions/fputc.texi: Likewise.
28437         * doc/posix-functions/fputs.texi: Likewise.
28438         * doc/posix-functions/fwrite.texi: Likewise.
28439         * doc/posix-functions/printf.texi: Likewise.
28440         * doc/posix-functions/putc.texi: Likewise.
28441         * doc/posix-functions/putchar.texi: Likewise.
28442         * doc/posix-functions/puts.texi: Likewise.
28443         * doc/posix-functions/vfprintf.texi: Likewise.
28444         * doc/posix-functions/vprintf.texi: Likewise.
28445
28446         * modules/safe-write (Depends-on): Add write.
28447
28448         * modules/sigpipe-tests: New file.
28449         * tests/test-sigpipe.c: New file.
28450         * tests/test-sigpipe.sh: New file.
28451
28452         * modules/write: New file.
28453         * lib/unistd.in.h: Include <sys/types.h>.
28454         (write): New declaration.
28455         * lib/write.c: New file.
28456         * m4/write.m4: New file.
28457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28458         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28459         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28460         GNULIB_WRITE, REPLACE_WRITE.
28461         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28462         and the SIGPIPE issue.
28463
28464         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28465         (raise): New declaration.
28466         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28467         (ext_signal): New function.
28468         (rpl_raise): New function.
28469         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28470         GNULIB_SIGNAL_H_SIGPIPE.
28471         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28472         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28473
28474         * modules/sigpipe: New file.
28475         * m4/sigpipe.m4: New file.
28476
28477 2008-09-25  Derek Price  <derek@ximbiot.com>
28478             Bruno Haible  <bruno@clisp.org>
28479
28480         * gnulib-tool (func_import): Report all license incompatibilities, not
28481         just the first one.
28482
28483 2008-09-25  Bruno Haible  <bruno@clisp.org>
28484
28485         * gnulib-tool (func_import): When computing the edits, consider not
28486         only the Makefile.ams that exist but also those that will be generated.
28487
28488 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28489
28490         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28491         fixes gnulib-tool --test warning about duplicate dependency.
28492
28493 2008-09-25  Bruno Haible  <bruno@clisp.org>
28494
28495         * gnulib-tool: Don't ask the user to perform edits in the generated
28496         Makefile.ams.
28497         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28498         apply to the Makefile.am being generated.
28499         (func_emit_tests_Makefile_am): Execute edits that apply to the
28500         Makefile.am being generated.
28501         (func_import): Setup list of Makefile.am edits before emitting the
28502         Makefile.ams, not at the end.
28503         (func_create_testdir): Update.
28504         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28505
28506 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28507
28508         * gnulib-tool (func_import): Store the --tests-base option in the
28509         comment in gnulib-cache.m4.
28510
28511 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28512
28513         * NEWS: Document increased portability that sys_select now provides.
28514
28515         * lib/sys_select.in.h: Install select wrapper.
28516         * lib/sys_socket.in.h: Use more descriptive name when there is no
28517         select wrapper.
28518         * lib/winsock-select.c: New.
28519         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28520         Require gl_HEADER_SYS_SOCKET.
28521         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28522         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28523         * tests/test-sys_select.c: Add functional tests.
28524
28525 2008-09-24  Eric Blake  <ebb9@byu.net>
28526
28527         open, fopen: close fd leak in last patch
28528         * lib/open.c (rpl_open): Close fd before returning error.
28529         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28530         * doc/posix-functions/open.texi (open): Document that Irix also
28531         has the bug.
28532         * doc/posix-functions/fopen.texi (fopen): Likewise.
28533         Reported by Paolo Bonzini.
28534
28535 2008-09-24  Bruno Haible  <bruno@clisp.org>
28536
28537         Ensure that a filename ending in a slash cannot be used to access a
28538         non-directory.
28539         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28540         to check whether it's really a directory.
28541         * lib/fopen.c: Include fcntl.h, unistd.h.
28542         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28543         and fdopen().
28544         * modules/fopen (Depends-on): Add unistd.
28545         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28546         * tests/test-fopen.c (main): Likewise.
28547         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28548         * doc/posix-functions/fopen.texi: Likewise.
28549         Reported by Eric Blake.
28550
28551 2008-09-23  Eric Blake  <ebb9@byu.net>
28552
28553         c-stack: avoid compiler optimizations when provoking overflow
28554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28555         recursion harder to optimize, to ensure a stack overflow occurs.
28556         * tests/test-c-stack.c (recurse): Likewise.
28557         Borrowed from libsigsegv.
28558
28559         c-stack: work around Irix sigaltstack bug
28560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28561         whether sigaltstack uses wrong end of stack_t (copied in part from
28562         libsigsegv).
28563         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28564         Irix bug, without requiring an over-allocation.
28565         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28566         bug.
28567
28568         fopen: document mingw bug on directories
28569         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28570         not allowing a stream visiting a directory, even though reading
28571         from such a stream is not portable.
28572
28573 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28574
28575         * lib/poll.c: Rewrite.
28576         * modules/poll: Depend on alloca.
28577
28578 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28579
28580         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28581         instead define prototypes for a full set of wrappers.  Ensure
28582         that Cygwin does not use the compatibility code, which is only
28583         for MinGW.
28584         * lib/winsock.c: New.
28585         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28586         * modules/sys_socket: Add lib/winsock.c.
28587
28588         * modules/poll-tests: Add errno and perror.
28589         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28590
28591 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28592
28593         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28594
28595 2008-09-23  Bruno Haible  <bruno@clisp.org>
28596
28597         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28598         * doc/glibc-functions/*: Likewise.
28599
28600 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28601
28602         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28603         success.
28604
28605 2008-09-22  Eric Blake  <ebb9@byu.net>
28606             Bruno Haible  <bruno@clisp.org>
28607
28608         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28609         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28610         supply %A but mishandle pseudo-NaN.
28611         Reported by Simon Josefsson.
28612
28613 2008-09-21  Bruno Haible  <bruno@clisp.org>
28614
28615         * tests/test-lock.c (main): Tweak skip message.
28616         * tests/test-tls.c (main): Likewise.
28617
28618 2008-09-21  Bruno Haible  <bruno@clisp.org>
28619
28620         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28621         whether 'struct sigaction' has sa_sigaction here...
28622         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28623         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28624
28625 2008-09-21  Bruno Haible  <bruno@clisp.org>
28626
28627         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28628         section.
28629         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28630         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28631         the new section.
28632         (Support for obsolete systems lacking POSIX:2001): New section.
28633         (String handling <string.h>): Move strdup to the new section.
28634         Suggested by Simon Josefsson and Paolo Bonzini.
28635
28636 2008-09-21  Bruno Haible  <bruno@clisp.org>
28637
28638         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28639         exponents in %e and %g results on 'long double'. Needed for mingw's
28640         improved *printf functions.
28641         * tests/test-vasprintf-posix.c (test_function): Likewise.
28642         * tests/test-snprintf-posix.h (test_function): Likewise.
28643         * tests/test-sprintf-posix.h (test_function): Likewise.
28644         Reported by Eric Blake.
28645
28646 2008-09-21  Bruno Haible  <bruno@clisp.org>
28647
28648         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28649         * tests/test-sprintf-posix.h (test_function): Likewise.
28650
28651 2008-09-21  Bruno Haible  <bruno@clisp.org>
28652
28653         * modules/getpass (Depends-on): Add strdup-posix.
28654
28655         New module 'strdup-posix'.
28656         * modules/strdup-posix: New file.
28657         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28658         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28660         REPLACE_STRDUP.
28661         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28662         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28663         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28664         strdup-posix.
28665
28666         * modules/strdup (Depends-on): Remove malloc-posix.
28667
28668 2008-09-20  Bruno Haible  <bruno@clisp.org>
28669
28670         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28671         Wildenhues.
28672
28673 2008-09-20  Bruno Haible  <bruno@clisp.org>
28674
28675         Ensure that wint_t gets defined on IRIX 5.3.
28676         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28677         * lib/wctype.in.h (wint_t): Likewise.
28678         (__wctype_wint_t): Remove type.
28679         (isw*): Use wint_t instead of __wctype_wint_t.
28680         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28681         * modules/wchar (Files): Add m4/wint_t.m4.
28682         (Makefile.am): Substitute HAVE_WINT_T.
28683         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28684         * tests/test-wctype.c: Check that wint_t is defined.
28685         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28686         * doc/posix-headers/wctype.texi: Likewise.
28687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28688
28689 2008-09-18  Bruno Haible  <bruno@clisp.org>
28690
28691         * gnulib-tool (func_exit): Update comment.
28692
28693 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28694
28695         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28696         assumes strdup exists and does not depend on strdup to return
28697         ENOMEM on out of memory conditions.
28698
28699 2008-09-18  Bruno Haible  <bruno@clisp.org>
28700
28701         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28702         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28703         digits for the exponent.
28704
28705 2008-09-18  Jim Meyering  <meyering@redhat.com>
28706             Bruno Haible  <bruno@clisp.org>
28707
28708         * lib/vasnprintf.c (decimal_point_char): Define also if
28709         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28710
28711 2008-09-16  Bruno Haible  <bruno@clisp.org>
28712         and Eric Blake  <ebb9@byu.net>
28713
28714         vasnprintf: support Irix 5.3
28715         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28716         that mishandle long double infinity.
28717         Reported by Tom G. Christensen.
28718
28719 2008-09-16  Bruno Haible  <bruno@clisp.org>
28720
28721         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28722         Solaris 9.
28723         * doc/glibc-functions/alphasort.texi: Likewise.
28724         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28725
28726 2008-09-16  Jim Meyering  <meyering@redhat.com>
28727
28728         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28729         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28730         a umask modification leak out of a subshell.  Otherwise, the
28731         opensolaris /bin/sh would be accepted and thus cause unwarranted
28732         failures in the coreutils test suite.
28733
28734 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28735
28736         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28737         to succeed.
28738
28739 2008-09-16  Jim Meyering  <meyering@redhat.com>
28740
28741         avoid spurious test failure when library is built without ACL support
28742         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28743         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28744         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28745         * tests/test-copy-acl.sh: Likewise.
28746
28747 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28748
28749         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28750         based on character occurrence counts.
28751
28752 2008-09-15  Eric Blake  <ebb9@byu.net>
28753
28754         tests: avoid some compiler warnings
28755         * tests/test-memchr.c (main): Pass NULL indirectly.
28756         * tests/test-closein.c (main): Avoid unused variable.
28757
28758 2008-09-15  Bruno Haible  <bruno@clisp.org>
28759
28760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28761         are missing on OpenBSD 4.0 individually.
28762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28763
28764 2008-09-15  Bruno Haible  <bruno@clisp.org>
28765
28766         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28767         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28768         * doc/posix-functions/perror.texi: Likewise.
28769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28770         is missing.
28771         Reported by Eric Blake.
28772
28773         * lib/errno.in.h: Use replacement values >= 2000.
28774         Reported by Eric Blake.
28775
28776 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28777
28778         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28779         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28780         limit.
28781         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28782         compareseq was aborted.
28783
28784 2008-09-14  Bruno Haible  <bruno@clisp.org>
28785
28786         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28787         yvec_edit_count.
28788         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28789         (fstrcmp_bounded): Simplify result computation accordingly.
28790
28791 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28792
28793         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28794         (fstrcmp): Define in terms of fstrcmp_bounded.
28795         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28796         lower_bound argument.
28797         Return quickly if the result is certainly < lower_bound.
28798         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28799
28800 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28801
28802         * lib/diffseq.h (EARLY_ABORT): New macro.
28803         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28804         evaluates to true.
28805
28806 2008-09-14  Bruno Haible  <bruno@clisp.org>
28807
28808         * modules/perror-tests: New file.
28809         * tests/test-perror.sh: New file.
28810         * tests/test-perror.c: New file.
28811
28812         New module 'perror'.
28813         * lib/stdio.in.h (perror): New declaration.
28814         * lib/perror.c: New file.
28815         * m4/perror.m4: New file.
28816         * modules/perror: New file.
28817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28818         * doc/posix-functions/perror.texi: Mention the perror module.
28819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28820         REPLACE_PERROR.
28821         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28822         REPLACE_PERROR.
28823
28824 2008-09-14  Bruno Haible  <bruno@clisp.org>
28825
28826         * modules/stdio (Makefile.am): Reorder to match the order in
28827         lib/stdio.in.h.
28828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28829
28830 2008-09-13  Bruno Haible  <bruno@clisp.org>
28831
28832         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28833
28834 2008-09-13  Bruno Haible  <bruno@clisp.org>
28835
28836         Extend strerror to cover the added errno values.
28837         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28838         (rpl_strerror): Provide error messages for the added errno values and
28839         for the WSA* values.
28840         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28841         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28842         strerror.
28843         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28844         * modules/strerror (Depends-on): Add errno.
28845         * doc/posix-functions/strerror.texi: Document the change.
28846         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28847         and EOVERFLOW.
28848
28849 2008-09-13  Bruno Haible  <bruno@clisp.org>
28850
28851         * modules/EOVERFLOW: Remove file.
28852         * m4/eoverflow.m4: Remove file.
28853         * modules/EOVERFLOW-tests: Remove file.
28854         * tests/test-EOVERFLOW.c: Remove file.
28855         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28856         * modules/ftell (Depends-on): Likewise.
28857         * modules/getdelim (Depends-on): Likewise.
28858         * modules/getugroups (Depends-on): Likewise.
28859         * modules/poll (Depends-on): Likewise.
28860         * modules/snprintf (Depends-on): Likewise.
28861         * modules/sprintf-posix (Depends-on): Likewise.
28862         * modules/vasnprintf (Depends-on): Likewise.
28863         * modules/vasprintf (Depends-on): Likewise.
28864         * modules/vfprintf-posix (Depends-on): Likewise.
28865         * modules/vsnprintf (Depends-on): Likewise.
28866         * modules/vsprintf-posix (Depends-on): Likewise.
28867         * modules/xvasprintf (Depends-on): Likewise.
28868         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28869         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28870         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28871         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28872         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28873         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28874         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28875         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28876         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28877         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28878         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28879         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28880         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28881         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28882         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28883         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28884         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28885         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28886         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28887         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28889         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28890         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28891         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28892         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28893         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28894         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28895         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28896         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28897         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28898         * MODULES.html.sh: Remove EOVERFLOW.
28899         * NEWS: Mention the change.
28900
28901 2008-09-13  Bruno Haible  <bruno@clisp.org>
28902
28903         * modules/errno-tests: New file.
28904         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28905
28906         * lib/errno.in.h: New file.
28907         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28908         * modules/errno: New file.
28909         * doc/posix-headers/errno.texi: Update documentation.
28910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28911
28912 2008-09-13  Bruno Haible  <bruno@clisp.org>
28913
28914         * tests/test-poll.c: Use #if for native Windows, rather than testing
28915         __MSVCRT__.
28916
28917 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28918             Bruno Haible  <bruno@clisp.org>
28919
28920         * lib/glob.c: Don't include <pwd.h> on native Windows.
28921         (WINDOWS32): New macro.
28922         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28923
28924 2008-09-13  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28927         (ETIMEDOUT): Remove macro.
28928         (glthread_cond_timedwait_multithreaded): New declaration.
28929         (glthread_cond_timedwait): Use it.
28930         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28931         (glthread_cond_timedwait_multithreaded): New function.
28932
28933 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28934
28935         * modules/poll-tests: Do not check for io.h.
28936         * tests/test-poll.c: Check for __MSVCRT__ instead.
28937
28938 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28939
28940         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28941         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28942         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28943
28944 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28945
28946         * modules/poll-tests: New.
28947         * tests/test-poll.c: New.
28948
28949 2008-09-12  Eric Blake  <ebb9@byu.net>
28950
28951         frexp: test for NetBSD failure on -0.0
28952         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28953         not all, bugs from NetBSD 3.0 have been fixed.
28954         * doc/posix-functions/frexp.texi (frexp): Document bug.
28955         Reported by Thomas Klausner.
28956
28957         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28958         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28959         literal -0.0.
28960         Reported by Jonathan C. Patschke <jp@centtech.com>.
28961
28962 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28963
28964         * lib/glthread/cond.h: Use dummy implementation also if
28965         USE_WIN32_THREADS.
28966
28967 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28968
28969         * modules/fnmatch-posix (License): Change to LGPLv2+.
28970         * modules/fnmatch-gnu (License): Likewise.
28971
28972 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28973
28974         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28975
28976 2008-09-11  Jim Meyering  <meyering@redhat.com>
28977
28978         * users.txt: Add gtk-vnc.
28979
28980 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28981
28982         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28983         rotate amounts.
28984
28985         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28986         required for 16-bit and 8-bit rotates.
28987         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28988         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28989         UINT8_MAX instead of hard-coded constants.
28990         Suggested by Paul Eggert.
28991
28992 2008-09-07  Bruno Haible  <bruno@clisp.org>
28993
28994         * tests/test-striconveh.c (main): Check behaviour when converting from
28995         UTF-7.
28996
28997         Make striconveh work better with stateful encodings.
28998         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28999         that iconv does not increment the inptr when returning -1/EINVAL.
29000
29001 2008-09-07  Bruno Haible  <bruno@clisp.org>
29002
29003         * build-aux/config.rpath: Update according to libtool-2.2.6.
29004         * build-aux/config.libpath: Likewise.
29005
29006 2008-09-06  Bruno Haible  <bruno@clisp.org>
29007
29008         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29009         * lib/freadptr.c (freadptr): Likewise.
29010         * lib/freadseek.c (freadptrinc): Likewise.
29011         Reported by Simon Josefsson.
29012
29013 2008-09-06  Bruno Haible  <bruno@clisp.org>
29014
29015         * modules/freadptr (License): Change to LGPLv2+.
29016         * modules/freadseek (License): Likewise.
29017         Suggested by Eric Blake.
29018
29019         * modules/memchr2 (License): Change to LGPLv2+.
29020         Approved by Eric Blake.
29021
29022 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29023             Bruno Haible  <bruno@clisp.org>
29024
29025         Make gnulib-tool work with native 'sed' on AIX.
29026         * gnulib-tool (sed_noop): New variable.
29027         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29028         func_add_or_update, func_create_testdir): Use it to initialize sed
29029         script variables.
29030         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29031
29032 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29033             Bruno Haible  <bruno@clisp.org>
29034
29035         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29036         also works after #include directives.
29037
29038 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
29039
29040         getdate.y: reject an out-of-range timezone value
29041         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29042         the range [-24...+24].  When specified with only one or two digits,
29043         * tests/test-getdate.c: Tests for the fix.
29044         * doc/getdate.texi: Document this change.
29045
29046 2008-09-03  Bruno Haible  <bruno@clisp.org>
29047
29048         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29049
29050 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29051
29052         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29053         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29054         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29055         Blake <ebb9@byu.net>.
29056
29057         * tests/test-bitrotate.c: Add more test vectors.
29058
29059 2008-09-02  Eric Blake  <ebb9@byu.net>
29060
29061         vasnprintf-posix: handle large precision via %.*d
29062         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29063         when handling it ourselves.
29064         * tests/test-vasnprintf-posix.c (test_function): Add test.
29065         * tests/test-snprintf-posix.h (test_function): Likewise.
29066         * tests/test-sprintf-posix.h (test_function): Likewise.
29067         * tests/test-vasprintf-posix.c (test_function): Likewise.
29068         Reported by Alain Guibert.
29069
29070 2008-09-01  Eric Blake  <ebb9@byu.net>
29071
29072         c-stack: make configure-time check more robust
29073         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29074         successful sigaction call.
29075         Reported by Tom G. Christensen.
29076
29077 2008-09-01  Bruno Haible  <bruno@clisp.org>
29078
29079         New module 'findprog-lgpl'.
29080         * modules/findprog-lgpl: New file.
29081         * lib/findprog-lgpl.c: New file.
29082         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29083         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29084         to decide whether to use strdup or xstrdup, concatenated_filename or
29085         xconcatenated_filename.
29086
29087 2008-09-01  Bruno Haible  <bruno@clisp.org>
29088
29089         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29090         'xconcat-filename' (GPL).
29091         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29092         (License): Change to LGPLv2+.
29093         * modules/xconcat-filename: New file.
29094         * lib/concat-filename.h (concatenated_filename): Change specification.
29095         (xconcatenated_filename): New declaration.
29096         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29097         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29098         memory situations.
29099         * lib/xconcat-filename.c: New file.
29100         * NEWS: Mention the change.
29101         * lib/findprog.c: Include concat-filename.h, not filename.h.
29102         (find_in_path): Use xconcatenated_filename instead of
29103         concatenated_filename.
29104         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29105         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29106         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29107         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29108         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29109         instead of concatenated_filename.
29110         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29111         (execute_java_class): Use xconcatenated_filename instead of
29112         concatenated_filename.
29113         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29114         * modules/javacomp (Depends-on): Likewise.
29115         * modules/javaexec (Depends-on): Likewise.
29116
29117 2008-09-01  Bruno Haible  <bruno@clisp.org>
29118
29119         Split module 'filename' into 'filename' and 'concat-filename'.
29120         * modules/filename: Keep only lib/filename.h.
29121         (License): Change to LGPLv2+.
29122         * modules/concat-filename: New file, extracted from modules/filename.
29123         * lib/filename.h (concatenated_filename): Remove declaration.
29124         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29125         * lib/concat-filename.c: Include concat-filename.h.
29126         * NEWS: Mention the change.
29127
29128 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29129
29130         * lib/bitrotate.h (rotl8, rotr8): Add.
29131
29132         * modules/bitrotate (configure.ac): Need
29133         AC_REQUIRE([AC_C_INLINE]).
29134         (Description): Mention stdint.h.  Reported by Bruno Haible
29135         <bruno@clisp.org>.
29136
29137         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29138         Paolo Bonzini <bonzini@gnu.org>.
29139
29140 2008-08-31  Bruno Haible  <bruno@clisp.org>
29141
29142         Assume Solaris specific bi-arch conventions on Solaris systems.
29143         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29144         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29145         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29146         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29147         like acl_libdirstem.
29148         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29149         acl_libdirstem.
29150         * NEWS: Mention the change.
29151         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29152
29153 2008-08-31  Jim Meyering  <meyering@redhat.com>
29154
29155         * lib/strftime.h: Add comments describing the two added arguments.
29156
29157         remove duplicate #include directives
29158         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29159         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29160
29161 2008-08-31  Bruno Haible  <bruno@clisp.org>
29162
29163         New module 'sigpipe-die'.
29164         * modules/sigpipe-die: New file.
29165         * lib/sigpipe-die.h: New file.
29166         * lib/sigpipe-die.c: New file.
29167         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29168
29169 2008-08-31  Bruno Haible  <bruno@clisp.org>
29170
29171         Don't override previously installed signal handlers.
29172         * lib/fatal-signal.c (saved_sigactions): New variable.
29173         (uninstall_handlers): Reset the signal to the saved handler, not
29174         to SIG_DFL (except when ignored).
29175         (install_handlers): Save the previous handlers.
29176
29177 2008-08-30  Bruno Haible  <bruno@clisp.org>
29178
29179         * gnulib-tool (func_reset_sigpipe): New function.
29180         (func_get_automake_snippet, func_modules_transitive_closure,
29181         func_import): Invoke it before a join command that reads from stdin,
29182         to avoid "echo: write error: Broken pipe" error messages on stderr.
29183         Reported by Sam Steingold <sds@gnu.org>.
29184
29185 2008-08-30  Bruno Haible  <bruno@clisp.org>
29186
29187         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29188         Code copied from m4/open.m4.
29189         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29190         access and the filename ends in a slash. Code copied from lib/open.c.
29191         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29192         * tests/test-fopen.c (main): Check against bug with trailing slash.
29193
29194 2008-08-29  Bruno Haible  <bruno@clisp.org>
29195
29196         Avoid some "gcc -pedantic" warnings.
29197         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29198         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29199         * lib/dirent.in.h: Likewise.
29200         * lib/fcntl.in.h: Likewise.
29201         * lib/float.in.h: Likewise.
29202         * lib/iconv.in.h: Likewise.
29203         * lib/inttypes.in.h: Likewise.
29204         * lib/locale.in.h: Likewise.
29205         * lib/math.in.h: Likewise.
29206         * lib/netinet_in.in.h: Likewise.
29207         * lib/search.in.h: Likewise.
29208         * lib/signal.in.h: Likewise.
29209         * lib/stdarg.in.h: Likewise.
29210         * lib/stdint.in.h: Likewise.
29211         * lib/stdio.in.h: Likewise.
29212         * lib/stdlib.in.h: Likewise.
29213         * lib/string.in.h: Likewise.
29214         * lib/strings.in.h: Likewise.
29215         * lib/sys_select.in.h: Likewise.
29216         * lib/sys_socket.in.h: Likewise.
29217         * lib/sys_stat.in.h: Likewise.
29218         * lib/sys_time.in.h: Likewise.
29219         * lib/sysexits.in.h: Likewise.
29220         * lib/time.in.h: Likewise.
29221         * lib/unistd.in.h: Likewise.
29222         * lib/wchar.in.h: Likewise.
29223         * lib/wctype.in.h: Likewise.
29224         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29225         * modules/fchdir (Makefile.am): Likewise.
29226         * modules/fcntl (Makefile.am): Likewise.
29227         * modules/float (Makefile.am): Likewise.
29228         * modules/iconv_open (Makefile.am): Likewise.
29229         * modules/inttypes (Makefile.am): Likewise.
29230         * modules/locale (Makefile.am): Likewise.
29231         * modules/math (Makefile.am): Likewise.
29232         * modules/netinet_in (Makefile.am): Likewise.
29233         * modules/search (Makefile.am): Likewise.
29234         * modules/signal (Makefile.am): Likewise.
29235         * modules/stdarg (Makefile.am): Likewise.
29236         * modules/stdint (Makefile.am): Likewise.
29237         * modules/stdio (Makefile.am): Likewise.
29238         * modules/stdlib (Makefile.am): Likewise.
29239         * modules/string (Makefile.am): Likewise.
29240         * modules/strings (Makefile.am): Likewise.
29241         * modules/sys_select (Makefile.am): Likewise.
29242         * modules/sys_socket (Makefile.am): Likewise.
29243         * modules/sys_stat (Makefile.am): Likewise.
29244         * modules/sys_time (Makefile.am): Likewise.
29245         * modules/sysexits (Makefile.am): Likewise.
29246         * modules/time (Makefile.am): Likewise.
29247         * modules/unistd (Makefile.am): Likewise.
29248         * modules/wchar (Makefile.am): Likewise.
29249         * modules/wctype (Makefile.am): Likewise.
29250         Reported by Reuben Thomas <rrt@sc3d.org>.
29251
29252 2008-08-29  Bruno Haible  <bruno@clisp.org>
29253
29254         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29255         any more.
29256
29257 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29258
29259         * MODULES.html.sh (Misc): Add bitrotate.
29260
29261         * modules/bitrotate: New file.
29262
29263         * lib/bitrotate.h: New file.
29264
29265         * modules/bitrotate-tests: New file.
29266
29267         * tests/test-bitrotate.c: New file.
29268
29269         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29270         on the bitrotate module.
29271
29272         * lib/arctwo.c: Use new bitrotate module.
29273
29274 2008-08-29  Jim Meyering  <meyering@redhat.com>
29275
29276         bootstrap: merge changes from coreutils
29277         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29278         of copied files.  Remove a kludge, now that this is fixed.
29279         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29280         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29281         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29282
29283 2008-08-29  Bruno Haible  <bruno@clisp.org>
29284
29285         * MODULES.html.sh: Remove --cvs-urls option.
29286
29287 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29288
29289         maint.mk: adjust to file name change
29290         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29291
29292 2008-08-28  Jim Meyering  <meyering@redhat.com>
29293
29294         * modules/getndelim2 (License): Relicense to LGPLv2+.
29295         Approved by Richard Stallman for the version of 1995, and by
29296         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29297
29298 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29299
29300         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29301         dummy if one is not available.  Do not touch them if
29302         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29303         (getc_maybe_unlocked): New.
29304         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29305
29306 2008-08-26  Eric Blake  <ebb9@byu.net>
29307
29308         doc/INSTALL: resync from autoconf
29309         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29310         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29311         moving...
29312         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29313         * INSTALL: Regenerate.
29314         * INSTALL.ISO: New file.
29315         * INSTALL.UTF-8: Likewise.
29316
29317 2008-08-26  Jim Meyering  <meyering@redhat.com>
29318
29319         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29320         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29321         these definitions conditional, so that they may be overridden, too.
29322
29323 2008-08-26  Bruno Haible  <bruno@clisp.org>
29324
29325         Generate INSTALL file variants with prettier quotes.
29326         * doc/Makefile (INSTALL_PRELUDE): New macro.
29327         (INSTALL): Use it.
29328         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29329
29330 2008-08-26  Bruno Haible  <bruno@clisp.org>
29331
29332         Run makeinfo in an English locale.
29333         * doc/Makefile (MAKEINFO): New variable.
29334
29335 2008-08-26  Bruno Haible  <bruno@clisp.org>
29336
29337         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29338         Suggested by Eric Blake.
29339
29340 2008-08-25  Bruno Haible  <bruno@clisp.org>
29341
29342         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29343
29344 2008-08-25  Eric Blake  <ebb9@byu.net>
29345
29346         c-stack: test that stack overflow can be caught
29347         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29348         that platform allows handling stack overflow; at least OS/2 EMX
29349         has sigaltstack, but crashes before transferring control to
29350         handler on stack overflow.
29351         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29352         check for HAVE_STACK_OVERFLOW_HANDLING.
29353         Reported by Elbert Pol.
29354
29355 2008-08-25  Bruno Haible  <bruno@clisp.org>
29356
29357         * doc/posix-functions/strftime.texi: Fix description of strftime
29358         module.
29359
29360 2008-08-24  Bruno Haible  <bruno@clisp.org>
29361
29362         * tests/uniwidth/test-uc_width2.c: New file.
29363         * tests/uniwidth/test-uc_width2.sh: New file.
29364         * modules/uniwidth/width-tests (Files): Add the new files.
29365         (TESTS): Add uniwidth/test-uc_width2.sh.
29366         (TESTS_ENVIRONMENT): New variable.
29367         (check_PROGRAMS): Add test-uc_width2.
29368         (test_uc_width2_SOURCES): New variable.
29369
29370         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29371         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29372         not 0x00AB.
29373         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29374
29375 2008-08-22  Eric Blake  <ebb9@byu.net>
29376
29377         test-lock, test-tls: mention why a test is skipped
29378         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29379         skipped.
29380         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29381
29382         count-one-bits: relax license
29383         * modules/count-one-bits (License): Relicense to LGPLv2+.
29384         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29385
29386 2008-08-22  Andreas Schwab  <schwab@suse.de>
29387
29388         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29389         Remove spurious space in assignment.
29390
29391 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29392
29393         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29394         Paul Eggert <eggert@CS.UCLA.EDU>.
29395
29396 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29397
29398         * modules/gettext: Add m4/threadlib.m4.
29399
29400 2008-08-19  Eric Blake  <ebb9@byu.net>
29401
29402         test-c-stack: fix compilation failure on FreeBSD 5.0
29403         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29404         headers before <sys/resource.h>.
29405         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29406         the bug.
29407         Reported by Nelson H. F. Beebe.
29408
29409         strverscmp: migrate from "strverscmp.h" to <string.h>
29410         * modules/string (Makefile.am): Add new hooks.
29411         * modules/strverscmp (Files): Remove strverscmp.h.
29412         (Depends-on): Add string.
29413         (configure.ac): Add indicator.
29414         (Include): Mention new header.
29415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29416         defaults.
29417         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29418         results.
29419         * lib/strverscmp.h: Delete.
29420         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29421         * tests/test-strverscmp.c (includes): Adjust client.
29422         * lib/check-version.c (includes): Likewise.
29423         * NEWS: Document the change.
29424
29425         strverscmp: add unit test
29426         * modules/strverscmp-tests: New file.
29427         * tests/test-strverscmp.c: Likewise.
29428
29429 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29430
29431         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29432         regarding Windows crypto stuff, from Mono.
29433
29434 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29435
29436         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29437         if present, for intel RND.  Return error on failures.
29438
29439 2008-08-18  Ben Pfaff  <blp@gnu.org>
29440
29441         gitlog-to-changelog: give better diagnostic for failed pipe-open
29442         * build-aux/gitlog-to-changelog: Improve error message: suggest
29443         that the version of Git may be too old.
29444
29445 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29446
29447         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29448         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29449
29450 2008-08-18  Bruno Haible  <bruno@clisp.org>
29451
29452         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29453         pthread_in_use().
29454
29455 2008-08-18  Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/glthread/threadlib.c: Include <pthread.h>.
29458
29459 2008-08-18  Bruno Haible  <bruno@clisp.org>
29460
29461         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29462         glthread_recursive_lock_* macros.
29463         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29464         Fix syntax error.
29465
29466 2008-08-18  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/glthread/thread.c: Avoid forcing a context switch right after
29469         thread creation.
29470
29471 2008-08-17  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29474         * lib/glthread/thread.h: Provide Win32 specific implementation.
29475         * modules/thread (Files): Add lib/glthread/thread.c.
29476         (Depends-on): Add lock.
29477         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29478
29479 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29480
29481         New module 'yield'.
29482         * modules/yield: New file.
29483         * lib/glthread/yield.h: New file.
29484         * m4/yield.m4: New file.
29485         * MODULES.html.sh (Multithreading): Add yield.
29486
29487 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29488
29489         New module 'thread'.
29490         * modules/thread: New file.
29491         * lib/glthread/thread.h: New file.
29492         * m4/thread.m4: New file.
29493         * MODULES.html.sh (Multithreading): Add thread.
29494
29495 2008-08-17  Bruno Haible  <bruno@clisp.org>
29496
29497         * lib/glthread/lock.h: Include <stdlib.h> always.
29498         * lib/glthread/tls.h: Likewise.
29499         * lib/glthread/cond.h: Likewise.
29500
29501 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29502
29503         New module 'cond'.
29504         * modules/cond: New file.
29505         * lib/glthread/cond.h: New file.
29506         * lib/glthread/cond.c: New file.
29507         * m4/cond.m4: New file.
29508         * MODULES.html.sh (Multithreading): Add cond.
29509
29510 2008-08-16  Eric Blake  <ebb9@byu.net>
29511
29512         c-stack: fix regression on Irix 5.3 from 2008-06-21
29513         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29514         sa_sigaction...
29515         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29516         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29517         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29518         * modules/signal (Makefile.am): Use the value.
29519         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29520         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29521         * doc/posix-headers/signal.texi (signal.h): Document this
29522         portability issue.
29523         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29524         Reported by Tom G. Christensen.
29525
29526 2008-08-17  Bruno Haible  <bruno@clisp.org>
29527
29528         New module 'threadlib'.
29529         * modules/threadlib: New file.
29530         * lib/glthread/threadlib.c: New file, extracted from
29531         lib/glthread/lock.c.
29532         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29533         functions.
29534         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29535         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29536         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29537         macros.
29538         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29539         (gl_DISABLE_THREADS): Remove macro.
29540         * modules/lock (Files): Remove build-aux/config.rpath.
29541         (Depends-on): Remove havelib. Add threadlib.
29542         (configure.ac-early): Remove section.
29543         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29544         * modules/tls (Depends-on): Remove lock. Add threadlib.
29545         (Link): New section, copied from threadlib.
29546         * MODULES.html.sh (Multithreading): Add threadlib.
29547
29548 2008-08-14  Bruno Haible  <bruno@clisp.org>
29549
29550         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29551         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29552         glthread_rwlock_unlock, glthread_rwlock_destroy,
29553         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29554         glthread_recursive_lock_destroy): Define as macros always.
29555         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29556         glthread_lock_lock.
29557         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29558         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29559         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29560         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29561         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29562         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29563         (glthread_recursive_lock_lock_func): Renamed from
29564         glthread_recursive_lock_lock.
29565         (glthread_recursive_lock_unlock_func): Renamed from
29566         glthread_recursive_lock_unlock.
29567         (glthread_recursive_lock_destroy_func): Renamed from
29568         glthread_recursive_lock_destroy.
29569
29570 2008-08-14  Bruno Haible  <bruno@clisp.org>
29571
29572         * lib/glthread/lock.h: Renamed from lib/lock.h.
29573         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29574         * lib/glthread/tls.h: Renamed from lib/tls.h.
29575         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29576         * lib/fstrcmp.c: Update includes.
29577         * lib/strsignal.c: Update includes.
29578         * modules/lock (Files, Makefile.am): Update.
29579         (Include): Change to "glthread/lock.h".
29580         * modules/tls (Files, Makefile.am): Update.
29581         (Include): Change to "glthread/tls.h".
29582         * tests/test-lock.c: Update includes.
29583         * tests/test-tls.c: Update includes.
29584         * NEWS: Mention the renamed header files.
29585
29586 2008-08-11  Jim Meyering  <meyering@redhat.com>
29587
29588         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29589
29590 2008-08-11  Eric Blake  <ebb9@byu.net>
29591
29592         test-c-stack: avoid C99-ism
29593         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29594         before statement.
29595         Reported by Alain Guibert.
29596
29597 2008-08-10  Jim Meyering  <meyering@redhat.com>
29598
29599         ensure that return value of uinttostr et al are not ignored
29600         * lib/inttostr.h (__GNUC_PREREQ): Define.
29601         (__attribute_warn_unused_result__): Define.
29602         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29603
29604 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29605
29606         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29607         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29608
29609 2008-08-07  Jim Meyering  <meyering@redhat.com>
29610
29611         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29612
29613         * modules/mkstemp (License): Relicense under LGPLv2+.
29614         * modules/tempname (License): Likewise.
29615
29616 2008-08-06  Bruno Haible  <bruno@clisp.org>
29617
29618         * lib/poll.c (poll): Further micro-optimization.
29619
29620 2008-08-06  Jim Meyering  <meyering@redhat.com>
29621
29622         inet_pton.c: use locale-independent tolower
29623         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29624         (inet_pton6): Use c_tolower rather than tolower.
29625         * modules/inet_pton (Depends-on): Add c-ctype.
29626
29627 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29628
29629         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29630         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29631
29632 2008-08-06  Jim Meyering  <meyering@redhat.com>
29633
29634         * modules/inet_pton (License): Relicense under LGPLv2+.
29635
29636 2008-08-03  Bruno Haible  <bruno@clisp.org>
29637
29638         Additional non-aborting API for lock and tls.
29639         * lib/lock.h: Include <errno.h>.
29640         (glthread_lock_init): New macro/function.
29641         (gl_lock_init): Define as wrapper around glthread_lock_init.
29642         (glthread_lock_lock): New macro/function.
29643         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29644         (glthread_lock_unlock): New macro/function.
29645         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29646         (glthread_lock_destroy): New macro/function.
29647         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29648         (glthread_rwlock_init): New macro/function.
29649         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29650         (glthread_rwlock_rdlock): New macro/function.
29651         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29652         (glthread_rwlock_wrlock): New macro/function.
29653         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29654         (glthread_rwlock_unlock): New macro/function.
29655         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29656         (glthread_rwlock_destroy): New macro/function.
29657         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29658         (glthread_recursive_lock_init): New macro/function.
29659         (gl_recursive_lock_init): Define as wrapper around
29660         glthread_recursive_lock_init.
29661         (glthread_recursive_lock_lock): New macro/function.
29662         (gl_recursive_lock_lock): Define as wrapper around
29663         glthread_recursive_lock_lock.
29664         (glthread_recursive_lock_unlock): New macro/function.
29665         (gl_recursive_lock_unlock): Define as wrapper around
29666         glthread_recursive_lock_unlock.
29667         (glthread_recursive_lock_destroy): New macro/function.
29668         (gl_recursive_lock_destroy): Define as wrapper around
29669         glthread_recursive_lock_destroy.
29670         (glthread_once): New macro/function.
29671         (gl_once): Define as wrapper around glthread_once.
29672         Update function declarations.
29673         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29674         glthread_rwlock_init. Return error code.
29675         (glthread_rwlock_rdlock_multithreaded): Renamed from
29676         glthread_rwlock_rdlock. Return error code.
29677         (glthread_rwlock_wrlock_multithreaded): Renamed from
29678         glthread_rwlock_wrlock. Return error code.
29679         (glthread_rwlock_unlock_multithreaded): Renamed from
29680         glthread_rwlock_unlock. Return error code.
29681         (glthread_rwlock_destroy_multithreaded): Renamed from
29682         glthread_rwlock_destroy. Return error code.
29683         (glthread_recursive_lock_init_multithreaded): Renamed from
29684         glthread_recursive_lock_init. Return error code.
29685         (glthread_recursive_lock_lock_multithreaded): Renamed from
29686         glthread_recursive_lock_lock. Return error code.
29687         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29688         glthread_recursive_lock_unlock. Return error code.
29689         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29690         glthread_recursive_lock_destroy. Return error code.
29691         (glthread_once_call): Make static.
29692         (glthread_once_multithreaded): Renamed from glthread_once.
29693         * lib/tls.h: Include <errno.h>.
29694         (glthread_tls_key_init): New macro/function.
29695         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29696         (glthread_tls_set): New macro/function.
29697         (gl_tls_set): Define as wrapper around glthread_tls_set.
29698         (glthread_tls_key_destroy): New macro/function.
29699         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29700         Update function declarations.
29701         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29702         glthread_tls_get.
29703         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29704
29705 2008-08-04  Eric Blake  <ebb9@byu.net>
29706
29707         gnumakefile: use space, not TAB, outside of targets
29708         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29709
29710 2008-08-02  Jim Meyering  <meyering@redhat.com>
29711
29712         getdate.y: avoid locale-dependent date parsing failure
29713         In Turkish locales, getdate would fail to recognize keywords
29714         containing a lowercase "i".  The solution is not to rely on
29715         locale-sensitive case-conversion.
29716         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29717         (lookup_word): Use c_toupper in place of toupper.
29718         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29719         Reported by Vefa Bicakci <bicave@superonline.com> in
29720         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29721         * modules/getdate (Depends-on): Add c-ctype.
29722
29723 2008-08-02  Bruno Haible  <bruno@clisp.org>
29724
29725         * gnulib-tool (func_import): When updating or creating a .gitignore
29726         file, prepend each added line with a slash, and ignore leading slashes
29727         from the existing lines.
29728         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29729
29730 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29731
29732         Portability fix for GNU make 3.79.1.
29733         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29734         versions do not understand.
29735
29736 2008-08-01  Bruno Haible  <bruno@clisp.org>
29737
29738         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29739         * tests/test-isnanf.h (zero): New variable.
29740         (main): Avoid literal -0.0f.
29741         * tests/test-isnand.h (zero): New variable.
29742         (main): Avoid literal -0.0.
29743         * tests/test-isnanl.h (zero): New variable.
29744         (main): Avoid literal -0.0L.
29745         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29746         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29747         -0.0, -0.0L.
29748         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29749         (test_signbitd): Avoid literal -0.0.
29750         (test_signbitl): Avoid literal -0.0L.
29751         * tests/test-ceilf1.c (zero): New variable.
29752         (main): Avoid literal -0.0f.
29753         * tests/test-ceill.c (zero): New variable.
29754         (main): Avoid literal -0.0L.
29755         * tests/test-floorf1.c (zero): New variable.
29756         (main): Avoid literal -0.0f.
29757         * tests/test-floorl.c (zero): New variable.
29758         (main): Avoid literal -0.0L.
29759         * tests/test-roundf1.c (zero): New variable.
29760         (main): Avoid literal -0.0f.
29761         * tests/test-round1.c (zero): New variable.
29762         (main): Avoid literal -0.0.
29763         * tests/test-roundl.c (zero): New variable.
29764         (main): Avoid literal -0.0L.
29765         * tests/test-truncf1.c (zero): New variable.
29766         (main): Avoid literal -0.0f.
29767         * tests/test-trunc1.c (zero): New variable.
29768         (main): Avoid literal -0.0.
29769         * tests/test-truncl.c (zero): New variable.
29770         (main): Avoid literal -0.0L.
29771         * tests/test-frexp.c (zero): New variable.
29772         (main): Avoid literal -0.0.
29773         * tests/test-frexpl.c (zero): New variable.
29774         (main): Avoid literal -0.0L.
29775         * tests/test-ldexpl.c (zero): New variable.
29776         (main): Avoid literal -0.0L.
29777         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29778         (zerod, zerol): New variables.
29779         (test_function): Avoid literals -0.0, -0.0L.
29780         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29781         (zerod, zerol): New variables.
29782         (test_function): Avoid literals -0.0, -0.0L.
29783         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29784         (zerod, zerol): New variables.
29785         (test_function): Avoid literals -0.0, -0.0L.
29786         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29787         (zerod, zerol): New variables.
29788         (test_function): Avoid literals -0.0, -0.0L.
29789         * tests/test-strtod.c (zero): New variable.
29790         (main): Avoid literal -0.0.
29791         Reported by Jonathan C. Patschke <jp@centtech.com>.
29792
29793 2008-07-31  Jim Meyering  <meyering@redhat.com>
29794
29795         sha256.h: correct definition of SHA224_DIGEST_SIZE
29796         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29797         Reported by Paulie Pena IV <paulie4@gmail.com>.
29798         Define as 224 / 8, rather than as a literal.
29799         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29800         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29801         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29802
29803 2008-07-31  Bruno Haible  <bruno@clisp.org>
29804
29805         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29806         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29807         Reported by Jonathan Patschke <jp@centtech.com>.
29808
29809 2008-07-31  Bruno Haible  <bruno@clisp.org>
29810
29811         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29812         Reported by Paolo Bonzini <bonzini@gnu.org>.
29813
29814 2008-07-30  Eric Blake  <ebb9@byu.net>
29815
29816         test-strtod: allow compilation without -lm
29817         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29818         Reported by Dennis Clarke <blastwave@gmail.com>.
29819
29820 2008-07-28  Jim Meyering  <meyering@redhat.com>
29821
29822         bootstrap: work also when there are no .po files in po/
29823         * build-aux/bootstrap (update_po_files): Complete the change
29824         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29825
29826 2008-07-27  Jim Meyering  <meyering@redhat.com>
29827
29828         * users.txt: Add zile.
29829
29830 2008-07-26  Ben Pfaff  <blp@gnu.org>
29831
29832         Add missing dependencies on new m4/exponent[fdl].m4 files.
29833         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29834         * modules/isnand-nolibm: Add m4/exponentd.m4.
29835         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29836         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29837         m4/isnan[fdl].m4, because the macros actually used moved.
29838         Reported by Jim Meyering.
29839
29840 2008-07-14  Ben Pfaff  <blp@gnu.org>
29841
29842         Add isinf module.
29843         * lib/isinf.c: New file.
29844         * lib/math.in.h: Define isinf macro if we have decided to replace
29845         it.
29846         * m4/isinf.m4: New file.
29847         * m4/math_h.m4: Initialize and substitute variables for isinf
29848         module.
29849         * modules/isinf: New file.
29850         * modules/isinf-tests: New file.
29851         * modules/math: Add substitutions for new module.
29852         * tests/test-isinf.c: New file.
29853         * doc/posix-functions/isinf.texi: Mention new module.
29854         * MODULES.html.sh: Mention new module.
29855
29856 2008-07-14  Ben Pfaff  <blp@gnu.org>
29857
29858         Factor out some macros for use by additional modules.
29859         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29860         exponentf.m4.
29861         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29862         exponentd.m4.
29863         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29864         file exponentl.m4.
29865         * m4/exponentf.m4: New file.
29866         * m4/exponentd.m4: New file.
29867         * m4/exponentl.m4: New file.
29868         * modules/isnanf: Use new file m4/exponentf.m4.
29869         * modules/isnand: Use new file m4/exponentd.m4.
29870         * modules/isnanl: Use new file m4/exponentl.m4.
29871
29872 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29873
29874         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29875         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29876         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29877         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29878
29879         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29880         readlink on platforms without PATH_MAX.
29881
29882 2008-07-21  Eric Blake  <ebb9@byu.net>
29883
29884         Warn, not fail, on stale version.
29885         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29886
29887         Don't allow installation with stale devel version number.
29888         * top/GNUmakefile (_is-install-target): New macro.
29889         (_curr-ver): Forbid installation with stale version number.
29890
29891 2008-07-20  Bruno Haible  <bruno@clisp.org>
29892
29893         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29894         TESTS_ENVIRONMENT.
29895         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29896
29897 2008-07-20  Bruno Haible  <bruno@clisp.org>
29898
29899         * lib/c-stack.h (c_stack_action): Add documentation.
29900         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29901
29902 2008-07-20  Bruno Haible  <bruno@clisp.org>
29903
29904         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29905         * modules/readlink (License): Likewise.
29906
29907 2008-07-17  Eric Blake  <ebb9@byu.net>
29908
29909         * modules/c-stack (Link): Fix typo.
29910
29911         Make c-stack use libsigsegv, when available.
29912         * modules/c-stack (Depends-on): Add libsigsegv.
29913         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29914         needed.
29915         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29916         (segv_handler, overflow_handler, c_stack_action)
29917         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29918         implementation when libsigsegv is available, but only when using
29919         the library is necessary.
29920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29921         comment, explaining why XSI check fails on Linux.
29922         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29923         * tests/test-c-stack2.sh: Tweak skip message.
29924         * NEWS: Document new link-time requirements.
29925
29926 2008-07-16  Eric Blake  <ebb9@byu.net>
29927
29928         c-stack: Expose false positives when not using libsigsegv.
29929         * modules/c-stack-tests (Files): Expand test.
29930         * tests/test-c-stack.c (main): Add means to conditionally trigger
29931         non-overflow SIGSEGV.
29932         * tests/test-c-stack2.sh: New file.
29933
29934 2008-07-14  Bruno Haible  <bruno@clisp.org>
29935
29936         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29937         Reported by Eric Blake.
29938
29939 2008-07-14  Sam Steingold  <sds@gnu.org>
29940             Bruno Haible  <bruno@clisp.org>
29941
29942         New module libsigsegv.
29943         * modules/libsigsegv: New file.
29944         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29945         modifications.
29946         * MODULES.html.sh (Signal handling): New section.
29947
29948 2008-07-14  Bruno Haible  <bruno@clisp.org>
29949
29950         * modules/unictype/ctype-* (Description): Add the word "function".
29951         Improves the resulting doc in MODULES.html.
29952
29953 2008-07-12  Ben Pfaff  <blp@gnu.org>
29954
29955         Add longlong module.
29956         * modules/longlong: New file.
29957
29958 2008-07-12  Bruno Haible  <bruno@clisp.org>
29959
29960         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29961         to empty.
29962
29963 2008-07-10  Ben Pfaff  <blp@gnu.org>
29964
29965         Add isnan module.
29966         * doc/posix-functions/isnan.texi: Mention new module.
29967         * lib/math.in.h: Define isnan macro if we have decided to replace
29968         it.
29969         * m4/isnan.m4: New file.
29970         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29971         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29972         also.
29973         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29974         redundancy.
29975         * m4/math_h.m4: Initialize and substitute variables for isnan
29976         module.
29977         * modules/isnan: New file.
29978         * modules/isnan-tests: New file.
29979         * modules/math: Add substitutions for new module.
29980         * tests/test-isnan.c: New file.
29981         * MODULES.html.sh: Mention new module.
29982
29983 2008-07-10  Ben Pfaff  <blp@gnu.org>
29984
29985         Add isnanf module.
29986         * lib/isnanf.m4: New file.
29987         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29988         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29989         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29990         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29991         * modules/isnanf: New file.
29992         * modules/isnanf-tests: New file.
29993         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29994         files.
29995         * tests/test-isnanf-nolibm.c: factored most of its contents into
29996         new file tests/test-isnanf.h.
29997         * tests/test-isnanf.h: New file.
29998         * tests/test-isnanf.c: New file.
29999         * MODULES.html.sh: Mention new module.
30000         * doc/glibc-functions/isnanf.texi: Mention new module.
30001
30002 2008-07-10  Ben Pfaff  <blp@gnu.org>
30003
30004         Add isnand module.
30005         * lib/isnand.h: New file.
30006         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30007         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30008         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30009         functionality also.
30010         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30011         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30012         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30013         * modules/isnand: New file.
30014         * modules/isnand-tests: New file.
30015         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30016         files.
30017         * tests/test-isnand-nolibm.c: factored most of its contents into
30018         new file tests/test-isnand.h.
30019         * tests/test-isnand.h: New file.
30020         * tests/test-isnand.c: New file.
30021         * MODULES.html.sh: Mention new module.
30022
30023 2008-07-10  Ben Pfaff  <blp@gnu.org>
30024
30025         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30026         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30027         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30028         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30029         * modules/isnanf-nolibm: Update references to renamed files.
30030         * modules/isnand-nolibm: Likewise.
30031         * modules/isnanf-nolibm-tests: Likewise.
30032         * modules/isnand-nolibm-tests: Likewise.
30033         * lib/frexp.c: Likewise.
30034         * lib/isfinite.c: Likewise.
30035         * lib/signbitd.c: Likewise.
30036         * lib/signbitf.c: Likewise.
30037         * lib/vasnprintf.c: Likewise.
30038         * tests/test-ceilf1.c: Likewise.
30039         * tests/test-ceilf2.c: Likewise.
30040         * tests/test-floorf1.c: Likewise.
30041         * tests/test-floorf2.c: Likewise.
30042         * tests/test-frexp.c: Likewise.
30043         * tests/test-round1.c: Likewise.
30044         * tests/test-round2.c: Likewise.
30045         * tests/test-roundf1.c: Likewise.
30046         * tests/test-strtod.c: Likewise.
30047         * tests/test-trunc1.c: Likewise.
30048         * tests/test-trunc2.c: Likewise.
30049         * tests/test-truncf1.c: Likewise.
30050         * tests/test-truncf2.c: Likewise.
30051         * NEWS: Mention the renamed header files.
30052
30053 2008-07-11  Jim Meyering  <meyering@redhat.com>
30054
30055         vc-list-files: make the last-resort awk code more portable
30056         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30057         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30058         does not support it.
30059
30060 2008-07-10  Eric Blake  <ebb9@byu.net>
30061
30062         Work with tar's bootstrap.
30063         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30064         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30065         an m4 comment.
30066
30067 2008-07-09  Jim Meyering  <meyering@redhat.com>
30068
30069         posix-shell.m4: fix typo that made this test malfunction
30070         * m4/posix-shell.m4: Remove capitalization in variable name.
30071
30072 2008-07-08  Bruno Haible  <bruno@clisp.org>
30073
30074         * m4/onceonly.m4: Update comments.
30075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30076
30077 2008-07-04  Jim Meyering  <meyering@redhat.com>
30078
30079         * users.txt: Add vc-dwim.
30080         (bison, coreutils): Use the gitweb URL.
30081
30082 2008-07-03  Jim Meyering  <meyering@redhat.com>
30083
30084         * users.txt: Add libffcall.  From Sam Steingold.
30085
30086 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
30087
30088         getdate.y: do not ignore TZ with relative day, month or year offset
30089         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30090         relative-date-handling, since otherwise, the latter would clobber the
30091         sole output (an updated Start value) of the tz-handling block.
30092         * tests/test-getdate.c: Tests for the fix
30093
30094 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30095
30096         Recognize 'foo_LIBRARIES += libgnu.a'.
30097         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30098         makefile snippet has already specified an installation location,
30099         also using '+='.
30100
30101 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
30102
30103         getdate.y: factor out common actions
30104         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30105         Use them in place of open-coded actions.
30106
30107 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30108
30109         Add self-test for getdate module.
30110         * modules/getdate-tests: New file.
30111         * tests/test-getdate.c: New file.
30112
30113 2008-06-29  Bruno Haible  <bruno@clisp.org>
30114
30115         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30116         .gitignore.
30117         Reported by Sylvain Beucler <beuc@beuc.net>.
30118
30119 2008-06-29  Bruno Haible  <bruno@clisp.org>
30120
30121         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30122         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30123
30124 2008-06-29  Bruno Haible  <bruno@clisp.org>
30125
30126         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30127         EXTRA_DIST.
30128         Reported by Sylvain Beucler <beuc@beuc.net>.
30129
30130 2008-06-26  Jim Meyering  <meyering@redhat.com>
30131
30132         make several modules depend on the "open" module
30133         This provides slightly increased consistency when opening-for-write
30134         the name of a non-directory spelled with a trailing slash.
30135         * modules/chdir-safer: Likewise.
30136         * modules/chown: Likewise.
30137         * modules/clean-temp: Likewise.
30138         * modules/copy-file: Likewise.
30139         * modules/fchdir: Likewise.
30140         * modules/fcntl-safer: Likewise.
30141         * modules/pipe: Likewise.
30142         * modules/utime: Likewise.
30143         Prompted by Eric Blake and Bruno Haible.
30144
30145 2008-06-24  Andreas Schwab  <schwab@suse.de>
30146
30147         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30148         literals can be used as initializers for global variables.
30149
30150 2008-06-23  Eric Blake  <ebb9@byu.net>
30151
30152         Make gnulib-cache.m4 easier to diff.
30153         * gnulib-tool (func_import): Allow newlines when reading cached
30154         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30155
30156 2008-06-23  Bruno Haible  <bruno@clisp.org>
30157
30158         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30159         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30160         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30161         m4/signalblocking.m4.
30162         (gl_PREREQ_SIGACTION): Don't invoke it.
30163         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30164         gl_PREREQ_SIG_HANDLER_H.
30165         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30166         Don't check for sigaction here.
30167
30168 2008-06-23  Bruno Haible  <bruno@clisp.org>
30169
30170         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30171         (install_handlers): Don't set the SA_RESETHAND flag.
30172
30173 2008-06-23  Bruno Haible  <bruno@clisp.org>
30174
30175         * m4/sigaction.m4: Comment fixes.
30176         * lib/signal.in.h: Likewise.
30177
30178 2008-06-23  Eric Blake  <ebb9@byu.net>
30179
30180         Fix typo.
30181         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30182
30183         Avoid SA_ namespace.
30184         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30185         Reported by Ralf Wildenhues.
30186
30187         Avoid test failure due to SA_RESTORER.
30188         * tests/test-sigaction.c (SA_MASK): New macro.
30189         (main): Avoid failing due to extension flags being set.
30190         Reported by Jim Meyering.
30191
30192         Revert use of sig-handler.h in sigprocmask.c.
30193         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30194         it requires the existence of struct sigaction.
30195         * lib/sigprocmask.c (handler_t): Restore typedef.
30196         (rpl_signal, old_handlers): Use local type.
30197
30198 2008-06-22  Bruno Haible  <bruno@clisp.org>
30199
30200         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30201         conditionally.
30202         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30203
30204 2008-06-22  Bruno Haible  <bruno@clisp.org>
30205
30206         * doc/posix-functions/siginterrupt.texi: Move note.
30207
30208         * lib/signal.in.h (SA_RESTART): New macro.
30209         * lib/sigaction.c: Update comment.
30210
30211         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30212
30213         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30214         (gl_PREREQ_SIGPROCMASK): Invoke it.
30215         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30216
30217         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30218
30219         * lib/sigprocmask.c: Update a comment.
30220
30221 2008-06-21  Eric Blake  <ebb9@byu.net>
30222
30223         Use sigaction module rather than signal().
30224         * modules/c-stack (Depends-on): Add sigaction.
30225         * modules/fatal-signal (Depends-on): Likewise.
30226         * modules/nanosleep (Depends-on): Likewise.
30227         * modules/sigprocmask (Files): Add sig-handler.h.
30228         * modules/sigaction (Files): Likewise.
30229         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30230         Eggert.
30231         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30232         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30233         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30234         (init_fatal_signals): Likewise.
30235         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30236         (siginterrupt): Delete fallback.
30237         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30238         instead.
30239         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30240         siginterrupt.
30241
30242         New module sigaction, for mingw.
30243         * modules/sigaction: New module...
30244         * modules/sigaction-tests: ...and its test.
30245         * m4/sigaction.m4: New file.
30246         * lib/sigaction.c: Likewise.
30247         * tests/test-sigaction.c: Likewise.
30248         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30249         * modules/signal (Makefile.am): Likewise.
30250         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30251         needed.
30252         * doc/posix-headers/signal.texi (signal.h): Mention provided
30253         types.
30254         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30255         that sigaction is preferable.
30256         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30257         module.
30258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30259         sigaction.
30260
30261         Improve robustness of sigprocmask by overriding signal.
30262         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30263         is in use.
30264         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30265         (SIGKILL, SIGSTOP): Provide fallbacks.
30266         (rpl_signal): Implement.
30267         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30268         signal can be called inside handlers.
30269
30270         Fix nanosleep module on mingw.
30271         * modules/nanosleep (Depends-on): Add sys_select.
30272         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30273
30274         Fix licensing of sigprocmask.
30275         * modules/raise (License): Relicense as LGPL.
30276
30277 2008-06-21  Bruno Haible  <bruno@clisp.org>
30278
30279         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30280         result if it contains question marks.
30281         Reported by Michael Geng <linux@michaelgeng.de>.
30282
30283 2008-06-19  Bruno Haible  <bruno@clisp.org>
30284
30285         Fix CVS-ism.
30286         * doc/gnulib.texi: Include updated-stamp.texi.
30287         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30288         (updated-stamp.texi): New rule.
30289         (gnulib.info): Depend on it.
30290         * doc/.gitignore: Add updated-stamp.texi.
30291         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30292
30293 2008-06-19  Bruno Haible  <bruno@clisp.org>
30294
30295         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30296         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30297
30298 2008-06-19  Eric Blake  <ebb9@byu.net>
30299
30300         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30301         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30302         Reported by Stepan Kasal.
30303
30304 2008-06-18  Bruno Haible  <bruno@clisp.org>
30305
30306         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30307         Reported by Eric Blake.
30308
30309 2008-06-18  Eric Blake  <ebb9@byu.net>
30310
30311         Work around cygwin 1.5.25 strsignal bug.
30312         * tests/test-strsignal.c: Allow for const char *.
30313         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30314
30315 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30316
30317         * users.txt: Update URL to article and add author/date
30318         information.
30319
30320 2008-06-17  Bruno Haible  <bruno@clisp.org>
30321
30322         New macro gl_DISABLE_THREADS.
30323         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30324         if the user did not pass --enable-threads or --disable-threads option.
30325         (gl_DISABLE_THREADS): New macro.
30326         Reported by Eric Blake <ebb9@byu.net>.
30327
30328 2008-06-17  Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30331         when the macro ignores it.
30332         Based on a patch by Eric Blake <ebb9@byu.net>.
30333
30334 2008-06-17  Bruno Haible  <bruno@clisp.org>
30335
30336         * modules/tls (License): Change to LGPLv2+.
30337         Reported by Eric Blake.
30338
30339 2008-06-17  Eric Blake  <ebb9@byu.net>
30340
30341         Simplify c-stack prerequisites.
30342         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30344         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30345         check.
30346         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30347         <sys/resource.h>.
30348
30349         Move c-stack test into testsuite.
30350         * modules/c-stack-tests: New file.
30351         * lib/c-stack.c [DEBUG]: Move test program...
30352         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30353         fail test if sigaltstack is lacking.
30354         * tests/test-c-stack.sh: New driver file.
30355
30356 2008-06-16  Eric Blake  <ebb9@byu.net>
30357
30358         Use raise module consistently.
30359         * modules/fatal-signal (Depends-on): Add raise.
30360         * modules/sigprocmask (Depends-on): Likewise.
30361         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30362         * lib/sigprocmask.c (sigprocmask): Likewise.
30363         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30364         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30365
30366         Fix compliance bug in sigpending.
30367         * lib/sigprocmask.c (sigpending): Return pending array via
30368         parameter, not return value.
30369
30370 2008-06-14  Eric Blake  <ebb9@byu.net>
30371
30372         Improve obstack-printf test code.
30373         * tests/test-obstack-printf.c (test_function): Fix comment, and
30374         simplify usage of obstack_* in macros.  Add a test for coverage.
30375         Reported by Bruno Haible.
30376
30377 2008-06-14  Bruno Haible  <bruno@clisp.org>
30378
30379         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30380         array size as a constant, not as a const variable.
30381         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30382         AC_USE_SYSTEM_EXTENSIONS.
30383         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30384         Test whether the obstack_printf function actually exists.
30385         * modules/obstack-printf (Depends-on): Add extensions.
30386         (Include): Remove obstack.h.
30387         * modules/obstack-printf-posix (Depends-on): Add extensions.
30388         (Include): Remove obstack.h.
30389
30390 2008-06-13  Eric Blake  <ebb9@byu.net>
30391
30392         Add obstack-printf and obstack-printf-posix modules.
30393         * modules/obstack-printf: New file.
30394         * modules/obstack-printf-posix: Likewise.
30395         * MODULES.html.sh (Misc): Mention them.
30396         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30397         Likewise.
30398         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30399         Likewise.
30400         * modules/stdio (Makefile.am): Accomodate new modules.
30401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30402         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30403         Declare.
30404         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30405         functions.
30406         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30407         (gl_REPLACE_OBSTACK_PRINTF): New macros
30408         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30409         * tests/test-obstack-printf.c: New file.
30410         * modules/obstack-printf-tests: Likewise.
30411         * modules/obstack-printf-posix-tests: Likewise.
30412
30413 2008-06-11  Bruno Haible  <bruno@clisp.org>
30414
30415         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30416         * lib/open.c: Include errno.h.
30417         (open): Fail when attempting to write to a file that has a trailing
30418         slash.
30419         * tests/test-open.c (main): Test against trailing slash bug.
30420         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30421
30422 2008-06-10  Bruno Haible  <bruno@clisp.org>
30423
30424         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30425         for $? to work inside the trap command, with various /bin/sh-s.
30426         * tests/test-vc-list-files-cvs.sh: Likewise.
30427
30428 2008-06-10  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/acl-internal.h: Don't include gettext.h here.
30431         * lib/set-mode-acl.c: Include gettext.h here.
30432         * lib/copy-acl.c: Likewise.
30433
30434 2008-06-10  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30437         * lib/wait-process.c (wait_subprocess): Likewise.
30438         * lib/execute.h (execute): Add termsigp argument.
30439         * lib/execute.c (execute): Likewise.
30440         * lib/csharpcomp.c (compile_csharp_using_pnet,
30441         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30442         * lib/csharpexec.c (execute_csharp_using_pnet,
30443         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30444         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30445         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30446         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30447         is_jikes_present): Update.
30448         * lib/javaexec.c (execute_java_class): Update.
30449         * lib/javaversion.c (execute_and_read_line): Update.
30450         * NEWS: Document the changes.
30451         Reported by Eric Blake.
30452
30453 2008-06-10  Eric Blake  <ebb9@byu.net>
30454
30455         Add missing include.
30456         * tests/test-strstr.c (includes): Add <signal.h>.
30457         * tests/test-strcasestr.c (includes): Likewise.
30458         * tests/test-memmem.c (includes): Likewise.
30459
30460 2008-06-10  Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/wait-process.c (wait_subprocess): Add an assertion.
30463
30464 2008-06-10  Bruno Haible  <bruno@clisp.org>
30465
30466         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30467
30468 2008-06-10  Bruno Haible  <bruno@clisp.org>
30469
30470         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30471         using alarm().
30472         * tests/test-strcasestr.c (main): Likewise.
30473         * tests/test-strstr.c (main): Likewise.
30474
30475 2008-06-09  Bruno Haible  <bruno@clisp.org>
30476
30477         Work around the Solaris 10 ACE ACLs ABI change.
30478         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30479         declare if ACL_NO_TRIVIAL is present.
30480         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30481         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30482         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30483         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30484         define if ACL_NO_TRIVIAL is present.
30485         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30486         and use the current ABI.
30487         (file_has_acl): Use same #if condition as elsewhere.
30488         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30489         in use, and use the current ABI.
30490         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30491         Reported by Jim Meyering.
30492
30493 2008-06-09  Eric Blake  <ebb9@byu.net>
30494
30495         Work around environments that (stupidly) ignore SIGALRM.
30496         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30497         before using alarm().
30498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30500         Reported by Ian Beckwith <ianb@erislabs.net>.
30501
30502         Produce autobuild blurb earlier in log.
30503         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30504
30505 2008-06-09  Jim Meyering  <meyering@redhat.com>
30506         and OndÅ™ej Vašík  <ovasik@redhat.com>
30507
30508         utimens.c: correct kernel bug work-around
30509         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30510         failure, not success, and the kernel bug we're trying to work
30511         around affects not just the utimensat call, but also the fallback
30512         futimens call.
30513         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30514         not success.
30515         [HAVE_FUTIMENS]: Use the same work-around, here.
30516
30517 2008-06-09  Jim Meyering  <meyering@redhat.com>
30518
30519         add more guards around definition of ACE_-related code
30520         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30521         ALLOW and ACE_OWNER are also defined.
30522
30523 2008-06-08  Bruno Haible  <bruno@clisp.org>
30524
30525         * lib/acl-internal.h: Add me as co-author.
30526         * lib/file-has-acl.c: Likewise.
30527         * lib/set-mode-acl.c: Likewise.
30528         * lib/copy-acl.c: Likewise.
30529
30530 2008-06-08  Bruno Haible  <bruno@clisp.org>
30531
30532         Add support for AIX ACLs.
30533         * lib/acl-internal.h (acl_nontrivial): New declaration.
30534         * lib/file-has-acl.c (acl_nontrivial): New function.
30535         (file_has_acl): Add implementation using AIX 4 ACL API.
30536         * lib/set-mode-acl.c (qset_acl): Likewise.
30537         * lib/copy-acl.c (qcopy_acl): Likewise.
30538
30539 2008-06-08  Bruno Haible  <bruno@clisp.org>
30540
30541         Add support for HP-UX ACLs.
30542         * lib/acl-internal.h (acl_nontrivial): New declaration.
30543         * lib/file-has-acl.c (acl_nontrivial): New function.
30544         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30545         * lib/set-mode-acl.c (qset_acl): Likewise.
30546         * lib/copy-acl.c (qcopy_acl): Likewise.
30547
30548 2008-06-08  Bruno Haible  <bruno@clisp.org>
30549
30550         Add support for Cygwin ACLs.
30551         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30552         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30553         the chmod_or_fchmod call.
30554         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30555
30556 2008-06-08  Bruno Haible  <bruno@clisp.org>
30557
30558         Fix bug with setuid modes in Solaris 10+ code.
30559         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30560         succeeded, when the mode contains some special bits.
30561
30562 2008-06-08  Bruno Haible  <bruno@clisp.org>
30563
30564         Add support for Solaris 7..10 ACLs.
30565         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30566         declarations.
30567         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30568         functions.
30569         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30570         * lib/set-mode-acl.c (qset_acl): Likewise.
30571         * lib/copy-acl.c (qcopy_acl): Likewise.
30572
30573 2008-06-08  Bruno Haible  <bruno@clisp.org>
30574
30575         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30576         declaration.
30577         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30578         (acl_access_nontrivial): Remove MacOS X case.
30579         (file_has_acl): Use acl_extended_nontrivial.
30580         * lib/copy-acl.c (qcopy_acl): Likewise.
30581
30582 2008-06-08  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30585
30586 2008-06-08  Jim Meyering  <meyering@redhat.com>
30587
30588         * modules/acl (Maintainer): Add Bruno Haible.
30589
30590 2008-06-07  Bruno Haible  <bruno@clisp.org>
30591
30592         Improve support for Tru64 ACLs.
30593         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30594         ACL on OSF/1.
30595
30596 2008-06-07  Bruno Haible  <bruno@clisp.org>
30597
30598         Add support for MacOS X ACLs.
30599         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30600         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30601         * lib/set-mode-acl.c (qset_acl): Likewise.
30602         * lib/copy-acl.c (qcopy_acl): Likewise.
30603
30604 2008-06-07  Bruno Haible  <bruno@clisp.org>
30605
30606         Fix memory leak introduced on 2008-05-22.
30607         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30608         use.
30609
30610 2008-06-07  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30613         to construct an empty ACL.
30614
30615 2008-06-07  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30618         precisely.
30619         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30620
30621 2008-06-07  Bruno Haible  <bruno@clisp.org>
30622
30623         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30624         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30625
30626 2008-06-07  Bruno Haible  <bruno@clisp.org>
30627
30628         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30629         regardless of POSIX.
30630         * doc/posix-functions/_longjmp.texi: Likewise.
30631         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30632         SystemV platform in this case.
30633
30634 2008-06-06  Eric Blake  <ebb9@byu.net>
30635
30636         Document abort() bugs.
30637         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30638
30639         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30640         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30641         sigsetjmp.
30642         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30643         siglongjmp, but only as a macro.
30644         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30645         is obsolete.
30646         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30647
30648         Tweak documentation to cover cygwin argz bugs.
30649         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30650         argz bug fix; no code change needed since no cygwin releases
30651         occurred between the last fix and the bug being tested.
30652         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30653         module and recently fixed cygwin bugs.
30654         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30655         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30656         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30657         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30658         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30659         Likewise.
30660         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30661         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30662         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30663         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30664         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30665         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30666         Likewise.
30667
30668         Avoid gcc warning on cygwin.
30669         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30670         !ACL_NO_TRIVIAL]: Avoid unused variable.
30671
30672 2008-06-05  Eric Blake  <ebb9@byu.net>
30673
30674         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30675         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30676         git-version-gen fails to come up with a version.
30677         Reported by Simon Josefsson.
30678
30679 2008-06-05  Jim Meyering  <meyering@redhat.com>
30680             Paul Eggert  <eggert@cs.ucla.edu>
30681
30682         utimens.c: work around a probable Linux kernel bug
30683         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30684         appears to be a kernel bug that causes utimensat to return 280
30685         instead of 0, indicating success.
30686
30687 2008-06-04  Bruno Haible  <bruno@clisp.org>
30688
30689         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30690         2008-06-01 commit.
30691
30692 2008-06-04  Bruno Haible  <bruno@clisp.org>
30693
30694         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30695         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30696         (file_has_acl): Use it. Save errno afterwards.
30697         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30698
30699 2008-06-03  Bruno Haible  <bruno@clisp.org>
30700
30701         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30702         draft code. Simplify #ifs.
30703         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30704         Put Solaris code after POSIX-draft code. Fix comments regarding
30705         Solaris 10, HP-UX. Mention Cygwin.
30706         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30707
30708 2008-06-03  Eric Blake  <ebb9@byu.net>
30709
30710         Provide fallback for older kernels.
30711         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30712         Provide runtime fallback if kernel lacks support.
30713         Reported by Mike Frysinger.
30714
30715 2008-06-02  Bruno Haible  <bruno@clisp.org>
30716
30717         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30718         it exists.
30719
30720 2008-06-02  Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30723         * lib/copy-acl.c (qcopy_acl): Update comment.
30724
30725 2008-06-02  Bruno Haible  <bruno@clisp.org>
30726
30727         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30728         like ACL APIs.
30729
30730 2008-06-02  Bruno Haible  <bruno@clisp.org>
30731
30732         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30733         * tests/test-set-mode-acl.sh: Likewise.
30734         * tests/test-copy-acl.sh: Likewise.
30735         * tests/test-copy-file.sh: Likewise.
30736
30737 2008-06-02  Bruno Haible  <bruno@clisp.org>
30738
30739         * tests/test-file-has-acl.sh: Remove unused code.
30740
30741 2008-06-01  Bruno Haible  <bruno@clisp.org>
30742
30743         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30744         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30745         messages.
30746         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30747
30748 2008-06-01  Bruno Haible  <bruno@clisp.org>
30749
30750         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30751         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30752         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30753         APIs.
30754         * modules/acl-tests (configure.ac): Remove tests now contained in
30755         m4/acl.m4.
30756
30757 2008-06-02  Jim Meyering  <meyering@redhat.com>
30758
30759         announce-gen: use a better key-server host name
30760         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30761         it may be more consistently reliable.  Suggested by Werner Koch
30762         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30763
30764 2008-06-01  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30767         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30768
30769 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30770
30771         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30772
30773 2008-06-01  Bruno Haible  <bruno@clisp.org>
30774
30775         New ACL tests.
30776         * tests/test-file-has-acl.sh: New file.
30777         * tests/test-file-has-acl.c: New file.
30778         * tests/test-set-mode-acl.sh: New file.
30779         * tests/test-set-mode-acl.c: New file.
30780         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30781         * tests/test-copy-acl.c: New file.
30782         * modules/acl-tests: New file, based on modules/copy-file-tests.
30783         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30784         (Depends-on): Add acl-tests.
30785         (configure.ac): Remove checks.
30786         (Makefile.am): Don't create test-sameacls program here any more.
30787
30788 2008-06-01  Bruno Haible  <bruno@clisp.org>
30789
30790         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30791         * tests/test-sameacls.c: Include progname.h.
30792         (main): Invoke set_program_name. Portability fixes for MacOS X,
30793         Solaris, HP-UX.
30794
30795 2008-06-01  Bruno Haible  <bruno@clisp.org>
30796
30797         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30798         function.
30799         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30800
30801 2008-06-01  Bruno Haible  <bruno@clisp.org>
30802
30803         * modules/rpmatch (Depends-on): Add strdup.
30804
30805 2008-06-01  Bruno Haible  <bruno@clisp.org>
30806
30807         * lib/pipe.c: Include unistd-safer.h.
30808         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30809         * modules/pipe (Depends-on): Add unistd-safer.
30810
30811 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30812
30813         * modules/autobuild (configure.ac): Call AB_INIT.
30814
30815 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30816
30817         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30818         Suggested by Bruno Haible <bruno@clisp.org>.
30819
30820 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30821
30822         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30823         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30824         <bruno@clisp.org>.
30825
30826 2008-05-29  Eric Blake  <ebb9@byu.net>
30827
30828         Prefer new POSIX 200x interfaces over futimesat.
30829         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30830         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30831         when available.
30832         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30833
30834 2008-05-28  Bruno Haible  <bruno@clisp.org>
30835
30836         * modules/stpcpy (License): Change to LGPLv2+.
30837         Requested by David Lutterkort <dlutter@redhat.com>.
30838
30839 2008-05-27  Bruno Haible  <bruno@clisp.org>
30840
30841         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30842         current mingw.
30843         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30844
30845 2008-05-27  Bruno Haible  <bruno@clisp.org>
30846
30847         * modules/iconv_open (Link): New section, from module 'iconv'.
30848         * modules/striconv (Link): Likewise.
30849         * modules/striconveh (Link): Likewise.
30850         * modules/xstriconv (Link): Likewise.
30851         * modules/unicodeio (Link): Likewise.
30852         * modules/propername (Link): Likewise.
30853         Reported by Jim Meyering.
30854
30855 2008-05-26  Jim Meyering  <meyering@redhat.com>
30856
30857         sha256: do not artificially restrict buffer length to be < 2^32
30858         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30859         uint32_t to size_t.
30860         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30861         to match.
30862
30863         avoid unaligned access errors, e.g., on sparc
30864         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30865         direct access through a possibly-unaligned uint64* pointer.
30866         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30867         direct access through a possibly-unaligned uint32* pointer.
30868         Prompted by this patch from Tom "spot" Callaway:
30869         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30870
30871         sha512.c: fix typo in comment
30872         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30873
30874 2008-05-25  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30877         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30878         (Makefile.am): Update lib_SOURCES.
30879
30880 2008-05-25  Bruno Haible  <bruno@clisp.org>
30881
30882         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30883
30884 2008-05-25  Jim Meyering  <meyering@redhat.com>
30885
30886         useless-if-before-free: freed expr may have white-space differences
30887         * build-aux/useless-if-before-free: Recognize cases in which the
30888         freed expression differs from the tested one in embedded white
30889         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30890         $1 was used, so we can't make any regexp shy.  Improved tests now
30891         detect this.
30892
30893         useless-if-before-free: accept white space in the expression.
30894         * build-aux/useless-if-before-free: For now, any white space
30895         in the expression must be identical in the free argument.
30896
30897         useless-if-before-free: efficiency tweak
30898         * build-aux/useless-if-before-free: Make the expression-matching
30899         regexp "shy".
30900         Make the *outer* regexp shy, not the expr-matching one.
30901
30902         update code-in-comment to accept cast of free arg
30903         * build-aux/useless-if-before-free: Update regexp.
30904
30905 2008-05-25  Bruno Haible  <bruno@clisp.org>
30906
30907         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30908         * modules/copy-file-tests (Files, Makefile.am): Update.
30909         * tests/test-copy-file.c (func_test_copy): Update.
30910
30911 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30912
30913         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30914
30915 2008-05-23  Bruno Haible  <bruno@clisp.org>
30916
30917         Improve support for ACLs on OSF/1.
30918         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30919         Remove fallback for unknown flavors of ACLs.
30920
30921 2008-05-22  Bruno Haible  <bruno@clisp.org>
30922
30923         Add support for ACLs on OSF/1.
30924         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30925         replacements.
30926         (acl_free_text): New macro fallback.
30927         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30928         acl_free.
30929         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30930         acl_free_text function. Require AC_C_INLINE.
30931
30932 2008-05-22  Bruno Haible  <bruno@clisp.org>
30933
30934         Make copy_acl work on MacOS X 10.5.
30935         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30936         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30937         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30938         If MODE_INSIDE_ACL, don't assume that every system has the same text
30939         representation for ACLs as FreeBSD.
30940         * lib/copy-acl.c (copy_acl): Add support for platforms with
30941         !MODE_INSIDE_ACL.
30942         * lib/file-has-acl.c (file_has_acl): Likewise.
30943         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30944         FreeBSD, MacOS X, or IRIX, respectively.
30945
30946 2008-05-22  Bruno Haible  <bruno@clisp.org>
30947
30948         * lib/acl.h: Don't include <sys/acl.h>.
30949         (GETACLCNT): Move fallback to lib/acl-internal.h.
30950         * lib/acl-internal.h: Include <sys/acl.h> here.
30951         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30952
30953 2008-05-22  Bruno Haible  <bruno@clisp.org>
30954
30955         Split off copy_acl function to separate file.
30956         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30957         * lib/acl.c (copy_acl): Moved function to separate file.
30958         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30959         * modules/acl (Files): Add lib/copy-acl.c.
30960         (Makefiles.am): Augment lib_SOURCES.
30961
30962 2008-05-22  Bruno Haible  <bruno@clisp.org>
30963
30964         * modules/copy-file-tests: New file.
30965         * tests/test-copy-file.sh: New file.
30966         * tests/test-copy-file.c: New file.
30967         * tests/test-copy-file-sameacls.c: New file.
30968
30969 2008-05-22  Eric Blake  <ebb9@byu.net>
30970
30971         Avoid gcc warning.
30972         * tests/test-memcmp.c (main): Pass NULL indirectly.
30973
30974 2008-05-21  Bruno Haible  <bruno@clisp.org>
30975
30976         Add reference doc about ACLs.
30977         * doc/acl-resources.txt: New file.
30978         * doc/acl-cygwin.txt: New file.
30979
30980 2008-05-21  Bruno Haible  <bruno@clisp.org>
30981
30982         Avoid one more warning from gcc.
30983         * lib/vasnprintf.c (IF_LINT): Update comments.
30984         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30985
30986 2008-05-21  Jim Meyering  <meyering@redhat.com>
30987
30988         avoid a warning from gcc
30989         * lib/vasnprintf.c (IF_LINT): Define.
30990         (scale10_round_decimal_long_double):
30991         Use it to avoid a "may be used uninitialized" warning.
30992         (scale10_round_decimal_double): Likewise.
30993
30994 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30995
30996         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30997         declared.
30998
30999 2008-05-20  Bruno Haible  <bruno@clisp.org>
31000
31001         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31002         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31003
31004 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31005
31006         * modules/memcmp-tests: New file.
31007         * tests/test-memcmp.c: New file.
31008
31009 2008-05-19  Bruno Haible  <bruno@clisp.org>
31010
31011         * modules/propername (Notice, configure.ac): Put quoted "..." into
31012         --keyword option.
31013         * lib/propername.h: Update comments accordingly.
31014         Reported by Eric Blake.
31015
31016 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31017
31018         * modules/getpass-gnu (Depends-on): Add fseeko.
31019
31020 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31021
31022         * modules/base64-tests: New file.
31023
31024 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31025
31026         * lib/base64.c (base64_decode_ctx): If a decode context structure
31027         was passed in use it to ignore newlines.  If a context structure
31028         was _not_ passed in, continue to treat newlines as garbage (this
31029         is the historical behavior).  Formerly base64_decode.
31030         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31031         takes a decode context structure.
31032         * lib/base64.h (base64_decode): Macro for four-argument calls.
31033         (base64_decode_alloc): Likewise.
31034         * lib/base64.c (base64_decode_ctx): If a decode context structure
31035         was passed in use it to ignore newlines.  If a context structure
31036         was _not_ passed in, continue to treat newlines as garbage (this
31037         is the historical behavior).  Formerly base64_decode.
31038         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31039         takes a decode context structure.
31040         * lib/base64.h (base64_decode): Macro for four-argument calls.
31041         (base64_decode_alloc): Likewise.
31042
31043 2008-05-19  Jim Meyering  <meyering@redhat.com>
31044
31045         avoid a warning from gcc
31046         * lib/trim.c (IF_LINT): Define.
31047         (trim2): Use it to avoid a "may be used uninitialized" warning.
31048
31049         Fix doc typo.
31050         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31051
31052 2008-05-19  Bruno Haible  <bruno@clisp.org>
31053
31054         * doc/glibc-functions/getpass.texi: Document limits of other
31055         implementations.
31056
31057 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31058             Bruno Haible <bruno@clisp.org>
31059
31060         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31061
31062 2008-05-18  Bruno Haible  <bruno@clisp.org>
31063
31064         * modules/propername: New file, from GNU gettext.
31065         * lib/propername.h: New file, from GNU gettext.
31066         * lib/propername.c: New file, from GNU gettext.
31067         * MODULES.html.sh (Internationalization functions): Add propername.
31068
31069 2008-05-16  Jim Meyering  <meyering@redhat.com>
31070             Bruno Haible  <bruno@clisp.org>
31071
31072         Avoid some warnings from "gcc -Wshadow".
31073         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31074
31075 2008-05-15  Eric Blake  <ebb9@byu.net>
31076
31077         Extend previous patch to cygwin 1.7.0.
31078         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31079         fast implementation in cygwin >= 1.7.0.
31080         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31082
31083 2008-05-15  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31086         implementation in glibc >= 2.9.
31087         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31089
31090 2008-05-15  Bruno Haible  <bruno@clisp.org>
31091
31092         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31093         (Unicode string functions): Add unilbrk/*.
31094         Reported by Karl Berry.
31095
31096 2008-05-15  Eric Blake  <ebb9@byu.net>
31097
31098         Fix violation of <stdbool.h> replacement in regex.
31099         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31100         * lib/regexec.c (re_search_internal): Likewise.
31101         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31102
31103 2008-05-15  Jim Meyering  <meyering@redhat.com>
31104
31105         avoid distracting test output when git or cvs is not found
31106         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31107         * tests/test-vc-list-files-git.sh: Likewise.
31108
31109 2008-05-15  Eric Blake  <ebb9@byu.net>
31110
31111         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31112         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31113         glibc version.
31114         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31115         * doc/posix-functions/strstr.texi (strstr): Likewise.
31116         * lib/str-two-way.h (MAX): Sychronize with glibc.
31117
31118 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31119
31120         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31121         opr.ctx_type.
31122         (calc_first): Initialize constraint field.
31123         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31124         Fix grammar.
31125         (duplicate_node): Merge constraint field for all node types.
31126         (calc_eclosure_iter): Look at constraint field for all node types.
31127         * lib/regex_internal.c (create_cd_newstate): Don't look at
31128         opr.ctx_type.
31129
31130 2008-05-14  Bruno Haible  <bruno@clisp.org>
31131
31132         Help GCC to do better code generation.
31133         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31134         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31135         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31136         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31137         Declare with attribute 'malloc' if supported.
31138
31139 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31140
31141         use "echo STR|wc -c" rather than unportable "expr length STR"
31142         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31143         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31144
31145 2008-05-14  Jim Meyering  <meyering@redhat.com>
31146
31147         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31148         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31149         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31150         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31151         via Collin Lasse.
31152
31153 2008-05-14  Eric Blake  <ebb9@byu.net>
31154
31155         Avoid quadratic growth in gl_LIBSOURCES.
31156         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31157         Suggested by Bruno Haible.
31158
31159         Test xmemdup0.
31160         * modules/xmemdup0-tests: New file.
31161         * tests/test-xmemdup0.c: Likewise.
31162
31163 2008-05-13  Eric Blake  <ebb9@byu.net>
31164
31165         Split xmemdup0 into its own module.
31166         * modules/xmemdup0: New file.
31167         * lib/xmemdup0.h: Likewise.
31168         * lib/xmemdup0.c: Likewise.
31169         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31170         * lib/xalloc.h (xmemdup0): Remove.
31171         * lib/xmalloc.c (xmemdup0): Likewise.
31172
31173 2008-05-13  Eric Blake  <ebb9@byu.net>
31174             Bruno Haible  <bruno@clisp.org>
31175
31176         Reduce number of forks required during autoconf.
31177         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31178         and gl_LIBSOURCES_DIR.
31179         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31180         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31181         m4_syscmd per file.
31182         <m4_foreach_w>: Move...
31183         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31184
31185 2008-05-13  Eric Blake  <ebb9@byu.net>
31186
31187         * gnulib-tool: Fix various comment typos.
31188
31189 2008-05-12  Bruno Haible  <bruno@clisp.org>
31190
31191         Tailor the linebreaking algorithm.
31192         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31193
31194 2008-05-12  Bruno Haible  <bruno@clisp.org>
31195
31196         Update to Unicode 5.0.0.
31197         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31198         LBP_JV, LBP_JT. Redistribute values.
31199         (unilbrk_table): Change size.
31200         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31201         Unicode TR#14 rev. 22.
31202         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31203         LBP_JV, LBP_JT. Redistribute values.
31204         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31205         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31206         Update.
31207         * lib/unilbrk/lbrkprop1.h: Regenerated.
31208         * lib/unilbrk/lbrkprop2.h: Regenerated.
31209         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31210         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31211         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31212         Likewise.
31213         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31214         Likewise.
31215         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31216         result.
31217         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31218         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31219         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31220         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31221         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31222         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31223
31224 2008-05-11  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31227
31228 2008-05-11  Bruno Haible  <bruno@clisp.org>
31229
31230         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31231         * modules/unilbrk/gen-lbrk: New file.
31232
31233 2008-05-11  Bruno Haible  <bruno@clisp.org>
31234
31235         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31236         * m4/sha512.m4 (gl_SHA512): Likewise.
31237
31238 2008-05-11  Jim Meyering  <meyering@redhat.com>
31239
31240         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31241         * modules/crypto/sha256: New file.
31242         * modules/crypto/sha512: Likewise.
31243         * lib/sha256.c: Likewise.
31244         * lib/sha256.h: Likewise.
31245         * lib/sha512.c: Likewise.
31246         * lib/sha512.h: Likewise.
31247         * lib/u64.h: Likewise.
31248         * m4/sha256.m4: Likewise.
31249         * m4/sha512.m4: Likewise.
31250         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31251
31252 2008-05-10  Bruno Haible  <bruno@clisp.org>
31253
31254         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31255         (Input/Output <stdio.h>): Add xprintf.
31256         (Signal handling <signal.h>): Add strsignal.
31257         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31258         (Core language properties): Add func.
31259         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31260         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31261         strings.
31262         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31263         (Input/output): New section.
31264         (File system functions): Add openat-die, stat-macros.
31265         (Networking functions): Add sockets.
31266         (Unicode string functions): Add unictype/*.
31267         (Support for building libraries and executables): Add gperf.
31268         (Support for building documentation): Add agpl-3.0.
31269         (Misc): Add nocrash.
31270
31271 2008-05-10  Bruno Haible  <bruno@clisp.org>
31272
31273         * modules/unictype/gen-ctype: New file.
31274
31275 2008-05-10  Jim Meyering  <meyering@redhat.com>
31276
31277         Make chdir-safer.c more efficient on a system with no symlinks.
31278         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31279         also if ELOOP is zero.  Suggested by Bruno Haible.
31280
31281         Make chdir-safer.c slightly safer.
31282         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31283         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31284
31285         Avoid compile failure on systems without ELOOP (like mingw).
31286         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31287         Reported by Bruno Haible.
31288
31289 2008-05-10  Bruno Haible  <bruno@clisp.org>
31290
31291         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31292         (is_utf8_encoding): Use a case-insensitive comparison.
31293         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31294         streq.
31295
31296 2008-05-10  Bruno Haible  <bruno@clisp.org>
31297
31298         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31299         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31300         * lib/unilbrk/ulc-common.h (iconv_string_length,
31301         iconv_string_keeping_offsets): Remove declarations.
31302         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31303         Don't include <iconv.h>, streq.h, xsize.h.
31304         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31305         conversion.
31306         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31307         <iconv.h>, streq.h, xsize.h.
31308         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31309         conversion.
31310         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31311         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31312         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31313         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31314
31315 2008-05-10  Bruno Haible  <bruno@clisp.org>
31316
31317         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31318         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31319
31320         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31321         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31322
31323         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31324         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31325
31326         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31327         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31328
31329         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31330         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31331
31332         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31333         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31334
31335         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31336         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31337
31338         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31339         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31340
31341 2008-05-10  Bruno Haible  <bruno@clisp.org>
31342
31343         Split up 'linebreak' module.
31344         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31345         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31346         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31347         modifications.
31348         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31349         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31350         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31351         lib/linebreak.c.
31352         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31353         lib/linebreak.c.
31354         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31355         lib/linebreak.c.
31356         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31357         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31358         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31359         lib/linebreak.c.
31360         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31361         lib/linebreak.c.
31362         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31363         lib/linebreak.c.
31364         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31365         lib/linebreak.c.
31366         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31367         lib/linebreak.c.
31368         * modules/unilbrk/base: New file.
31369         * modules/unilbrk/tables: New file.
31370         * modules/unilbrk/u8-possible-linebreaks: New file.
31371         * modules/unilbrk/u16-possible-linebreaks: New file.
31372         * modules/unilbrk/u32-possible-linebreaks: New file.
31373         * modules/unilbrk/ulc-common: New file.
31374         * modules/unilbrk/ulc-possible-linebreaks: New file.
31375         * modules/unilbrk/u8-width-linebreaks: New file.
31376         * modules/unilbrk/u16-width-linebreaks: New file.
31377         * modules/unilbrk/u32-width-linebreaks: New file.
31378         * modules/unilbrk/ulc-width-linebreaks: New file.
31379         * lib/linebreak.h: Remove file.
31380         * lib/linebreak.c: Remove file.
31381         * m4/linebreak.m4: Remove file.
31382         * modules/linebreak: Remove file.
31383         * NEWS: Mention the changes.
31384
31385 2008-05-09  Eric Blake  <ebb9@byu.net>
31386
31387         Add xmemdup0.
31388         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31389         implementation.
31390         * lib/xmalloc.c (xmemdup0): New C implementation.
31391
31392 2008-05-08  Bruno Haible  <bruno@clisp.org>
31393
31394         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31395
31396 2008-05-07  Eric Blake  <ebb9@byu.net>
31397
31398         Support cross-compilation of <wctype.h>.
31399         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31400         AC_CACHE_CHECK.
31401
31402 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31403
31404         * build-aux/vc-list-files: Add support for bzr.
31405
31406 2008-05-03  Jim Meyering  <meyering@redhat.com>
31407
31408         avoid failed assertion with tight malloc
31409         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31410
31411 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31412
31413         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31414         are needed from arpa/inet.h.
31415         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31416         Reported by Bruno Haible.
31417
31418 2008-05-02  Jim Meyering  <meyering@redhat.com>
31419
31420         avoid compilation error on FreeBSD 6
31421         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31422
31423 2008-05-01  Jim Meyering  <meyering@redhat.com>
31424
31425         useless-if-before-free: correct --help's exit status description
31426         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31427         for one or more matches, etc.  Reported by Bruno Haible.
31428
31429         vc-list-files: make the stand-alone gnulib test work
31430         * modules/vc-list-files-tests (configure.ac):
31431         Define and AC_SUBST abs_aux_dir.
31432         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31433         $(abs_top_srcdir) to each script and having each of them
31434         duplicate the work of setting PATH, set PATH here, using
31435         the new variable, abs_aux_dir instead.
31436         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31437         * tests/test-vc-list-files-git.sh: Likewise.
31438         Reported by Bruno Haible.
31439
31440 2008-05-01  Bruno Haible  <bruno@clisp.org>
31441
31442         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31443         reallocation. Rename 'done' to 'found_delimiter'.
31444
31445 2008-05-01  Jim Meyering  <meyering@redhat.com>
31446
31447         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31448         * build-aux/vc-list-files: Use `...`, not $(...).
31449
31450 2008-04-30  Jim Meyering  <meyering@redhat.com>
31451
31452         add tests for vc-list-files
31453         * modules/vc-list-files-tests: New module.
31454         * tests/test-vc-list-files-cvs.sh: New file.
31455         * tests/test-vc-list-files-git.sh: New file.
31456
31457         avoid a warning from gcc
31458         * lib/getndelim2.c (IF_LINT): Define.
31459         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31460
31461         vc-list-files: work properly with build-aux/cvsu, too
31462         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31463         to all cvs-based clauses.
31464
31465         vc-list-files: work properly in the CVS+awk case, too
31466         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31467
31468         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31469         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31470         take more than one file argument, so .  Add quotes, just in case $dir
31471         ever contains a shell meta-character.  Prompted by Soren Hansen in
31472         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31473
31474 2008-04-29  Eric Blake  <ebb9@byu.net>
31475
31476         Optimize getndelim2 to use block operations when possible.
31477         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31478         freadseek, and memchr2.
31479         * lib/getndelim2.c (getndelim2): Use them for block reads.
31480
31481 2008-04-29  Bruno Haible  <bruno@clisp.org>
31482
31483         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31484         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31485         * modules/inet_ntop (Depends-on): Add extensions.
31486         * modules/inet_pton (Depends-on): Likewise.
31487         Reported by Simon Josefsson.
31488
31489 2008-04-29  Jim Meyering  <meyering@redhat.com>
31490
31491         When the is more than one match in a block, match all of them.
31492         * build-aux/useless-if-before-free: Iterate through each block
31493         until there are no more matches.
31494
31495         Fix broken useless-if-before-free script.
31496         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31497         the expression to match cast of argument to free-like function.
31498
31499 2008-04-29  Eric Blake  <ebb9@byu.net>
31500
31501         Use new header.
31502         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31503
31504 2008-04-29  Jim Meyering  <meyering@redhat.com>
31505
31506         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31507         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31508         by gnulib to exist and to declare e.g., inet_ntop.
31509         Don't include "inet_ntop.h", now removed.
31510
31511         * m4/arpa_inet_h.m4: Remove trailing blanks.
31512
31513 2008-04-29  Eric Blake  <ebb9@byu.net>
31514
31515         Silence valgrind on safe reads beyond potential array bounds.
31516         * lib/rawmemchr.valgrind: New file.
31517         * lib/strchrnul.valgrind: Likewise.
31518         * modules/rawmemchr (Files): Distribute new file.
31519         * modules/strchrnul (Files): Likewise.
31520         Suggested by Bruno Haible.
31521
31522 2008-04-29  Bruno Haible  <bruno@clisp.org>
31523
31524         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31525         (inet_ntop, inet_pton): Change portability warning's wording.
31526         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31527         Invoke gl_CHECK_NEXT_HEADERS.
31528         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31529         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31530         set ARPA_INET_H.
31531         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31532         * modules/arpa_inet (Description): No longer only for systems that
31533         lack it.
31534         (Depends-on): Add include_next.
31535         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31536         HAVE_ARPA_INET_H.
31537
31538 2008-04-29  Jim Meyering  <meyering@redhat.com>
31539
31540         * modules/mkdir (License): Re-license as LGPLv2+.
31541
31542 2008-04-29  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/rawmemchr (Maintainer): Set to Eric.
31545         * modules/strchrnul (Maintainer): Likewise.
31546
31547 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31548
31549         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31550         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31551
31552         * modules/arpa_inet (arpa/inet.h): Use them.
31553
31554 2008-04-28  Eric Blake  <ebb9@byu.net>
31555
31556         Test getndelim2.
31557         * modules/getndelim2-tests: New file.
31558         * tests/test-getndelim2.c: Likewise.
31559         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31560         stream.
31561         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31562
31563         * MODULES.html.sh: Document new module.
31564
31565 2008-04-20  Bruno Haible  <bruno@clisp.org>
31566
31567         * lib/c-stack.c (die): Use raise.
31568         * modules/c-stack (Depends-on): Add raise.
31569
31570 2008-04-28  Bruno Haible  <bruno@clisp.org>
31571
31572         Expect rpmatch to be declared.
31573         * lib/yesno.c (rpmatch): Remove declaration.
31574
31575         Declare rpmatch.
31576         * lib/stdlib.in.h (rpmatch): New declaration.
31577         * lib/rpmatch.c: Include <stdlib.h> first.
31578         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31579         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31581         HAVE_RPMATCH.
31582         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31584         (Include): Set to <stdlib.h>.
31585         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31586         HAVE_RPMATCH.
31587         * NEWS: Document the change.
31588
31589 2008-04-28  Bruno Haible  <bruno@clisp.org>
31590
31591         Change rpmatch to use nl_langinfo when appropriate.
31592         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31593         (N_): New macro.
31594         (localized_pattern): New function/macro.
31595         (try): Remove match, nomatch arguments. Copy the pattern into safe
31596         memory before caching it.
31597         (rpmatch): Use localized_pattern. Add translator comments.
31598         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31599         Suggested by Eric Blake.
31600         * modules/rpmatch (Depends-on): Add stdbool.
31601
31602 2008-04-28  Eric Blake  <ebb9@byu.net>
31603
31604         Add rawmemchr module, matching glibc.
31605         * modules/string (Makefile.am): New indicator.
31606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31607         * lib/string.in.h (rawmemchr): Declare when appropriate.
31608         * modules/rawmemchr: New file.
31609         * m4/rawmemchr.m4: Likewise.
31610         * lib/rawmemchr.c: Likewise.
31611         * modules/rawmemchr-tests: Likewise.
31612         * tests/test-rawmemchr.c: Likewise.
31613         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31614         module.
31615         * modules/strchrnul (Depends-on): Add rawmemchr.
31616         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31617
31618         Whitespace cleanup.
31619         * tests/test-strchrnul.c: Reindent.
31620         * lib/strchrnul.c: Likewise.
31621
31622         Optimize and test strchrnul.
31623         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31624         * modules/strchrnul-tests: New file.
31625         * tests/test-strchrnul.c: Likewise.
31626
31627         Remove intprops dependency.
31628         * modules/memchr (Depends-on): Remove intprops.
31629         * modules/memrchr (Depends-on): Likewise.
31630         * modules/memchr2 (Depends-on): Likewise.
31631         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31632         * lib/memrchr.c (__memrchr): Likewise.
31633         * lib/memrchr2.c (memchr2): Likewise.
31634         Reported by Simon Josefsson.
31635
31636 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31637
31638         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31639         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31640
31641 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31642
31643         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31644
31645         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31646
31647         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31648
31649         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31650         declarations.
31651         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31652
31653         * m4/inet_pton.m4: Don't check for header files.
31654
31655         * m4/inet_ntop.m4: Don't check for header files.
31656
31657 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31658
31659         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31660         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31661         trigger for cygwin).
31662         Reported by Bruno Haible  <bruno@clisp.org>.
31663
31664 2008-04-28  Bruno Haible  <bruno@clisp.org>
31665
31666         * doc/posix-functions/strdup.texi: Mention mingw problem.
31667
31668 2008-04-27  Bruno Haible  <bruno@clisp.org>
31669
31670         * modules/stat-time-tests (Depends-on): Add sleep.
31671         * tests/test-stat-time.c (force_unlink): New function.
31672         (cleanup): Use it.
31673         (test_mtime): Remove the ctime related tests.
31674         (test_ctime): New function, containing the ctime related tests.
31675         (main): Call test_ctime, except on native Windows platforms.
31676
31677 2008-04-27  Bruno Haible  <bruno@clisp.org>
31678
31679         * lib/rpmatch.c (rpmatch): Add some comments.
31680         Reported by James Youngman <jay@gnu.org>.
31681
31682 2008-04-27  Bruno Haible  <bruno@clisp.org>
31683
31684         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31685         quiet NaNs.
31686
31687 2008-04-27  Bruno Haible  <bruno@clisp.org>
31688
31689         Make test-yesno.sh work on mingw.
31690         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31691         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31692         (main): Set stdin to binary mode.
31693         * modules/yesno-tests (Depends-on): Add binary-io.
31694
31695 2008-04-27  Bruno Haible  <bruno@clisp.org>
31696
31697         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31698         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31699         argument that lie outside the IEEE 854 domain.
31700         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31701         (gl_ISFINITE): Use it.
31702         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31703
31704 2008-04-27  Bruno Haible  <bruno@clisp.org>
31705
31706         Allow local renaming in config.h.
31707         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31708
31709 2008-04-27  Bruno Haible  <bruno@clisp.org>
31710
31711         * lib/memchr.c (__memchr): Change type of 'i'.
31712         * lib/memchr2.c (memchr2): Likewise.
31713
31714 2008-04-26  Eric Blake  <ebb9@byu.net>
31715         and Bruno Haible  <bruno@clisp.org>
31716
31717         Optimize and test memrchr.
31718         * modules/memrchr (Depends-on): Add intprops.
31719         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31720         * modules/memrchr-tests: New file.
31721         * tests/test-memrchr.c: New file.
31722
31723 2008-04-26  Bruno Haible  <bruno@clisp.org>
31724
31725         Add tentative support for DragonFly BSD.
31726         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31727         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31728         fp.
31729         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31730         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31731         * lib/fpurge.c (fpurge): Likewise.
31732         * lib/freadable.c (freaadable): Likewise.
31733         * lib/freadahead.c (freadahead): Likewise.
31734         * lib/freading.c (freading): Likewise.
31735         * lib/freadptr.c (freadptr): Likewise.
31736         * lib/freadseek.c (freadptrinc): Likewise.
31737         * lib/fseeko.c (fseeko): Likewise.
31738         * lib/fseterr.c (fseterr): Likewise.
31739         * lib/fwritable.c (fwritable): Likewise.
31740         * lib/fwriting.c (fwriting): Likewise.
31741
31742 2008-04-26  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/stdio-impl.h: New file.
31745         * lib/fbufmode.c: Include stdio-impl.h.
31746         (fbufmode): Use fp_, remove redundant #defines.
31747         * lib/fflush.c: Include stdio-impl.h.
31748         (clear_ungetc_buffer): Remove redundant #defines.
31749         * lib/fpurge.c: Include stdio-impl.h.
31750         (fpurge): Remove redundant #defines.
31751         * lib/freadable.c: Include stdio-impl.h.
31752         (freadable): Remove redundant #defines.
31753         * lib/freadahead.c: Include stdio-impl.h.
31754         (freadahead): Remove redundant #defines.
31755         * lib/freading.c: Include stdio-impl.h.
31756         (freading): Remove redundant #defines.
31757         * lib/freadptr.c: Include stdio-impl.h.
31758         (freadptr): Remove redundant #defines.
31759         * lib/freadseek.c: Include stdio-impl.h.
31760         (freadptrinc): Remove redundant #defines.
31761         * lib/fseeko.c: Include stdio-impl.h.
31762         (rpl_fseeko): Remove redundant #defines.
31763         * lib/fseterr.c: Include stdio-impl.h.
31764         (fseterr): Remove redundant #defines.
31765         * lib/fwritable.c: Include stdio-impl.h.
31766         (fwritable: Remove redundant #defines.
31767         * lib/fwriting.c: Include stdio-impl.h.
31768         (fwriting): Remove redundant #defines.
31769         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31770         * modules/fflush (Files): Likewise.
31771         * modules/fpurge (Files): Likewise.
31772         * modules/freadable (Files): Likewise.
31773         * modules/freadahead (Files): Likewise.
31774         * modules/freading (Files): Likewise.
31775         * modules/freadptr (Files): Likewise.
31776         * modules/freadseek (Files): Likewise.
31777         * modules/fseeko (Files): Likewise.
31778         * modules/fseterr (Files): Likewise.
31779         * modules/fwritable (Files): Likewise.
31780         * modules/fwriting (Files): Likewise.
31781
31782 2008-04-26  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31785         restore_seek_optimization, update_fpos_cache): New functions, extracted
31786         from rpl_fflush.
31787         (rpl_fflush): Use them.
31788         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31789         (gl_REPLACE_FFLUSH): Use it.
31790
31791 2008-04-26  Bruno Haible  <bruno@clisp.org>
31792
31793         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31794         on Solaris.
31795         * tests/test-xstrtoimax.sh: Likewise.
31796         * tests/test-xstrtoumax.sh: Likewise.
31797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31798
31799 2008-04-26  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/memchr-tests: New file.
31802         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31803
31804 2008-04-26  Eric Blake  <ebb9@byu.net>
31805             Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/memchr.c: Include intprops.h.
31808         (__memchr): Optimize parallel detection of matching bytes. Rename local
31809         variables. Add explanatory comments.
31810
31811 2008-04-26  Bruno Haible  <bruno@clisp.org>
31812
31813         Fix module 'memchr', broken since 2000-10-28.
31814         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31815
31816 2008-04-26  Bruno Haible  <bruno@clisp.org>
31817
31818         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31819         comments.
31820
31821 2008-04-25  Eric Blake  <ebb9@byu.net>
31822
31823         Use native fstatat on cygwin 1.7.0.
31824         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31825         first.
31826
31827 2008-04-23  Eric Blake  <ebb9@byu.net>
31828
31829         Improve memchr2 performance.
31830         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31831         NUL bytes.
31832         * modules/memchr2 (Depends-on): Use intprops.h.
31833
31834 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31835
31836         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31837         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31838         <blp@cs.stanford.edu>.
31839
31840 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31841
31842         * lib/arpa_inet.in.h: New file.
31843
31844         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31845         (Makefile.am): Sed in substitute header file.
31846
31847         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31848         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31849
31850         * modules/inet_ntop (configure.ac): Use
31851         gl_ARPA_INET_MODULE_INDICATOR.
31852
31853         * modules/inet_pton (configure.ac): Use
31854         gl_ARPA_INET_MODULE_INDICATOR.
31855
31856 2008-04-22  Jim Meyering  <meyering@redhat.com>
31857
31858         * modules/verify (License): Re-license as LGPLv2+.
31859
31860 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31861
31862         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31863         parameter to void* as per POSIX standard (MinGW uses char*).
31864
31865 2008-04-21  Bruno Haible  <bruno@clisp.org>
31866
31867         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31868         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31869         Define to replacements if REPLACE_ISWCNTRL is 1.
31870         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31871         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31872         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31873         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31874         what it fixes.
31875         * doc/posix-functions/iswalpha.texi: Likewise.
31876         * doc/posix-functions/iswblank.texi: Likewise.
31877         * doc/posix-functions/iswcntrl.texi: Likewise.
31878         * doc/posix-functions/iswdigit.texi: Likewise.
31879         * doc/posix-functions/iswgraph.texi: Likewise.
31880         * doc/posix-functions/iswlower.texi: Likewise.
31881         * doc/posix-functions/iswprint.texi: Likewise.
31882         * doc/posix-functions/iswpunct.texi: Likewise.
31883         * doc/posix-functions/iswspace.texi: Likewise.
31884         * doc/posix-functions/iswupper.texi: Likewise.
31885         * doc/posix-functions/iswxdigit.texi: Likewise.
31886         Reported by Alain Guibert.
31887
31888 2008-04-21  Bruno Haible  <bruno@clisp.org>
31889
31890         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31891         Patch by Alain Guibert.
31892
31893 2008-04-21  Bruno Haible  <bruno@clisp.org>
31894
31895         Fix test failures on mingw.
31896         * tests/test-xstrtol.c (print_no_progname): New function.
31897         (main): Install it in error_print_progname hook.
31898         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31899         * tests/test-xstrtoimax.sh: Likewise.
31900         * tests/test-xstrtoumax.sh: Likewise.
31901
31902 2008-04-21  Bruno Haible  <bruno@clisp.org>
31903
31904         Fix test failure on mingw.
31905         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31906
31907 2008-04-21  Bruno Haible  <bruno@clisp.org>
31908
31909         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31910         Actually assign a value.
31911
31912 2008-04-20  Bruno Haible  <bruno@clisp.org>
31913
31914         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31915         take 2.
31916         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31917         'canonicalize-lgpl' module is also used.
31918         * lib/canonicalize-lgpl.c: Undo last change.
31919         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31920
31921 2008-04-20  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31924         config.h. Provide _mkdir based fallback for mingw.
31925         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31926         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31928         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31929         rather than defining mkdir in config.h.
31930         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31931         (gl_SYS_STAT_H_DEFAULTS): New macro.
31932         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31933         HAVE_IO_H any more.
31934         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31935         HAVE_DECL_MKDIR and HAVE_IO_H.
31936
31937 2008-04-20  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/isapipe.c: Port to native Windows platforms.
31940
31941 2008-04-20  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31944
31945 2008-04-21  Eric Blake  <ebb9@byu.net>
31946
31947         Work around preprocessors that don't handle UINTMAX_MAX.
31948         * lib/memchr2.c (memchr2): Avoid embedded #if.
31949         Reported by Alain Guibert, fix suggested by Bruno Haible.
31950
31951 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31952
31953         * doc/posix-functions/strftime.texi (strftime): Explain better
31954         Windows incompatibility.  Suggested by Micah Cowan
31955         <micah@cowan.name>.
31956
31957 2008-04-20  Bruno Haible  <bruno@clisp.org>
31958
31959         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31960         unistr/u8-mblen.
31961
31962 2008-04-20  Bruno Haible  <bruno@clisp.org>
31963
31964         Fix test failure on platforms with non-GNU iconv.
31965         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31966         (U_TO_U8): Use it, rather than u16_to_u8.
31967         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31968         units at the end of the input string.
31969         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31970
31971 2008-04-20  Bruno Haible  <bruno@clisp.org>
31972
31973         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31974         when the resulting length is 0.
31975         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31976
31977 2008-04-20  Bruno Haible  <bruno@clisp.org>
31978
31979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31980         works.
31981         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31982
31983 2008-04-20  Bruno Haible  <bruno@clisp.org>
31984
31985         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31986         * modules/tsearch-tests (configure.ac): Test for initstate function.
31987
31988 2008-04-20  Bruno Haible  <bruno@clisp.org>
31989
31990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31991         for nlink_t if missing.
31992         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31993
31994 2008-04-19  Bruno Haible  <bruno@clisp.org>
31995
31996         Work around snprintf bug on Linux libc5.
31997         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31999         gl_SNPRINTF_SIZE1.
32000         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32001         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32002         that test failed.
32003         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32004         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32005         * modules/snprintf (Files): Add m4/printf.m4.
32006         * modules/vsnprintf (Files): Likewise.
32007         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32008         * doc/posix-functions/vsnprintf.texi: Likewise.
32009
32010 2008-04-19  Bruno Haible  <bruno@clisp.org>
32011
32012         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32013         from 0.0058 to less than 10^-7.
32014
32015 2008-04-19  Bruno Haible  <bruno@clisp.org>
32016
32017         Fix rounding when a precision is given.
32018         * lib/vasnprintf.c (is_borderline): New function.
32019         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32020         9...9x.
32021         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32022         %e, %g.
32023         * tests/test-vasprintf-posix.c (test_function): Likewise.
32024         * tests/test-snprintf-posix.h (test_function): Likewise.
32025         * tests/test-sprintf-posix.h (test_function): Likewise.
32026         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32027         * tests/test-printf-posix.h (test_function): Likewise.
32028         * tests/test-printf-posix.output: Update.
32029         Reported by John Darrington <john@darrington.wattle.id.au> via
32030         Ben Pfaff <blp@cs.stanford.edu>.
32031
32032 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32033
32034         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32035         Suggested by Bruno Haible <bruno@clisp.org>.
32036
32037 2008-04-17  Bruno Haible  <bruno@clisp.org>
32038
32039         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32040         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32041         implementation.
32042         Patch by Bruce Merry <bmerry@gmail.com>.
32043
32044 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32045
32046         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32047         doesn't work under Windows.
32048
32049 2008-04-16  Bruno Haible  <bruno@clisp.org>
32050
32051         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32052         New macros.
32053         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32054         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32055         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32056         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32057         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32058         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32059         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32060         macros.
32061         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32062         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32063         Northern Sotho, Uighur.
32064
32065 2008-04-16  Bruno Haible  <bruno@clisp.org>
32066
32067         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32068         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32069         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32070         Reported by Daniel Bergström <daniel@octocode.com>.
32071
32072 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32073             Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32076         function.
32077         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32078         New functions, mostly extracted from gl_locale_name_default.
32079         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32080
32081 2008-04-16  Eric Blake  <ebb9@byu.net>
32082
32083         Adjust strtod detection to catch glibc 2.7 bug.
32084         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32085         Reported by John Gatewood Ham.
32086
32087 2008-04-16  Bruno Haible  <bruno@clisp.org>
32088
32089         Add tentative support for Linux libc5.
32090         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32091         * lib/fpurge.c (fpurge): Likewise.
32092         * lib/freadable.c (freadable): Likewise.
32093         * lib/freadahead.c (freadahead): Likewise.
32094         * lib/freading.c (freading): Likewise.
32095         * lib/freadptr.c (freadptr): Likewise.
32096         * lib/freadseek.c (freadptrinc): Likewise.
32097         * lib/fseeko.c (rpl_fseeko): Likewise.
32098         * lib/fseterr.c (fseterr): Likewise.
32099         * lib/fwritable.c (fwritable): Likewise.
32100         * lib/fwriting.c (fwriting): Likewise.
32101         Reported by Alain Guibert <alguibert+bts@free.fr>.
32102
32103 2008-04-15  Bruno Haible  <bruno@clisp.org>
32104
32105         * modules/mathl (configure.ac): Define module indicator.
32106
32107 2008-04-15  Bruno Haible  <bruno@clisp.org>
32108
32109         * lib/logl.c (logl): Remove unused variables.
32110
32111 2008-04-15  Bruno Haible  <bruno@clisp.org>
32112
32113         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32114         fails.
32115
32116 2008-04-15  Bruno Haible  <bruno@clisp.org>
32117
32118         * lib/trim.c (trim2): Fix argument of isspace() macro.
32119
32120 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32121
32122         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32123         to 0.
32124         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32125
32126 2008-04-14  Bruno Haible  <bruno@clisp.org>
32127
32128         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32129         AC_LANG_PROGRAM argument.
32130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32131         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32133         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32134         * m4/math_h.m4 (gl_MATH_H): Likewise.
32135         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32138         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32139         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32140         * m4/regex.m4 (gl_REGEX): Likewise.
32141         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32142         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32144         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32146         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32147         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32148         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32149
32150 2008-04-14  Jim Meyering  <meyering@redhat.com>
32151
32152         test-strtod: fix typos: s/abs/fabs/
32153         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32154
32155 2008-04-13  Bruno Haible  <bruno@clisp.org>
32156
32157         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32158         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32159         module is also used and while not building the reloc-wrapper.
32160
32161 2008-04-13  Bruno Haible  <bruno@clisp.org>
32162
32163         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32164
32165 2008-04-13  Bruno Haible  <bruno@clisp.org>
32166
32167         Fix AIX compilation failure introduced on 2008-04-02.
32168         * tests/test-frexp.c (exp): Undefine before redefining.
32169         * tests/test-frexpl.c (exp): Likewise.
32170
32171 2008-04-13  Bruno Haible  <bruno@clisp.org>
32172
32173         Work around a HP-UX stdio bug.
32174         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32175         * tests/test-ftello.c (main): Likewise.
32176         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32177         * doc/posix-functions/ftello.texi: Likewise.
32178
32179 2008-04-13  Bruno Haible  <bruno@clisp.org>
32180
32181         Make test-signbit pass on HP-UX/hppa.
32182         * tests/test-signbit.c (minus_zerol): New variable.
32183         (test_signbitl): Use it.
32184
32185 2008-04-13  Bruno Haible  <bruno@clisp.org>
32186
32187         Make truncl work on OSF/1 4.0.
32188         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32189         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32190         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32192         HAVE_DECL_TRUNCL.
32193         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32194         HAVE_DECL_TRUNCL.
32195         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32196
32197 2008-04-13  Bruno Haible  <bruno@clisp.org>
32198
32199         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32200
32201 2008-04-13  Bruno Haible  <bruno@clisp.org>
32202
32203         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32204         expression, so as to avoid HP-UX 11 cc compiler bug.
32205
32206 2008-04-13  Bruno Haible  <bruno@clisp.org>
32207
32208         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32209
32210 2008-04-13  Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/git-merge-changelog.c: Remove empty declaration outside of
32213         functions.
32214
32215 2008-04-13  Bruno Haible  <bruno@clisp.org>
32216
32217         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32218
32219 2008-04-13  Bruno Haible  <bruno@clisp.org>
32220
32221         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32222         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32224         also if it exists but lacks definitions of the SHUT_* macros.
32225         * modules/sys_socket (Description): Update.
32226         Reported by Elbert Pol <e.pol@chello.nl>.
32227
32228 2008-04-13  Bruno Haible  <bruno@clisp.org>
32229
32230         * lib/localcharset.c (OS2): Don't redefine if already defined.
32231         Reported by Elbert Pol <e.pol@chello.nl>.
32232
32233 2008-04-13  Bruno Haible  <bruno@clisp.org>
32234
32235         * lib/binary-io.h [__EMX__]: Include <io.h>.
32236         Reported by Elbert Pol <e.pol@chello.nl>.
32237
32238 2008-04-12  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/fpucw.h: Enable the definitions also for x86_64.
32241         Needed for NetBSD/x86_64.
32242         Reported by Thomas Klausner <tk@giga.or.at>.
32243
32244 2008-04-12  Bruno Haible  <bruno@clisp.org>
32245
32246         * tests/test-strtod.c: Include isnand.h.
32247         (main): Use isnand instead of isnan.
32248         Reported by Jim Meyering.
32249
32250 2008-04-12  Bruno Haible  <bruno@clisp.org>
32251
32252         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32253         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32254
32255 2008-04-12  Jim Meyering  <meyering@redhat.com>
32256
32257         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32258
32259 2008-04-12  Bruno Haible  <bruno@clisp.org>
32260
32261         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32262         Reported by Elbert Pol <e.pol@chello.nl>.
32263
32264 2008-04-12  Eric Blake  <ebb9@byu.net>
32265
32266         Work around Solaris 10 math.h bug.
32267         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32268         (gl_MATH_H_DEFAULTS): Set up default.
32269         * modules/math (Makefile.am): Replace new indicators.
32270         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32271         * tests/test-math.c (main): Test this.
32272         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32273         * doc/posix-headers/math.texi (math.h): Mention bug.
32274         Reported by Nelson H. F. Beebe and Jim Meyering.
32275
32276 2008-04-11  Bruno Haible  <bruno@clisp.org>
32277
32278         Adapt to future versions of Apple GCC.
32279         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32280         Reported by Peter O'Gorman <peter@pogma.com>.
32281
32282 2008-04-11  Bruno Haible  <bruno@clisp.org>
32283
32284         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32285
32286 2008-04-11  Bruno Haible  <bruno@clisp.org>
32287
32288         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32289
32290         * modules/getaddrinfo-tests (Makefile.am): Define
32291         test_getaddrinfo_LDADD.
32292
32293 2008-04-11  Bruno Haible  <bruno@clisp.org>
32294
32295         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32296         (init): Fix syntax error.
32297         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32298         is declared.
32299
32300 2008-04-11  Bruno Haible  <bruno@clisp.org>
32301
32302         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32303         * modules/glob (Depends-on): Add stdbool.
32304
32305 2008-04-11  Bruno Haible  <bruno@clisp.org>
32306
32307         * lib/trim.c: Include <string.h>.
32308
32309 2008-04-11  Eric Blake  <ebb9@byu.net>
32310
32311         Avoid compile failure on OS/2.
32312         * lib/regex_internal.h (internal_function): Disable optimization
32313         on OS/2 (__EMX__), where it caused compiler error.
32314         Reported by Elbert Pol.
32315
32316 2008-04-11  Bruno Haible  <bruno@clisp.org>
32317
32318         Flush the standard error stream before aborting. Needed on mingw.
32319         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32320         * tests/test-array_list.c (ASSERT): Likewise.
32321         * tests/test-array_oset.c (ASSERT): Likewise.
32322         * tests/test-avltree_list.c (ASSERT): Likewise.
32323         * tests/test-avltree_oset.c (ASSERT): Likewise.
32324         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32325         * tests/test-binary-io.c (ASSERT): Likewise.
32326         * tests/test-byteswap.c (ASSERT): Likewise.
32327         * tests/test-c-ctype.c (ASSERT): Likewise.
32328         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32329         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32330         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32331         * tests/test-c-strstr.c (ASSERT): Likewise.
32332         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32333         * tests/test-canonicalize.c (ASSERT): Likewise.
32334         * tests/test-carray_list.c (ASSERT): Likewise.
32335         * tests/test-ceilf1.c (ASSERT): Likewise.
32336         * tests/test-ceilf2.c (ASSERT): Likewise.
32337         * tests/test-ceill.c (ASSERT): Likewise.
32338         * tests/test-count-one-bits.c (ASSERT): Likewise.
32339         * tests/test-fbufmode.c (ASSERT): Likewise.
32340         * tests/test-fflush2.c (ASSERT): Likewise.
32341         * tests/test-floorf1.c (ASSERT): Likewise.
32342         * tests/test-floorf2.c (ASSERT): Likewise.
32343         * tests/test-floorl.c (ASSERT): Likewise.
32344         * tests/test-fopen.c (ASSERT): Likewise.
32345         * tests/test-fpending.c (ASSERT): Likewise.
32346         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32347         * tests/test-fpurge.c (ASSERT): Likewise.
32348         * tests/test-freadable.c (ASSERT): Likewise.
32349         * tests/test-freadahead.c (ASSERT): Likewise.
32350         * tests/test-freading.c (ASSERT): Likewise.
32351         * tests/test-freadptr.c (ASSERT): Likewise.
32352         * tests/test-freadptr2.c (ASSERT): Likewise.
32353         * tests/test-freadseek.c (ASSERT): Likewise.
32354         * tests/test-freopen.c (ASSERT): Likewise.
32355         * tests/test-frexp.c (ASSERT): Likewise.
32356         * tests/test-frexpl.c (ASSERT): Likewise.
32357         * tests/test-fseek.c (ASSERT): Likewise.
32358         * tests/test-fseeko.c (ASSERT): Likewise.
32359         * tests/test-fstrcmp.c (ASSERT): Likewise.
32360         * tests/test-ftell.c (ASSERT): Likewise.
32361         * tests/test-ftello.c (ASSERT): Likewise.
32362         * tests/test-func.c (ASSERT): Likewise.
32363         * tests/test-fwritable.c (ASSERT): Likewise.
32364         * tests/test-fwriting.c (ASSERT): Likewise.
32365         * tests/test-getdelim.c (ASSERT): Likewise.
32366         * tests/test-getline.c (ASSERT): Likewise.
32367         * tests/test-i-ring.c (ASSERT): Likewise.
32368         * tests/test-iconv-utf.c (ASSERT): Likewise.
32369         * tests/test-iconv.c (ASSERT): Likewise.
32370         * tests/test-isfinite.c (ASSERT): Likewise.
32371         * tests/test-isnand.c (ASSERT): Likewise.
32372         * tests/test-isnanf.c (ASSERT): Likewise.
32373         * tests/test-isnanl.h (ASSERT): Likewise.
32374         * tests/test-ldexpl.c (ASSERT): Likewise.
32375         * tests/test-linked_list.c (ASSERT): Likewise.
32376         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32377         * tests/test-localename.c (ASSERT): Likewise.
32378         * tests/test-lseek.c (ASSERT): Likewise.
32379         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32380         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32381         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32382         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32383         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32384         * tests/test-mbschr.c (ASSERT): Likewise.
32385         * tests/test-mbscspn.c (ASSERT): Likewise.
32386         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32387         * tests/test-mbspbrk.c (ASSERT): Likewise.
32388         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32389         * tests/test-mbsrchr.c (ASSERT): Likewise.
32390         * tests/test-mbsspn.c (ASSERT): Likewise.
32391         * tests/test-mbsstr1.c (ASSERT): Likewise.
32392         * tests/test-mbsstr2.c (ASSERT): Likewise.
32393         * tests/test-mbsstr3.c (ASSERT): Likewise.
32394         * tests/test-memchr2.c (ASSERT): Likewise.
32395         * tests/test-memmem.c (ASSERT): Likewise.
32396         * tests/test-open.c (ASSERT): Likewise.
32397         * tests/test-printf-frexp.c (ASSERT): Likewise.
32398         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32399         * tests/test-printf-posix.c (ASSERT): Likewise.
32400         * tests/test-quotearg.c (ASSERT): Likewise.
32401         * tests/test-rbtree_list.c (ASSERT): Likewise.
32402         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32403         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32404         * tests/test-round1.c (ASSERT): Likewise.
32405         * tests/test-roundf1.c (ASSERT): Likewise.
32406         * tests/test-roundl.c (ASSERT): Likewise.
32407         * tests/test-signbit.c (ASSERT): Likewise.
32408         * tests/test-sleep.c (ASSERT): Likewise.
32409         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32410         * tests/test-snprintf.c (ASSERT): Likewise.
32411         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32412         * tests/test-stat-time.c (ASSERT): Likewise.
32413         * tests/test-strcasestr.c (ASSERT): Likewise.
32414         * tests/test-strerror.c (ASSERT): Likewise.
32415         * tests/test-striconv.c (ASSERT): Likewise.
32416         * tests/test-striconveh.c (ASSERT): Likewise.
32417         * tests/test-striconveha.c (ASSERT): Likewise.
32418         * tests/test-strsignal.c (ASSERT): Likewise.
32419         * tests/test-strstr.c (ASSERT): Likewise.
32420         * tests/test-strtod.c (ASSERT): Likewise.
32421         * tests/test-trunc1.c (ASSERT): Likewise.
32422         * tests/test-trunc2.c (ASSERT): Likewise.
32423         * tests/test-truncf1.c (ASSERT): Likewise.
32424         * tests/test-truncf2.c (ASSERT): Likewise.
32425         * tests/test-truncl.c (ASSERT): Likewise.
32426         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32427         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32428         * tests/test-vasnprintf.c (ASSERT): Likewise.
32429         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32430         * tests/test-vasprintf.c (ASSERT): Likewise.
32431         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32432         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32433         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32434         * tests/test-vsnprintf.c (ASSERT): Likewise.
32435         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32436         * tests/test-wcwidth.c (ASSERT): Likewise.
32437         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32438         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32439         * tests/test-xvasprintf.c (ASSERT): Likewise.
32440         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32441         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32442         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32443         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32444         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32445         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32446         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32447         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32448         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32449         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32450         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32451         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32452         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32453         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32454         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32455         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32456         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32457         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32458         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32459         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32460         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32461         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32462         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32463         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32464         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32465         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32466         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32467         * tests/unictype/test-combining.c (ASSERT): Likewise.
32468         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32469         * tests/unictype/test-digit.c (ASSERT): Likewise.
32470         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32471         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32472         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32473         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32474         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32475         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32476         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32477         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32478         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32479         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32480         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32481         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32482         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32483         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32484         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32485         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32486         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32487         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32488         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32489         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32490         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32491         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32492         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32493         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32494         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32495         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32496         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32497         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32498         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32499         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32500         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32501         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32502         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32503         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32504         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32505         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32506         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32507         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32508         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32509         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32510         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32511         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32512         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32513         Reported by Eric Blake.
32514
32515 2008-04-11  Bruno Haible  <bruno@clisp.org>
32516
32517         * lib/wchar.in.h: Tweak comment.
32518
32519 2008-04-11  Bruno Haible  <bruno@clisp.org>
32520
32521         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32522         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32523         gl_COMMON.
32524         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32525
32526 2008-04-11  Bruno Haible  <bruno@clisp.org>
32527
32528         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32529
32530 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32531
32532         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32533         of attempting to use non-existing /dev/*random.  Based on patch
32534         from Adam Strzelecki <ono@java.pl> in
32535         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32536
32537 2008-04-08  Bruno Haible  <bruno@clisp.org>
32538
32539         Add tentative support for emx+gcc.
32540         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32541         * lib/fpurge.c (fpurge): Likewise.
32542         * lib/freadable.c (freadable): Likewise.
32543         * lib/freadahead.c (freadahead): Likewise.
32544         * lib/freading.c (freading): Likewise.
32545         * lib/freadptr.c (freadptr): Likewise.
32546         * lib/freadseek.c (freadptrinc): Likewise.
32547         * lib/fseeko.c (rpl_fseeko): Likewise.
32548         * lib/fseterr.c (fseterr): Likewise.
32549         * lib/fwritable.c (fwritable): Likewise.
32550         * lib/fwriting.c (fwriting): Likewise.
32551         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32552
32553 2008-04-09  Eric Blake  <ebb9@byu.net>
32554
32555         Avoid some autoconf warnings.
32556         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32557         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32558         * m4/afs.m4 (gl_AFS): Likewise.
32559         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32560         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32562         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32563         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32564         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32565         (AC_CHECK_DECLS_ONCE): Likewise.
32566         Rename file...
32567         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32568         gnulib-tool requires autoconf 2.59 or better.
32569         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32570
32571 2008-04-08  Eric Blake  <ebb9@byu.net>
32572
32573         Use 'git describe --match' if present (added in git 1.5.5).
32574         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32575         if possible.
32576
32577 2008-04-08  Bruno Haible  <bruno@clisp.org>
32578
32579         Add tentative support for OpenServer.
32580         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32581         _ptr, _cnt.
32582         * lib/fpurge.c (fpurge): Likewise.
32583         * lib/freadable.c (freadable): Likewise.
32584         * lib/freadahead.c (freadahead): Likewise.
32585         * lib/freading.c (freading): Likewise.
32586         * lib/freadptr.c (freadptr): Likewise.
32587         * lib/freadseek.c (freadptrinc): Likewise.
32588         * lib/fseeko.c (rpl_fseeko): Likewise.
32589         * lib/fseterr.c (fseterr): Likewise.
32590         * lib/fwritable.c (fwritable): Likewise.
32591         * lib/fwriting.c (fwriting): Likewise.
32592         Reported by Roger Cornelius <rac@tenzing.org> and
32593         Brian K. White <brian@aljex.com>.
32594
32595 2008-04-06  Jim Meyering  <meyering@redhat.com>
32596
32597         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32598
32599 2008-04-06  Bruno Haible  <bruno@clisp.org>
32600
32601         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32602         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32603         * tests/test-printf-posix.sh: Likewise.
32604         * tests/test-vfprintf-posix.sh: Likewise.
32605         * tests/test-vprintf-posix.sh: Likewise.
32606         * tests/test-xprintf-posix.sh: Likewise.
32607
32608 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32609
32610         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32611         hide error from 'ls', needed on OS/2.
32612         Report by Elbert Pol <elbert.pol@gmail.com>.
32613
32614 2008-04-04  Eric Blake  <ebb9@byu.net>
32615
32616         Make test-fseeko.c failures meaningful.
32617         * tests/test-fseeko.c: Print line number on failure.
32618         * tests/test-fseek.c: Likewise.
32619         Reported by Nelson H. F. Beebe.
32620
32621         Improve strtod bug detection check.
32622         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32623         required for Solaris 10.
32624         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32625
32626 2008-04-04  Bruno Haible  <bruno@clisp.org>
32627
32628         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32629         by m4/setenv.m4.
32630
32631 2008-04-03  Eric Blake  <ebb9@byu.net>
32632
32633         Ensure sane .version contents.
32634         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32635         version string.
32636         * build-aux/git-version-gen: Improve documentation.
32637
32638         Make GNU make output nicer.
32639         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32640         MAKECMDGOALS to enforce message for all command line targets.  Set
32641         srcdir for use in maint.mk.
32642
32643         Another maintainer tweak.
32644         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32645         a target that regenerates version.
32646
32647 2008-04-03  Jim Meyering  <meyering@redhat.com>
32648
32649         vc-list-files: don't cause coreutils "make po-check" failure
32650         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32651
32652 2008-04-03  Eric Blake  <ebb9@byu.net>
32653
32654         Allow VPATH usage of vc-list-files.
32655         * build-aux/vc-list-files (scriptversion): Add timestamp.
32656         (options): Add --help, --version, -C.
32657         (CVS): Support installed cvsu.
32658
32659 2008-04-02  Bruno Haible  <bruno@clisp.org>
32660
32661         Avoid some "statement with no effect" warnings from gcc.
32662         * tests/test-wctype.c (main): Explicitly ignore unused values.
32663         Reported by Jim Meyering.
32664
32665 2008-04-02  Jim Meyering  <meyering@redhat.com>
32666
32667         Avoid some warnings from "gcc -Wshadow".
32668         * tests/test-frexp.c (exp): Define to a different identifier.
32669         * tests/test-frexpl.c (exp): Likewise.
32670
32671 2008-04-03  Jim Meyering  <meyering@redhat.com>
32672
32673         bootstrap: remove dangling *.[ch] symlinks from lib
32674         * build-aux/bootstrap [dangling symlink removal]: Move find's
32675         -depth option to precede all others, to avoid a warning.
32676         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32677
32678 2008-04-02  Bruno Haible  <bruno@clisp.org>
32679
32680         Avoid some warnings from "gcc -Wshadow".
32681         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32682         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32683         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32684         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32685         Reported by Jim Meyering.
32686
32687 2008-04-01  Bruno Haible  <bruno@clisp.org>
32688
32689         Fix test to work on IRIX 6.5 with cc.
32690         * tests/test-math.c (numeric_equal): New function.
32691         (main): Use it.
32692
32693 2008-04-01  Bruno Haible  <bruno@clisp.org>
32694
32695         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32696
32697 2008-04-01  Bruno Haible  <bruno@clisp.org>
32698
32699         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32700         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32701         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32702         (Depends-on): Remove math.
32703
32704         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32705         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32706         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32707         (Depends-on): Remove math.
32708
32709         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32710         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32711         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32712         (Depends-on): Remove math.
32713         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32714         (Depends-on): Remove math.
32715
32716         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32717         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32718         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32719         (Depends-on): Remove math.
32720         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32721         (Depends-on): Remove math.
32722
32723         * tests/test-round1.c: Include nan.h.
32724         (main): Use NaNd instead of NAN.
32725         * modules/round-tests (Files): Add tests/nan.h.
32726
32727         * tests/test-trunc1.c: Include nan.h.
32728         (main): Use NaNd instead of NAN.
32729         * modules/trunc-tests (Files): Add tests/nan.h.
32730
32731         * tests/test-roundf1.c: Include nan.h.
32732         (main): Use NaNf instead of NAN.
32733         * modules/roundf-tests (Files): Add tests/nan.h.
32734
32735         * tests/test-truncf1.c: Include nan.h.
32736         (main): Use NaNf instead of NAN.
32737         * modules/truncf-tests (Files): Add tests/nan.h.
32738
32739         * tests/test-ceilf1.c: Include nan.h.
32740         (main): Use NaNf instead of NAN.
32741         * modules/ceilf-tests (Files): Add tests/nan.h.
32742
32743         * tests/test-floorf1.c: Include nan.h.
32744         (main): Use NaNf instead of NAN.
32745         * modules/floorf-tests (Files): Add tests/nan.h.
32746
32747         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32748         (main): Use NaNf instead of NAN.
32749         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32750
32751         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32752         (main): Use NaNd instead of NAN.
32753         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32754
32755         * tests/test-frexp.c: Include nan.h.
32756         (main): Use NaNd instead of NAN.
32757         * modules/frexp-tests (Files): Add tests/nan.h.
32758
32759         * lib/isnan.c: Don't include <math.h>.
32760         (FUNC): Don't use NAN macro.
32761         * modules/isnand-nolibm (Depends-on): Remove math.
32762         * modules/isnanf-nolibm (Depends-on): Remove math.
32763         * modules/isnanl (Depends-on): Remove math.
32764         * modules/isnanl-nolibm (Depends-on): Remove math.
32765
32766         * tests/nan.h: New file.
32767
32768 2008-04-01  Eric Blake  <ebb9@byu.net>
32769
32770         Fix typos.
32771         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32772         values to be the right type.
32773
32774         For now, cater to gnulib strtod inaccuracies.
32775         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32776         fractional results.  While not as nice from a QoI perspective, it
32777         is a quicker patch than correctly implementing decimal to binary
32778         rounding.
32779
32780 2008-03-31  Eric Blake  <ebb9@byu.net>
32781
32782         Guarantee a definition of NAN.
32783         * lib/math.in.h (NAN): Define if missing.
32784         * tests/test-math.c (main): Test it.
32785         * doc/posix-headers/math.texi (math.h): Document this.
32786         * lib/isnan.c (rpl_isnand): Use it.
32787         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32788         * tests/test-floorf1.c (NaN): Likewise.
32789         * tests/test-frexp.c (NaN): Likewise.
32790         * tests/test-isnand.c (NaN): Likewise.
32791         * tests/test-isnanf.c (NaN): Likewise.
32792         * tests/test-round1.c (NaN): Likewise.
32793         * tests/test-roundf1.c (NaN): Likewise.
32794         * tests/test-snprintf-posix.h (NaN): Likewise.
32795         * tests/test-sprintf-posix.h (NaN): Likewise.
32796         * tests/test-trunc1.c (NaN): Likewise.
32797         * tests/test-truncf1.c (NaN): Likewise.
32798         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32799         * tests/test-vasprintf-posix.c (NaN): Likewise.
32800         * modules/isnand-nolibm (Depends-on): Add math.
32801         * modules/isnanf-nolibm (Depends-on): Likewise.
32802         * modules/isnanl (Depends-on): Likewise.
32803         * modules/isnanl-nolibm (Depends-on): Likewise.
32804         * modules/snprintf-posix-tests (Depends-on): Likewise.
32805         * modules/sprintf-posix-tests (Depends-on): Likewise.
32806         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32807         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32808         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32809         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32810
32811 2008-03-31  Bruno Haible  <bruno@clisp.org>
32812
32813         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32814         * doc/posix-functions/strtod.texi: Likewise.
32815
32816 2008-03-31  Bruno Haible  <bruno@clisp.org>
32817
32818         * tests/test-strtod.c (main): Don't use C99 syntax.
32819
32820 2008-03-31  Bruno Haible  <bruno@clisp.org>
32821
32822         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32823         Reported by Eric Blake.
32824
32825 2008-03-31  Jim Meyering  <meyering@redhat.com>
32826
32827         Don't compare actual signbit return values.
32828         * tests/test-strtod.c (main): Rather, compare only their
32829         zero/non-zero nature.
32830
32831 2008-03-31  Eric Blake  <ebb9@byu.net>
32832
32833         More strtod documentation.
32834         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32835         failures as distinct bugs.
32836
32837 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32838
32839         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32840         Problem reported by Erik Benada in
32841         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32842
32843 2008-03-30  Bruno Haible  <bruno@clisp.org>
32844
32845         * tests/test-strtod.c: Add comments about which assertion fails on which
32846         platform.
32847         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32848
32849 2008-03-30  Eric Blake  <ebb9@byu.net>
32850
32851         Test signbit behavior on zeros.
32852         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32853         (test_signbitd, test_signbitl): Likewise.
32854
32855         More strtod touchups.
32856         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32857         sign of negative underflow, for now.  Use .5, not .1.
32858         * doc/posix-functions/strtod.texi (strtod): Mention these
32859         limitations.
32860         Reported by Jim Meyering.
32861
32862 2008-03-30  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32865         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32866
32867 2008-03-30  Bruno Haible  <bruno@clisp.org>
32868
32869         Avoid failure when attempting to return empty iconv results on some
32870         platforms.
32871         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32872         allocation, don't report ENOMEM when the resulting string is empty.
32873
32874 2008-03-30  Bruno Haible  <bruno@clisp.org>
32875
32876         Fix buffer overrun.
32877         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32878         Don't consider the width for tmp_length. Check count against tmp_length
32879         before doing the padding. Ensure enough allocation during padding.
32880
32881 2008-03-30  Eric Blake  <ebb9@byu.net>
32882
32883         strtod touchups.
32884         * lib/strtod.c (strtod): Avoid compiler warnings.
32885         Reported by Jim Meyering.
32886
32887 2008-03-30  Bruno Haible  <bruno@clisp.org>
32888
32889         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32890         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32891         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32892         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32893         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32894         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32895         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32896         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32897
32898         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32899         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32900         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32901         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32902         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32903         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32904         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32905         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32906
32907         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32908         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32909         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32910         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32911         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32912         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32913         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32914         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32915
32916         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32917         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32918
32919         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32920         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32921
32922         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32923         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32924
32925         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32927         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32928
32929         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32931         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32932
32933         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32935         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32936
32937         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32939         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32940
32941         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32942         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32944         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32945         (Depends-on): Add EOVERFLOW.
32946         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32947         (Depends-on): Add EOVERFLOW.
32948         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32949         (Depends-on): Add EOVERFLOW.
32950         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32951         (Depends-on): Add EOVERFLOW.
32952         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32953         (Depends-on): Add EOVERFLOW.
32954         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32955         (Depends-on): Add EOVERFLOW.
32956         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32957         (Depends-on): Add EOVERFLOW.
32958         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32959         (Depends-on): Add EOVERFLOW.
32960
32961         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32963         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32964
32965         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32967         * modules/snprintf (Depends-on): Add EOVERFLOW.
32968
32969         * lib/poll.c (EOVERFLOW): Remove fallback.
32970         * modules/poll (Depends-on): Add EOVERFLOW.
32971
32972         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32973         * modules/getugroups (Depends-on): Add EOVERFLOW.
32974
32975         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32976         * modules/getdelim (Depends-on): Add EOVERFLOW.
32977
32978         * lib/ftell.c (EOVERFLOW): Remove fallback.
32979         * modules/ftell (Depends-on): Add EOVERFLOW.
32980
32981         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32983         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32984
32985         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32986
32987         * modules/EOVERFLOW-tests: New file.
32988         * tests/test-EOVERFLOW.c: New file.
32989
32990         * modules/EOVERFLOW: New file.
32991         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32992
32993 2008-03-30  Bruno Haible  <bruno@clisp.org>
32994
32995         Fix bug introduced on 2007-06-10.
32996         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32997         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32998
32999 2008-03-30  Bruno Haible  <bruno@clisp.org>
33000
33001         Improve freadseek's efficiency after ungetc.
33002         * lib/freadseek.c: Include freadahead.h.
33003         (freadptrinc): New function, extracted from freadseek.
33004         (freadseek): Use it in a loop. Use freadahead to determine the number
33005         of loop iterations.
33006         * modules/freadseek (Depends-on): Add freadahead.
33007         (configure.ac): Require AC_C_INLINE.
33008
33009 2008-03-30  Bruno Haible  <bruno@clisp.org>
33010
33011         * lib/freadseek.c (freadseek): Don't ignore the return value of
33012         freadptr.
33013
33014 2008-03-29  Eric Blake  <ebb9@byu.net>
33015
33016         Add hex float support.
33017         * modules/strtod (Depends-on): Add c-ctype.
33018         (Link): Mention POW_LIB.
33019         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33020         whitespace between 'e' and exponent.
33021         * tests/test-strtod.c (main): Enable hex float tests.
33022         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33023         now provides.
33024
33025         Document various strtod bugs, with some fixes.
33026         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33027         "-0x", "inf", "nan", and hex constants.
33028         * doc/posix-functions/atof.texi (atof): Likewise.
33029         * modules/stdlib (Makefile.am): Support strtod.
33030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33031         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33032         detect additional strtod bugs.
33033         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33034         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33035         bool where appropriate.  Parse 'inf' and 'nan'.
33036         * tests/test-strtod.c: New file.
33037         * modules/strtod (Depends-on): Add stdbool, stdlib.
33038         (configure.ac): Turn on module indicator.
33039         * modules/strtod-tests: New module.
33040
33041 2008-03-29  Eric Blake  <ebb9@byu.net>
33042
33043         Fix ftell on mingw.
33044         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33045         * modules/ftell-tests (Depends-on): Add binary-io.
33046         * modules/ftello-tests (Depends-on): Likewise.
33047         * tests/test-ftell.c (main): Enhance test to cover behavior after
33048         ungetc.  Enforce binary mode.
33049         * tests/test-ftello.c (main): Likewise.
33050
33051         Pass test-freadseek on cygwin.
33052         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33053         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33054         ungetc buffer.
33055
33056         * tests/test-fflush2.c (main): Fix typo.
33057
33058 2008-03-29  Bruno Haible  <bruno@clisp.org>
33059
33060         * tests/test-fflush2.c (main): Temporarily disable the contents of
33061         this test.
33062         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33063         Reported by Eric Blake.
33064
33065 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33066
33067         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33068         (GC_SHA224_DIGEST_SIZE): Add.
33069
33070         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33071         (gc_hash_digest_length): Likewise.
33072         (gc_hash_buffer): Likewise.
33073
33074 2008-03-25  Bruno Haible  <bruno@clisp.org>
33075
33076         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33077         detail which gettext release to use.
33078         Reported by Simon Josefsson.
33079
33080 2008-03-26  Jim Meyering  <meyering@redhat.com>
33081
33082         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33083         * modules/gnumakefile (clean-GNUmakefile): Also, use
33084         test ... && ... || : syntax rather than if-then ... fi.
33085
33086         gnumakefile: Don't double-quote-expand $(VPATH) value.
33087         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33088
33089 2008-03-24  Eric Blake  <ebb9@byu.net>
33090
33091         Alter GNUmakefile to install into top directory.
33092         * modules/maintainer-makefile: Split, and add dependency...
33093         * modules/gnumakefile: to this new module.
33094         * build-aux/GNUmakefile: Move...
33095         * top/GNUmakefile: ...here.
33096         * build-aux/maint.mk: Move...
33097         * top/maint.mk: ...here.
33098         * MODULES.html.sh (Support for maintaining...): Document new
33099         module.
33100
33101 2008-03-23  Bruno Haible  <bruno@clisp.org>
33102
33103         * gnulib-tool: New options --vc-files, --no-vc-files.
33104         (func_usage): Document them.
33105         (vc_files): New variable.
33106         (func_import): Consider vc_files.
33107         (func_create_testdir): Set vc_files to empty.
33108         Suggested by Jim Meyering and Karl Berry.
33109
33110 2008-03-23  Bruno Haible  <bruno@clisp.org>
33111
33112         Fix regex compilation error on HP-UX 11.
33113         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33114         * modules/regex (Files): Add m4/mbstate_t.m4.
33115         Reported by Ton Voon <ton.voon@altinity.com>.
33116
33117 2008-03-23  Bruno Haible  <bruno@clisp.org>
33118
33119         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33120
33121 2008-03-23  Eric Blake  <ebb9@byu.net>
33122             Bruno Haible  <bruno@clisp.org>
33123
33124         Install files from top/ in the destination directory.
33125         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33126         augmentation also for the files from top/.
33127         (func_import, func_create_testdir): Rewrite file names:
33128         top/filename -> filename.
33129
33130 2008-03-23  Bruno Haible  <bruno@clisp.org>
33131
33132         Tweak "gnulib --version" output.
33133         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33134
33135 2008-03-23  Bruno Haible  <bruno@clisp.org>
33136
33137         Tweak "gnulib --version" output.
33138         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33139         rather than contents of ChangeLog, when possible.
33140
33141 2008-03-21  Eric Blake  <ebb9@byu.net>
33142
33143         More --version tweaks.
33144         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33145         date of last ChangeLog entry.
33146
33147 2008-03-21  Jim Meyering  <meyering@redhat.com>
33148
33149         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33150
33151 2008-03-20  Eric Blake  <ebb9@byu.net>
33152
33153         VPATH fix.
33154         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33155
33156 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33157
33158         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33159         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33160
33161 2008-03-20  Eric Blake  <ebb9@byu.net>
33162
33163         Sync GNUmakefile with coreutils.
33164         * build-aux/GNUmakefile (have-Makefile): Rename...
33165         (_have-Makefile): ...to this, for namespace consideration.
33166         (GNUmakefile.cfg): Include, if present.
33167         (_autoreconf): Define a default.
33168         (_is-dist-target): New rule for rebuilds to pick up intra-release
33169         version.
33170         (maint-cfg.mk): Rename...
33171         (cfg.mk): ...to this.
33172
33173 2008-03-18  Jim Meyering  <meyering@redhat.com>
33174
33175         New script and module: mktempd
33176         * MODULES.html.sh (maint+release support): Add mktempd.
33177         * build-aux/mktempd: New file.
33178         * modules/mktempd: New file.
33179
33180 2008-03-15  Jim Meyering  <meyering@redhat.com>
33181
33182         Undo last change.
33183         * lib/sha1.c, lib/md5.c: 63 != ~63.
33184         Reported by Andreas Schwab.
33185
33186         sha1.c, md5.c: Hoist a redundant expression.
33187         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33188         "ctx->buflen" only once, before calling *_process_block.
33189         * lib/md5.c (md5_process_bytes): Likewise.
33190
33191 2008-03-14  Eric Blake  <ebb9@byu.net>
33192
33193         Bump copyright year in files generated by gnulib-tool.
33194         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33195         gnulib-tool, rather than hard-coding it.
33196
33197         Fix 'gnulib-tool --version' output to work with git.
33198         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33199         (startup): ...here.
33200         (func_version): Use it to invoke git-version-gen, rather than
33201         relying on CVS keyword expansion.  Modernize wording.
33202         (cvsdatestamp, last_checkin_date, version): Kill unused
33203         variables.
33204
33205 2008-03-12  Jim Meyering  <meyering@redhat.com>
33206
33207         Recognize optional cast of the argument to free.
33208         * build-aux/useless-if-before-free: Update regexps.
33209
33210         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33211
33212 2008-03-11  Bruno Haible  <bruno@clisp.org>
33213
33214         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33215         by a single package.
33216         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33217         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33218         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33219         Reported by Sam Steingold <sds@gnu.org>.
33220
33221 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33222
33223         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33224         repositories.
33225
33226 2008-03-11  Bruno Haible  <bruno@clisp.org>
33227
33228         Avoid conflicts between local macro definitions.
33229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33230         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33231
33232 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33233             Bruno Haible  <bruno@clisp.org>
33234
33235         Make va_copy work with some version of xlc on AIX 5.1.
33236         * lib/stdarg.in.h: New file.
33237         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33238         On AIX, use a <stdarg.h> file substitute.
33239         * modules/stdarg (Files): Add lib/stdarg.in.h.
33240         (Depends-on): Add include_next.
33241         (Makefile.am): Build a stdarg.h substitute if requested.
33242         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33243
33244 2008-03-10  Bruno Haible  <bruno@clisp.org>
33245
33246         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33247         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33248         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33249
33250 2008-03-10  Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/stdlib (Depends-on): Add include_next, remove
33253         absolute-header.
33254
33255 2008-03-09  Bruno Haible  <bruno@clisp.org>
33256
33257         * lib/freadahead.h (freadahead): Document more precisely.
33258         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33259         the sum of both buffer sizes.
33260         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33261         * NEWS: Document the change.
33262
33263 2008-03-09  Bruno Haible  <bruno@clisp.org>
33264
33265         Extend freadptr to return also the buffer size.
33266         * lib/freadptr.h (freadptr): Add sizep argument.
33267         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33268         (freadptr): Add sizep argument. Determine buffer size like freadahead
33269         does.
33270         * tests/test-freadptr.c: Don't include freadahead.h.
33271         (main): Adapt for new calling convention of freadptr.
33272         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33273         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33274         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33275         tests/test-freadptr2.sh.
33276         (Depends): Remove freadahead.
33277         (TESTS): Add test-freadptr2.sh.
33278         (check_PROGRAMS): Add test-freadptr2.
33279
33280 2008-03-09  Bruno Haible  <bruno@clisp.org>
33281
33282         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33283         Report and solution by Simon Josefsson.
33284
33285 2008-03-06  Bruno Haible  <bruno@clisp.org>
33286
33287         Make fflush after ungetc work on BSD platforms.
33288         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33289         * tests/test-fflush2.c: New file.
33290         * tests/test-fflush2.sh: New file.
33291         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33292         tests/test-fflush2.c.
33293         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33294         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33295
33296 2008-03-06  Eric Blake  <ebb9@byu.net>
33297
33298         Likewise for ftello.
33299         * modules/ftello (Dependencies): Add extensions.
33300         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33301
33302 2008-03-06  Bruno Haible  <bruno@clisp.org>
33303
33304         * modules/fseeko (Dependencies): Add extensions.
33305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33306         Needed on glibc systems.
33307
33308 2008-03-06  Bruno Haible  <bruno@clisp.org>
33309
33310         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33311         email address.
33312         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33313
33314 2008-03-06  Bruno Haible  <bruno@clisp.org>
33315
33316         * users.txt: Add libgnupdf.
33317
33318 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33319
33320         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33321         (Header File Substitutes, Function Substitutes,
33322         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33323         (Build robot for gnulib): Fix typo.
33324
33325 2008-03-06  Bruno Haible  <bruno@clisp.org>
33326
33327         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33328         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33329
33330 2008-03-06  Bruno Haible  <bruno@clisp.org>
33331
33332         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33333         * doc/gnulib.texi: Include it.
33334
33335 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33336
33337         * modules/func (License): Change license to unlimited; there was
33338         no LGPL parts in the module anyway.
33339
33340 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33341
33342         * modules/__func__: Renamed to modules/func.
33343         * modules/__func__-tests: Renamed to modules/func-tests.
33344         * tests/test-__func__.c: Renamed to tests/test-func.c.
33345         * m4/__func__.m4: Renamed to m4/func.m4.
33346         * doc/gnulib.texi (__func__): Section renamed to func.
33347         Suggested by Eric Blake <ebb9@byu.net>.
33348
33349 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33350
33351         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33352         about __func__.  Make example self-contained.  Suggested by Eric
33353         Blake <ebb9@byu.net>.
33354
33355         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33356         Suggested by Eric Blake <ebb9@byu.net>.
33357
33358 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33359
33360         * modules/__func__: New file.
33361         * modules/__func__-tests: New file.
33362         * tests/test-__func__.c: New file.
33363         * m4/__func__.m4: New file.
33364         * doc/gnulib.texi (__func__): Document __func__ module.
33365
33366 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33367
33368         * modules/byteswap (License): Re-license as LGPLv2+.
33369
33370 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33371
33372         * doc/Makefile: Add pdf target.
33373
33374 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33375
33376         * modules/inline (License): Use 'unlimited', since there are only
33377         *.m4 files in this module.
33378
33379 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33380             Bruno Haible  <bruno@clisp.org>
33381
33382         Add support for HP C 7.1 on OpenVMS 8.3.
33383         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33384
33385 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33386
33387         Update VMS specifics.
33388         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33389
33390 2008-03-02  Jim Meyering  <meyering@redhat.com>
33391
33392         Remove the last dependency on the "free" module.
33393         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33394         Reported by Bob Proulx.
33395
33396         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33397
33398         Remove useless "if" tests before free.  Deprecate "free" module.
33399         * doc/posix-functions/free.texi: Mention that this
33400         module is no longer useful.
33401         * modules/free (Notice): Say this module is obsolete.
33402         * modules/readutmp (Depends-on): Remove free.
33403         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33404         * lib/putenv.c (putenv): Likewise.
33405         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33406         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33407         * tests/test-c-strcasestr.c (main): Likewise.
33408         * tests/test-c-strstr.c (main): Likewise.
33409         * tests/test-mbscasestr1.c (main): Likewise.
33410         * tests/test-mbscasestr2.c (main): Likewise.
33411         * tests/test-mbsstr1.c (main): Likewise.
33412         * tests/test-mbsstr2.c (main): Likewise.
33413         * tests/test-memmem.c (main): Likewise.
33414         * tests/test-strcasestr.c (main): Likewise.
33415         * tests/test-striconv.c (main): Likewise.
33416         * tests/test-striconveh.c (main): Likewise.
33417         * tests/test-striconveha.c (main): Likewise.
33418         * tests/test-strstr.c (main): Likewise.
33419
33420         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33421
33422         bootstrap: sync from coreutils again
33423         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33424
33425 2008-03-01  Jim Meyering  <meyering@redhat.com>
33426
33427         bootstrap: sync from coreutils
33428         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33429         also when the target doesn't exist.
33430
33431 2008-03-01  Eric Blake  <ebb9@byu.net>
33432
33433         Fix bugs in last patch.
33434         * lib/memchr2.c (memchr2): Fix typo.
33435         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33436         extension.
33437         Reported by Bruce Korb.
33438
33439         New module 'memchr2'.
33440         * modules/memchr2: New file.
33441         * modules/memchr2-tests: Likewise.
33442         * lib/memchr2.h: Likewise.
33443         * lib/memchr2.c: Likewise, based on memchr.c.
33444         * tests/test-memchr2.c: New test.
33445         * MODULES.html.sh (String handling): Add memchr2.
33446
33447 2008-02-29  Bruno Haible  <bruno@clisp.org>
33448
33449         * modules/freadseek-tests: New file.
33450         * tests/test-freadseek.sh: New file.
33451         * tests/test-freadseek.c: New file.
33452
33453         New module 'freadseek'.
33454         * modules/freadseek: New file.
33455         * lib/freadseek.h: New file.
33456         * lib/freadseek.c: New file.
33457         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33458
33459 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33460
33461         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33462         wydawca.
33463
33464         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33465         program_invocation_name and program_invocation_short_name are
33466         present.
33467
33468 2008-02-28  Bruno Haible  <bruno@clisp.org>
33469
33470         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33471         * tests/test-freadptr.sh: Also test non-seekable stdin.
33472
33473 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33474
33475         * build-aux/bootstrap (source_base, m4_base)
33476         (doc_base, tests_base): New variables.
33477         (gnulib_tool_options): Do not hardcode base directories, use
33478         the above variables instead.
33479
33480 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33481
33482         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33483
33484 2008-02-28  Bruno Haible  <bruno@clisp.org>
33485
33486         * modules/freadptr-tests: New file.
33487         * tests/test-freadptr.sh: New file.
33488         * tests/test-freadptr.c: New file.
33489
33490         New module 'freadptr'.
33491         * modules/freadptr: New file.
33492         * lib/freadptr.h: New file.
33493         * lib/freadptr.c: New file.
33494         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33495
33496 2008-02-26  Karl Berry  <karl@freefriends.org>
33497
33498         Sync from Libtool:
33499         * libltdl/argz.c (argz_add, argz_count): New functions.
33500         * libltdl/argz.in.h: Declare them.
33501         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33502
33503 2008-02-22  Bruno Haible  <bruno@clisp.org>
33504
33505         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33506         is a pointer type.  Needed for HP-UX 10.
33507         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33508         * doc/posix-functions/gmtime_r.texi: Likewise.
33509         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33510
33511 2008-02-24  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/environ-tests: New file.
33514         * tests/test-environ.c: New file.
33515
33516         New module 'environ'.
33517         * modules/environ: New file.
33518         * lib/unistd.in.h (environ): New declaration.
33519         * m4/environ.m4: New file.
33520         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33521         after use.
33522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33523         HAVE_DECL_ENVIRON.
33524         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33525         HAVE_DECL_ENVIRON.
33526         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33527         wrong claim that 'environ' is missing on some systems.
33528         * modules/execute (Depends-on): Add environ.
33529         * lib/execute.c (environ): Remove fallback declaration.
33530         * modules/pipe (Depends-on): Add environ.
33531         * lib/pipe.c (environ): Remove fallback declaration.
33532         * modules/setenv (Depends-on): Add environ.
33533         * lib/setenv.c (environ): Remove fallback declaration.
33534         * modules/unsetenv (Depends-on): Add environ.
33535         * lib/unsetenv.c (environ): Remove fallback declaration.
33536         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33537         m4/environ.m4.
33538         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33539         (gl_PREREQ_UNSETENV): Likewise.
33540
33541 2008-02-24  Bruno Haible  <bruno@clisp.org>
33542
33543         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33544
33545 2008-02-20  Bob Proulx  <bob@proulx.com>
33546
33547         Enable use of older two part flavor 'git describe'.
33548         * build-aux/git-version-gen: If using the older two part flavor of
33549         git version then recreate the third part now present in the
33550         newer three part flavor of git describe.
33551
33552 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33553
33554         * lib/fts.c (fts_build): Typo correction to comment.
33555
33556 2008-02-17  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33559         generating no-op conflicts.
33560
33561 2008-02-17  Bruno Haible  <bruno@clisp.org>
33562
33563         Speed up by 10%.
33564         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33565         result_entries, rather than an index-based loop.
33566
33567 2008-02-17  Bruno Haible  <bruno@clisp.org>
33568
33569         Speed up by 25%.
33570         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33571         'hashcode_cached'.
33572         (entry_create): New function.
33573         (entry_hashcode): Use the cached hashcode if possible.
33574         (read_changelog_file, try_split_merged_entry): Use entry_create.
33575
33576 2008-02-17  Bruno Haible  <bruno@clisp.org>
33577
33578         Speed up from O(n^2) to O(n) for long ChangeLog files.
33579         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33580         (read_changelog_file): Change implementation of entries_reversed list
33581         to rbtreehash.
33582         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33583
33584 2008-02-17  Bruno Haible  <bruno@clisp.org>
33585
33586         New option --split-merged-entry.
33587         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33588         (find_paragraph_end, try_split_merged_entry): New functions.
33589         (long_options): Add option --split-merged-entry.
33590         (usage): Document option --split-merged-entry.
33591         (main): Implement option --split-merged-entry.
33592         Reported by Eric Blake.
33593
33594 2008-02-17  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/git-merge-changelog.c: Include c-strstr.h.
33597         (main): Support the "git pull --rebase" situation.
33598         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33599         Reported by Eric Blake.
33600
33601 2008-02-16  Eric Blake  <ebb9@byu.net>
33602
33603         Avoid doubling \ in common case of "c-maybe" quoting style.
33604         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33605         eliding outer quotes.
33606         * lib/quotearg.h: Document this.
33607         * tests/test-quotearg.c (result_strings, inputs, results_g)
33608         (flag_results, locale_results): Test it by adding a new string to
33609         each test group.
33610         (compare_strings): Test new string.
33611
33612 2008-02-13  Eric Blake  <ebb9@byu.net>
33613
33614         Avoid trigraph quoting in default output.
33615         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33616         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33617         unless explicitly requested.
33618         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33619
33620 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33621
33622         Don't rely on signed integer overflowing to negative value.
33623         * lib/getugroups.c (getugroups): Include <limits.h>.
33624         Instead, compare against INT_MAX, and increment only if the test passes.
33625
33626 2008-02-13  Jim Meyering  <meyering@redhat.com>
33627         and Eric Blake  <ebb9@byu.net>
33628
33629         Avoid shadowing warning and compile errors on Linux.
33630         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33631         forwarding macros on Linux.
33632         (dcgettext): Define a stub, for Linux.
33633         (results_g, main): Avoid warnings.
33634
33635 2008-02-12  Eric Blake  <ebb9@byu.net>
33636
33637         Silence warning in last patch.
33638         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33639
33640         Quotearg part 4: add tests, fix c-maybe colon quoting.
33641         * lib/quotearg.h: Improve documentation.
33642         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33643         escapes when adding outer quotes.  When quoting trigraphs, use
33644         valid C notation.  When quoting NUL, omit extra characters if next
33645         character is not digit.  Alter prototype.
33646         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33647         callers.
33648         * modules/quotearg-tests: New module.
33649         * tests/test-quotearg.c: New test.
33650
33651 2008-02-07  Eric Blake  <ebb9@byu.net>
33652
33653         Quotearg part 3: add flag to control outer quote elision.
33654         * lib/quotearg.h (c_maybe_quoting_style): New style.
33655         (enum quoting_flags): Better documentation of flags.
33656         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33657         c-maybe style.
33658         (quotearg_buffer_restyled): Handle new flag to elide outer
33659         quotes.
33660
33661         Quotearg part 2: add flag that can control NUL elision.
33662         * lib/quotearg.h (set_quoting_flags): New prototype.
33663         * lib/quotearg.c (struct quoting_options): Add flag field.
33664         (set_quoting_flags): New function.
33665         (quotearg_buffer_restyled): Add flags parameter.
33666         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33667         (quotearg_n_options): Set the flag, since length cannot be
33668         returned.
33669         (quoting_options_from_style): Default flags correctly.
33670
33671         Quotearg part 1: more wrappers, restore quotearg_char state.
33672         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33673         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33674         (quotearg_colon_mem): New wrappers.
33675         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33676         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33677         functions.
33678         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33679         (quotearg_colon_mem): New functions.
33680
33681 2008-02-11  Bruno Haible  <bruno@clisp.org>
33682
33683         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33684         library in the current directory: it does not work with parallel make.
33685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33686
33687 2008-02-11  Bruno Haible  <bruno@clisp.org>
33688
33689         * .gitattributes: New file.
33690
33691 2008-02-11  Jim Meyering  <meyering@redhat.com>
33692
33693         useless-if-before-free: Fix reversed exit values.
33694         * build-aux/useless-if-before-free: Use correct values
33695         for EXIT_MATCH and EXIT_NO_MATCH.
33696
33697         * build-aux/useless-if-before-free: Close stdout carefully.
33698
33699 2008-02-10  Bruno Haible  <bruno@clisp.org>
33700
33701         New module 'git-merge-changelog'.
33702         * modules/git-merge-changelog: New file.
33703         * lib/git-merge-changelog.c: New file.
33704
33705 2008-02-10  Jim Meyering  <meyering@redhat.com>
33706
33707         useless-if-before-free: New option: --list (-l).
33708
33709         useless-if-before-free: Don't exit immediately upon open failure.
33710         * build-aux/useless-if-before-free: Exit 2 for errors.
33711         Upon failure to open a file, don't exit immediately.
33712         Rather, just warn and continue with any remaining files.
33713
33714 2008-02-10  Bruno Haible  <bruno@clisp.org>
33715
33716         New abstract list operation 'node_set_value'.
33717         * lib/gl_list.h (gl_list_node_set_value): New function.
33718         (struct gl_list_implementation): New field node_set_value.
33719         * lib/gl_list.c (gl_list_node_set_value): New function.
33720         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33721         (gl_array_list_implementation): Update.
33722         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33723         (gl_carray_list_implementation): Update.
33724         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33725         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33726         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33727         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33728         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33729         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33730         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33731         Update.
33732         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33733         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33734         (gl_sublist_list_implementation): Update.
33735
33736 2008-02-10  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33739         Needed when ELEMENT is #defined to 'some_type *'.
33740
33741 2008-02-10  Jim Meyering  <meyering@redhat.com>
33742
33743         New script and module: useless-if-before-free
33744         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33745         * build-aux/useless-if-before-free: New file.
33746         * modules/useless-if-before-free: New file.
33747
33748         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33749
33750         xstrtol_error: Fix typo.
33751         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33752         s/exit_failure/exit_status/.
33753
33754 2008-02-09  Jim Meyering  <meyering@redhat.com>
33755
33756         New script and module: gitlog-to-changelog
33757         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33758         * modules/gitlog-to-changelog: New file.
33759         * build-aux/gitlog-to-changelog: New file.
33760
33761 2008-02-08  Jim Meyering  <meyering@redhat.com>
33762
33763         Avoid two "parameter unused" warnings.
33764         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33765         Mark "st" as used.
33766
33767         Use "git COMMAND", not "git-COMMAND".
33768         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33769         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33770         * build-aux/git-version-gen: Use "git status", not "git-status".
33771
33772 2008-02-07  Bruno Haible  <bruno@clisp.org>
33773
33774         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33775         Avoids a crash on Windows Vista.
33776         Reported by Adam Strzelecki <ono@java.pl> via
33777         Simon Josefsson <simon@josefsson.org>.
33778
33779 2008-02-06  Bruno Haible  <bruno@clisp.org>
33780
33781         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33782         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33783         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33785         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33786         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33787         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33788         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33790         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33792         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33796         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33797         left-adjust flag.
33798         * tests/test-snprintf-posix.h (test_function): Likewise.
33799         * tests/test-sprintf-posix.h (test_function): Likewise.
33800         * tests/test-vasprintf-posix.c (test_function): Likewise.
33801         * doc/posix-functions/fprintf.texi: Update.
33802         * doc/posix-functions/printf.texi: Update.
33803         * doc/posix-functions/snprintf.texi: Update.
33804         * doc/posix-functions/sprintf.texi: Update.
33805         * doc/posix-functions/vfprintf.texi: Update.
33806         * doc/posix-functions/vprintf.texi: Update.
33807         * doc/posix-functions/vsnprintf.texi: Update.
33808         * doc/posix-functions/vsprintf.texi: Update.
33809         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33810
33811 2008-02-06  Bruno Haible  <bruno@clisp.org>
33812
33813         Fix bug introduced on 2008-01-26.
33814         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33815
33816 2008-02-06  Bruno Haible  <bruno@clisp.org>
33817
33818         Fix bug introduced on 2007-06-10.
33819         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33820         !NEED_PRINTF_FLAG_ZERO.
33821
33822 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33823
33824         getloadavg: use libperfstat on AIX5
33825         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33826
33827 2008-02-03  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/diffseq.h: Add comments about required #includes.
33830         Reported by Michael Biggs <gnulib@doubleplum.net>.
33831
33832 2008-02-01  Bruno Haible  <bruno@clisp.org>
33833
33834         * users.txt: Add gnuit.
33835
33836 2008-01-31  Bruno Haible  <bruno@clisp.org>
33837
33838         * lib/md4.c (set_uint32): Mark as inline.
33839         * lib/md5.c (set_uint32): Likewise.
33840         * lib/sha1.c (set_uint32): Likewise.
33841         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33842         * m4/md5.m4 (gl_MD5): Likewise.
33843         * m4/sha1.m4 (gl_SHA1): Likewise.
33844
33845 2008-01-31  Jim Meyering  <meyering@redhat.com>
33846
33847         Use "sizeof VAR", rather than a literal "4".
33848         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33849         * lib/md4.c (md4_read_ctx): Likewise.
33850         * lib/sha1.c (sha1_read_ctx): Likewise.
33851
33852 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33853
33854         * tests/test-sha1.c: New file, based on test-md5.c.
33855
33856         * modules/crypto/sha1-tests: New file.
33857
33858 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33859
33860         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33861
33862 2008-01-31  Jim Meyering  <meyering@redhat.com>
33863
33864         Prefer "sizeof v" over the equivalent "4".
33865         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33866         * lib/md5.c (set_uint32): Likewise.
33867         * lib/sha1.c (set_uint32): Likewise.
33868
33869 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33870
33871         * lib/sha1.c (set_uint32): Mark function as static.
33872
33873 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33874
33875         md2: clarify comments to say that alignment is not required.
33876         * lib/md2.h: Remove warning about alignment in comment.
33877         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33878         never been required.
33879
33880 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33881
33882         md4: adapt alignment constraint fix from sha1.
33883         * lib/md4.c (set_uint32): New function, from sha1.c
33884         (md4_read_ctx): Use it.
33885         (md4_finish_ctx): Doc fix.
33886         * lib/md4.h: Doc fix.
33887
33888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33889
33890         md5: adapt alignment constraint fix from sha1.
33891         * lib/md5.c (set_uint32): New function, from sha1.c
33892         (md5_read_ctx): Use it.
33893         (md5_finish_ctx): Doc fix.
33894         * lib/md5.h: Doc fix.
33895
33896 2008-01-30  Peter Palfrader  <weasel@debian.org>
33897
33898         sha1: remove the result buffer alignment constraint
33899         * lib/sha1.c (set_uint32): New function.
33900         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33901         constraint.
33902         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33903         * lib/sha1.h: Likewise.
33904
33905 2008-01-30  Andreas Schwab  <schwab@suse.de>
33906             Bruno Haible  <bruno@clisp.org>
33907
33908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33909         correct definition of LDBL_MIN_EXP.
33910
33911 2008-01-30  Karl Berry  <karl@gnu.org>
33912
33913         * config/srclist-update: try to preserve x bit on updates.
33914         * config/srclistvars.sh: update for karl.
33915
33916 2008-01-29  Jim Meyering  <meyering@redhat.com>
33917
33918         vasnprintf.c: Avoid warning about unused label
33919         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33920         "overflow" label definition and associated code with the
33921         same cpp condition that guards the sole use of that label.
33922
33923 2008-01-26  Bruno Haible  <bruno@clisp.org>
33924
33925         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33926         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33927         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33928         * lib/isnanl-nolibm.h (isnanl): Likewise.
33929         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33930
33931 2008-01-26  Bruno Haible  <bruno@clisp.org>
33932
33933         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33934         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33935
33936 2008-01-26  Bruno Haible  <bruno@clisp.org>
33937
33938         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33939         GCC >= 4.0 built-in.
33940         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33941
33942 2008-01-26  Bruno Haible  <bruno@clisp.org>
33943
33944         Rename isnan, applicable to 'double' only, to isnand.
33945         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33946         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33947         (configure.ac): Update.
33948         (Include): Replace "isnan.h" with "isnand.h".
33949         * m4/isnand.m4: Renamed from m4/isnan.m4.
33950         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33951         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33952         instead of isnan.c.
33953         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33954         instead of HAVE_ISNAN_IN_LIBC.
33955         (isnand): Renamed from isnan.
33956         * lib/isnand.c: New file.
33957         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33958         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33959         (Makefile.am): Update.
33960         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33961         Include isnand.h instead of isnan.h.
33962         (main): Test isnand instead of isnan.
33963         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33964         isnan-nolibm.
33965         * modules/frexp (Depends-on): Likewise.
33966         * modules/frexp-tests (Depends-on): Likewise.
33967         * modules/frexp-nolibm (Depends-on): Likewise.
33968         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33969         * modules/isfinite (Depends-on): Likewise.
33970         * modules/round-tests (Depends-on): Likewise.
33971         * modules/signbit (Depends-on): Likewise.
33972         * modules/signbit-tests (Depends-on): Likewise.
33973         * modules/snprintf-posix (Depends-on): Likewise.
33974         * modules/sprintf-posix (Depends-on): Likewise.
33975         * modules/trunc-tests (Depends-on): Likewise.
33976         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33977         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33978         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33979         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33980         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33981         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33982         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33983         * modules/vasnprintf-posix (Depends-on): Likewise.
33984         * modules/vasprintf-posix (Depends-on): Likewise.
33985         * modules/vfprintf-posix (Depends-on): Likewise.
33986         * modules/vsnprintf-posix (Depends-on): Likewise.
33987         * modules/vsprintf-posix (Depends-on): Likewise.
33988         * lib/frexp.c: Include isnand.h instead of isnan.h.
33989         (ISNAN): Set to isnand instead of isnan.
33990         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33991         (gl_isfinited): Use isnand instead of isnan.
33992         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33993         (gl_signbitd): Use isnand instead of isnan.
33994         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33995         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33996         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33997         (main): Use isnand instead of isnan.
33998         * tests/test-round1.c: Include isnand.h.
33999         (main): Use isnand instead of isnan.
34000         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34001         (ISNAN): Set to isnand instead of isnan.
34002         * tests/test-trunc1.c: Include isnand.h.
34003         (main): Use isnand instead of isnan.
34004         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34005         (equal): Use isnand instead of isnan.
34006         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34007         isnand-nolibm.
34008         * NEWS: Mention the change.
34009
34010 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34011             Bruno Haible  <bruno@clisp.org>
34012
34013         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34014         the GCC builtins for signbits are present and set
34015         REPLACE_SIGNBIT_USING_GCC if so.
34016         * lib/math.in.h (signbit): Define using GCC builtins if
34017         REPLACE_SIGNBIT_USING_GCC is set.
34018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34019         REPLACE_SIGNBIT_USING_GCC.
34020         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34021
34022 2008-01-25  Jim Meyering  <meyering@redhat.com>
34023
34024         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34025         * lib/poll.c: Include <config.h>, not "config.h".
34026         * tests/test-getaddrinfo.c: Likewise.
34027
34028 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34029
34030         * modules/sockets-tests: New file.
34031
34032 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34033
34034         * modules/sockets: New module, can be used to call WSA_Startup and
34035         WSA_Cleanup when needed.
34036
34037         * lib/sockets.h, lib/sockets.c: New files.
34038
34039         * m4/sockets.m4: New file.
34040
34041         * tests/test-sockets.c: New file.
34042
34043 2008-01-19  Bruno Haible  <bruno@clisp.org>
34044
34045         * doc/posix-headers: Renamed from doc/headers.
34046         * doc/posix-functions: Renamed from doc/functions.
34047         * doc/gnulib.texi: Update.
34048
34049 2008-01-19  Bruno Haible  <bruno@clisp.org>
34050
34051         * doc/glibc-functions/strcasestr.texi: Include contents of
34052         doc/functions/strcasestr.texi, fixing the list of platforms.
34053         * doc/functions/strcasestr.texi: Remove file.
34054
34055 2008-01-19  Bruno Haible  <bruno@clisp.org>
34056
34057         * doc/glibc-functions/memmem.texi: Include contents of
34058         doc/functions/memmem.texi.
34059         * doc/functions/memmem.texi: Remove file.
34060
34061 2008-01-18  Bruno Haible  <bruno@clisp.org>
34062
34063         * doc/glibc-functions/*.texi: New files.
34064         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34065         to use the new files.
34066
34067 2008-01-17  Bruno Haible  <bruno@clisp.org>
34068
34069         * tests/test-gethostname.c (main): Fix printf statement.
34070
34071 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34072
34073         * modules/gethostname-tests: New file.
34074
34075         * tests/test-gethostname.c: New file.
34076
34077 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34078
34079         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34080         used by the UNAME case.  Reported by Bruno Haible
34081         <bruno@clisp.org>.
34082
34083 2008-01-17  Eric Blake  <ebb9@byu.net>
34084
34085         Convert c-strcasestr to be more efficient.
34086         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34087         (Depends-on): Add c-strcase, remove malloca, strnlen.
34088         * tests/test-c-strcasestr.c (main): Enhance test.
34089         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34090
34091 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34092
34093         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34094         Use it in creating po/Makevars.
34095
34096 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34097
34098         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34099         Applications that requires it should initialize libgcrypt
34100         manually.
34101
34102 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34103
34104         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34105
34106 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34107
34108         Fix problem with getdate on mingw32 reported by Simon Josefsson
34109         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34110         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34111         tzname", when deciding whether to declare tzname.
34112         * lib/strftime.c (tzname): Likewise.
34113
34114 2008-01-15  Bruno Haible  <bruno@clisp.org>
34115
34116         Work around a MacOS X 10.5 bug in frexpl().
34117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34118         * doc/functions/frexpl.texi: Document the bug.
34119         Reported by Elias Pipping <pipping@gentoo.org>.
34120
34121 2008-01-14  Eric Blake  <ebb9@byu.net>
34122
34123         Touch up previous patch.
34124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34125         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34126
34127         Convert strcasestr module to use Two-Way algorithm.
34128         * modules/strcasestr-simple: New module, based on the old
34129         strcasestr, but with Two-Way rather than KMP.
34130         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34131         * lib/string.in.h (rpl_strcasestr): Declare.
34132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34133         performance.
34134         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34135         * modules/string (Makefile.am): Support strcasestr.
34136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34137         * modules/strcasestr-tests (Depends-on): Check for alarm.
34138         * tests/test-strcasestr.c: Augment test.
34139         * lib/str-two-way.h: Clean up stray macro.
34140         * NEWS: Document new module.
34141         * MODULES.html.sh (string handling): Likewise.
34142         * doc/functions/strcasestr.texi: New file.
34143         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34144         here, since it is not a POSIX function.
34145
34146 2008-01-14  Colin Watson  <cjwatson@debian.org>
34147             Bruno Haible  <bruno@clisp.org>
34148
34149         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34150         works fine; if not, set REPLACE_STRSIGNAL.
34151         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34153         REPLACE_STRSIGNAL.
34154         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34155         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34156         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34157
34158 2008-01-14  Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/strsignal (Include): Change to <string.h>.
34161
34162 2008-01-14  Colin Watson  <cjwatson@debian.org>
34163
34164         * modules/argp (Notice): Add a notice recommending to change
34165         XGETTEXT_OPTIONS.
34166         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34167
34168 2008-01-13  Colin Watson  <cjwatson@debian.org>
34169
34170         * modules/strsignal-tests: New file.
34171         * tests/test-strsignal.c: New file.
34172
34173         * lib/strsignal.c: New file, from glibc with modifications.
34174         * lib/siglist.h: New file, from glibc with modifications.
34175         * lib/string.in.h (strsignal): New declaration.
34176         * m4/strsignal.m4: New file.
34177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34178         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34179         * modules/strsignal: New file.
34180         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34181         HAVE_DECL_STRSIGNAL.
34182
34183 2008-01-13  Bruno Haible  <bruno@clisp.org>
34184
34185         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34186         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34187         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34188         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34189
34190 2008-01-13  Bruno Haible  <bruno@clisp.org>
34191
34192         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34193         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34194         * lib/argp.h (__attribute__): Likewise.
34195         * lib/c-stack.c (__attribute__): Likewise.
34196         * lib/error.h (__attribute__): Likewise.
34197         * lib/fts.c (__attribute__): Likewise.
34198         * lib/openat.h (__attribute__): Likewise.
34199         * lib/stdio.in.h (__attribute__): Likewise.
34200         * lib/string.in.h (__attribute__): Likewise.
34201         * lib/utimens.c (__attribute__): Likewise.
34202         * lib/vasnprintf.h (__attribute__): Likewise.
34203         * lib/xalloc.h (__attribute__): Likewise.
34204         * lib/xprintf.h (__attribute__): Likewise.
34205         * lib/xstrtol.h (__attribute__): Likewise.
34206         * lib/xvasprintf.h (__attribute__): Likewise.
34207
34208 2008-01-12  Bruno Haible  <bruno@clisp.org>
34209
34210         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34211         * doc/glibc-headers/a.out.texi: New file.
34212         * doc/glibc-headers/aliases.texi: New file.
34213         * doc/glibc-headers/alloca.texi: New file.
34214         * doc/glibc-headers/ar.texi: New file.
34215         * doc/glibc-headers/argp.texi: New file.
34216         * doc/glibc-headers/argz.texi: New file.
34217         * doc/glibc-headers/byteswap.texi: New file.
34218         * doc/glibc-headers/crypt.texi: New file.
34219         * doc/glibc-headers/endian.texi: New file.
34220         * doc/glibc-headers/envz.texi: New file.
34221         * doc/glibc-headers/err.texi: New file.
34222         * doc/glibc-headers/error.texi: New file.
34223         * doc/glibc-headers/execinfo.texi: New file.
34224         * doc/glibc-headers/fpu_control.texi: New file.
34225         * doc/glibc-headers/fstab.texi: New file.
34226         * doc/glibc-headers/fts.texi: New file.
34227         * doc/glibc-headers/getopt.texi: New file.
34228         * doc/glibc-headers/ieee754.texi: New file.
34229         * doc/glibc-headers/ifaddrs.texi: New file.
34230         * doc/glibc-headers/libintl.texi: New file.
34231         * doc/glibc-headers/mcheck.texi: New file.
34232         * doc/glibc-headers/mntent.texi: New file.
34233         * doc/glibc-headers/obstack.texi: New file.
34234         * doc/glibc-headers/paths.texi: New file.
34235         * doc/glibc-headers/printf.texi: New file.
34236         * doc/glibc-headers/pty.texi: New file.
34237         * doc/glibc-headers/resolv.texi: New file.
34238         * doc/glibc-headers/shadow.texi: New file.
34239         * doc/glibc-headers/sysexits.texi: New file.
34240         * doc/glibc-headers/ttyent.texi: New file.
34241
34242 2008-01-12  Jim Meyering  <meyering@redhat.com>
34243
34244         announce-gen: emit Gnulib's git-based version string.
34245         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34246         New option --gnulib-version=V, where V is expected to be
34247         the output of running git describe in the gnulib directory.
34248         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34249         not useful, and plan to stop publishing an xdelta file with each
34250         coreutils release.
34251
34252         * build-aux/announce-gen: Also check for lzma-compressed files.
34253
34254 2008-01-11  Bruno Haible  <bruno@clisp.org>
34255
34256         * tests/test-memmem.c (main): Increase maximum allowed time.
34257         * tests/test-strstr.c (main): Likewise.
34258
34259 2008-01-11  Bruno Haible  <bruno@clisp.org>
34260
34261         * doc/functions/memmem.texi: Add more precisions about platforms.
34262         * doc/functions/strstr.texi: Likewise.
34263
34264 2008-01-10  Eric Blake  <ebb9@byu.net>
34265
34266         * m4/strstr.m4: Delete cruft from copy-n-paste.
34267         Reported by Bruno Haible.
34268
34269 2008-01-10  Bruno Haible  <bruno@clisp.org>
34270
34271         Make c-strstr rely on strstr.
34272         * lib/c-strstr.c: Don't include str-kmp.h.
34273         (c_strstr): Define in terms of strstr.
34274         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34275         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34276
34277 2008-01-10  Bruno Haible  <bruno@clisp.org>
34278
34279         * doc/gnulib.texi (String Functions in C Locale): New section.
34280         * doc/c-ctype.texi: New file.
34281         * doc/c-strcase.texi: New file.
34282         * doc/c-strcaseeq.texi: New file.
34283         * doc/c-strcasestr.texi: New file.
34284         * doc/c-strstr.texi: New file.
34285         * doc/c-strtod.texi: New file.
34286         * doc/c-strtold.texi: New file.
34287
34288 2008-01-10  Eric Blake  <ebb9@byu.net>
34289
34290         * lib/relocatable.h: Fix a comment.
34291
34292 2008-01-10  Eric Blake  <ebb9@byu.net>
34293
34294         Share two-way algorithm.
34295         * lib/str-two-way.h: New file, merged from...
34296         * lib/memmem.c: ...here...
34297         * lib/strstr.c: ...and here.
34298         * modules/memmem (Files): Use it.
34299         * modules/strstr (Files): Likewise.
34300
34301         Avoid quadratic strstr implementations.
34302         * lib/strstr.c: New file.
34303         * m4/strstr.m4: Likewise.
34304         * modules/strstr: Likewise.
34305         * modules/strstr-tests: Likewise.
34306         * tests/test-strstr.c: Likewise.
34307         * lib/string.in.h (rpl_strstr): Declare.
34308         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34310         * modules/string (Makefile.am): Likewise.
34311         * MODULES.html.sh (string handling): Mention new module.
34312         * doc/functions/strstr.texi (strstr): Document the bug.
34313
34314 2008-01-10  Bruno Haible  <bruno@clisp.org>
34315
34316         * lib/relocatable.h (relocate): State whether result is freshly
34317         allocated or not.
34318         * lib/relocatable.c (relocate): Return a freshly allocated string
34319         instead of a pointer to a privately held string.
34320         Reported by Sylvain Beucler <beuc@gnu.org>.
34321
34322 2008-01-10  Colin Watson  <cjwatson@debian.org>
34323
34324         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34325         s/S_ISNLK/S_ISLNK/.
34326
34327 2008-01-09  Bruno Haible  <bruno@clisp.org>
34328
34329         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34330         and other files.
34331         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34332         if it's only a guess.
34333         * modules/memmem: Simplify by depending on memmem-simple.
34334
34335 2008-01-09  Bruno Haible  <bruno@clisp.org>
34336
34337         Work around OpenBSD 4.0 tdelete() bug.
34338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34339         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34340         macros and don't redefine the enum values.
34341         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34342         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34343         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34344
34345 2008-01-09  Bruno Haible  <bruno@clisp.org>
34346
34347         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34348         (main): Don't perform the tests if setlocale did not install a UTF-8
34349         locale. Needed on OpenBSD 4.0.
34350         * modules/wcwidth-tests (Depends-on): Add localcharset.
34351
34352 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34353
34354         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34355         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34356         * NEWS: announce this.
34357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34358
34359 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34360         and Eric Blake  <ebb9@byu.net>
34361
34362         Add memmem-simple module.
34363         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34364         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34365         * modules/memmem-simple: New file.
34366         * modules/memmem (Description): Tweak.
34367         * MODULES.html.sh (string handling): Mention new module.
34368         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34369         addressed by memmem-simple.
34370         * NEWS: Document the difference.
34371
34372 2008-01-09  Eric Blake  <ebb9@byu.net>
34373
34374         Give gcc some memmem optimization hints.
34375         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34376         (strcasestr): Declare as pure.
34377         * modules/memmem (Maintainer): Claim my implementation.
34378
34379 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34380
34381         Support AIX 6.1 and higher.
34382         * build-aux/config.libpath: Likewise.
34383         * build-aux/config.rpath: Likewise.
34384
34385 2008-01-08  Jim Meyering  <meyering@redhat.com>
34386             Bruno Haible  <bruno@clisp.org>
34387
34388         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34389         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34390         Reported by Peter Fales in
34391         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34392
34393 2008-01-08  Bruno Haible  <bruno@clisp.org>
34394
34395         * modules/unictype/category-of (Depends-on): Add
34396         unictype/category-none.
34397         * modules/unictype/category-and-tests (Depends-on): Add
34398         unictype/category-{L,N,Lu,Nd}.
34399         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34400         * modules/unictype/category-or-tests (Depends-on): Add
34401         unictype/category-{L,N}.
34402         * modules/unictype/category-name-tests (Depends-on): Add
34403         unictype/category-{Z,Nl}.
34404         Reported by Simon Josefsson.
34405
34406 2008-01-08  Bruno Haible  <bruno@clisp.org>
34407
34408         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34409         convention better.
34410         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34411         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34412         Reported by Peter Miller <millerp@canb.auug.org.au>.
34413
34414 2008-01-08  Eric Blake  <ebb9@byu.net>
34415
34416         Rewrite memmem to guarantee linear complexity without malloc.
34417         * lib/memmem.c (memmem): Use Two-Way rather than
34418         Knuth-Morris-Pratt, to allow O(1) space usage.
34419         (critical_factorization, two_way_short_needle)
34420         (two_way_long_needle): New functions.
34421         (knuth_morris_pratt): Delete.
34422         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34423         Add stdint.
34424         * tests/test-memmem.c (main): Add tests for periodic needle and
34425         sublinear performance.
34426         * doc/functions/memmem.texi (memmem): Document other deficiencies
34427         in cygwin and older glibc.
34428
34429 2008-01-08  Bruno Haible  <bruno@clisp.org>
34430
34431         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34432         augmentation.
34433
34434 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34435
34436         Add a configure time option: --disable-acl.
34437         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34438         AC_ARG_ENABLE(acl).
34439
34440 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34441
34442         * tests/test-localename.c: Don't include obsolete "setenv.h".
34443
34444         * modules/localename-tests (Depends-on): Need unsetenv.
34445
34446 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34447
34448         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34449
34450 2008-01-06  Colin Watson  <cjwatson@debian.org>
34451
34452         * users.txt: Add man-db.
34453
34454 2008-01-07  Bruno Haible  <bruno@clisp.org>
34455
34456         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34457         previous section name.
34458
34459 2008-01-07  Bruno Haible  <bruno@clisp.org>
34460
34461         * lib/progname.c (set_program_name): Don't strip off a leading
34462         "lt-" prefix outside a .libs directory.
34463         Suggested by Paul Eggert.
34464
34465 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34466             Bruno Haible  <bruno@clisp.org>
34467
34468         Improve memory cleanup in 'relocatable' module.
34469         * lib/relocatable.h (compute_curr_prefix): Change return type to
34470         'char *'.
34471         * lib/relocatable.c (compute_curr_prefix): Change return type to
34472         'char *'. Free curr_installdir after use.
34473         (relocate): Free curr_prefix_better after use.
34474         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34475
34476 2008-01-01  Bruno Haible  <bruno@clisp.org>
34477
34478         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34479         failure on older glibc systems.
34480         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34481
34482 2008-01-05  Eric Blake  <ebb9@byu.net>
34483
34484         Avoid quadratic system memmem.
34485         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34486         Reported by Ralf Wildenhues.
34487
34488         Fix memmem test for mingw.
34489         * modules/memmem-tests (configure.ac): Check for alarm.
34490         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34491         it.
34492         * doc/functions/memmem.texi: New file.
34493         * doc/gnulib.texi (Function Substitutes): Add memmem.
34494         Reported by Bruno Haible.
34495
34496 2008-01-04  Bruno Haible  <bruno@clisp.org>
34497
34498         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34499         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34500         gl_HEADER_STRING_H_DEFAULTS.
34501
34502 2008-01-04  Eric Blake  <ebb9@byu.net>
34503
34504         Shorten duration of memmem test.
34505         * tests/test-memmem.c (main): Use alarm to declare failure if test
34506         is taking too long.
34507         Reported by Ralf Wildenhues.
34508
34509 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34510
34511         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34512         string, needed by strerror.
34513
34514 2008-01-03  Colin Watson  <cjwatson@debian.org>
34515             Bruno Haible  <bruno@clisp.org>
34516
34517         * doc/gnulib-tool.texi (Localization): New section.
34518
34519 2008-01-02  Bruno Haible  <bruno@clisp.org>
34520
34521         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34522         variables to 'unsigned char *' type.
34523         Reported by Paul Eggert.
34524
34525 2008-01-02  Jim Meyering  <jim@meyering.net>
34526
34527         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34528
34529 2007-12-31  Jim Meyering  <jim@meyering.net>
34530
34531         Avoid use of private FTS type name.
34532         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34533
34534 2007-12-30  Karl Berry  <karl@gnu.org>
34535
34536         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34537         work around defect in Texinfo and/or the standalone Info browser.
34538
34539 2007-12-30  Bruno Haible  <bruno@clisp.org>
34540
34541         Unify 5 copies of the KMP code.
34542         * lib/str-kmp.h: New file.
34543         * lib/c-strcasestr.c: Include str-kmp.h.
34544         (knuth_morris_pratt): Remove function.
34545         (c_strcasestr): Update.
34546         * lib/c-strstr.c: Include str-kmp.h.
34547         (knuth_morris_pratt): Remove function.
34548         (c_strcasestr): Update.
34549         * lib/mbscasestr.c: Include str-kmp.h.
34550         (knuth_morris_pratt_unibyte): Remove function.
34551         * lib/mbsstr.c: Include str-kmp.h.
34552         (knuth_morris_pratt_unibyte): Remove function.
34553         * lib/strcasestr.c: Include str-kmp.h.
34554         (knuth_morris_pratt): Remove function.
34555         (strcasestr): Update.
34556         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34557         * modules/c-strstr (Files): Likewise.
34558         * modules/mbscasestr (Files): Likewise.
34559         * modules/mbsstr (Files): Likewise.
34560         * modules/strcasestr (Files): Likewise.
34561         Suggested by Paul Eggert.
34562
34563 2007-12-30  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34566         defined.
34567
34568 2007-12-30  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/xmalloca.h: Include xalloc.h.
34571         (xnmalloca): New macro.
34572
34573 2007-12-30  Bruno Haible  <bruno@clisp.org>
34574
34575         * lib/malloca.h (nmalloca): New macro.
34576         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34577         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34578         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34579         knuth_morris_pratt_multibyte): Likewise.
34580         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34581         knuth_morris_pratt_multibyte): Likewise.
34582         * lib/memmem.c (knuth_morris_pratt): Likewise.
34583         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34584
34585 2007-12-25  Bruno Haible  <bruno@clisp.org>
34586
34587         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34588         * lib/glob.c: Don't include openat.h.
34589         (link_exists2_p): Add back the code that deals with the
34590         !GLOB_ALTDIRFUNC case.
34591         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34592         let it do the filename concatenation.
34593         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34594         * modules/glob (Depends-on): Remove openat.
34595
34596 2007-12-31  Bruno Haible  <bruno@clisp.org>
34597
34598         * modules/dirfd (License): Change to LGPLv2+.
34599         Approved by Jim Meyering.
34600
34601 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34602
34603         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34604         when multiplying M by sizeof (size_t).
34605
34606 2007-12-10  Martin Lambers  <marlam@marlam.de>
34607
34608         Override getpagesize on mingw.
34609         * lib/getpagesize.c: New file.
34610         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34611         * modules/getpagesize (Files): Add lib/getpagesize.c.
34612         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34614         REPLACE_GETPAGESIZE.
34615         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34616
34617 2007-12-25  Bruno Haible  <bruno@clisp.org>
34618
34619         * modules/localcharset (Notice): New field.
34620         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34621         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34622
34623 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34624             Bruno Haible  <bruno@clisp.org>
34625
34626         Avoid using the syntax symbol() in formatted documentation.
34627         * MODULES.html.sh (func_module): When replacing symbol() with a
34628         hyperlink, remove the parentheses. Show an error if some remain.
34629         Recognize and render the '...' syntax.
34630         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34631         Rework. Add paragraph about GCC's inlining.
34632         * doc/alloca.texi: Likewise.
34633         * doc/error.texi: Remove parentheses from symbol reference.
34634         * doc/gnulib-intro.texi: Likewise.
34635         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34636         * modules/fnmatch (Description): Reword to say "the ... function".
34637         * modules/full-read (Description): Likewise.
34638         * modules/full-write (Description): Likewise.
34639         * modules/safe-read (Description): Likewise.
34640         * modules/safe-write (Description): Likewise.
34641         * modules/strchrnul (Description): Likewise.
34642         * modules/trim (Description): Likewise.
34643         * modules/error (Description): Remove parentheses from symbol
34644         references.
34645         * modules/verror (Description): Likewise.
34646         Reported by Karl Berry.
34647
34648 2007-12-25  Bruno Haible  <bruno@clisp.org>
34649
34650         Fixup after 2007-10-16 commit.
34651         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34652
34653 2007-12-24  Bruno Haible  <bruno@clisp.org>
34654
34655         Make --enable-relocatable work with DESTDIR.
34656         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34657         to compute installdir from destprog.
34658         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34659         also set the RELOC_DESTDIR variable.
34660         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34661
34662 2007-12-24  Bruno Haible  <bruno@clisp.org>
34663
34664         Fix link error due to xalloc_die().
34665         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34666         of xreadlink.
34667         * lib/relocwrapper.c: Update comments.
34668         * build-aux/install-reloc: Remove xreadlink.c from file list.
34669         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34670         xreadlink.c.
34671         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34672
34673 2007-12-24  Bruno Haible  <bruno@clisp.org>
34674
34675         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34676         * lib/setenv.h: Remove file.
34677         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34678         lib/setenv.h.
34679         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34680         (Depends-on): Add stdlib.
34681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34682         gl_FUNC_UNSETENV.
34683         (Include): Replace setenv.h with <stdlib.h>.
34684         * modules/unsetenv: New file.
34685         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34686         * lib/unsetenv.c: Include <stdlib.h> first.
34687         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34688         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34689         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34690         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34691         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34692         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34694         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34695         * doc/functions/unsetenv.texi: Update.
34696         * modules/xsetenv (Depends-on): Add unsetenv.
34697         * modules/getdate (Depends-on): Likewise.
34698         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34699         * lib/xsetenv.c: Don't include setenv.h.
34700         * lib/getdate.y: Likewise.
34701         * lib/relocwrapper.c: Likewise.
34702         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34703         (Depends-on): Add stdlib.
34704         * NEWS: Mention the changes.
34705         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34706
34707 2007-12-23  Bruno Haible  <bruno@clisp.org>
34708
34709         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34710         indentation.
34711
34712 2007-12-23  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/c-strcasestr.c: Add more comments.
34715         * lib/c-strstr.c: Likewise.
34716         * lib/mbscasestr.c: Likewise.
34717         * lib/mbsstr.c: Likewise.
34718         * lib/strcasestr.c: Likewise.
34719         * lib/memmem.c: Likewise.
34720
34721 2007-12-23  Bruno Haible  <bruno@clisp.org>
34722
34723         * tests/test-memmem.c: Include <string.h> first.
34724
34725 2007-12-22  Bruno Haible  <bruno@clisp.org>
34726
34727         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34728         the contents of $testsbase.
34729         Reported by Ralf Wildenhues.
34730
34731 2007-12-22  Bruno Haible  <bruno@clisp.org>
34732
34733         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34734         two variables local_ldadd_before, local_ldadd_last.
34735
34736 2007-12-20  Eric Blake  <ebb9@byu.net>
34737
34738         Work around circular library issue when cross-compiling.
34739         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34740         that progname.o does not need to pull in rpl_memcmp.
34741
34742 2007-12-19  Eric Blake  <ebb9@byu.net>
34743
34744         Fix memmem to avoid O(n^2) worst-case complexity.
34745         * lib/memmem.c (knuth_morris_pratt): New function.
34746         (memmem): Use it if first few naive iterations fail.
34747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34748         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34749         * modules/memchr (License): Likewise.
34750         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34751         malloca.
34752         * tests/test-memmem.c: Rewrite, borrowing ideas from
34753         test-mbsstr1.c; the old version wouldn't even compile!
34754         * modules/memmem-tests: New file.
34755         * lib/string.in.h (rpl_memmem): Add declaration.
34756         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34758         REPLACE_MEMMEM.
34759
34760 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34761
34762         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34763         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34764         before any system include files, and undef after them all.  This
34765         should fix a problem on VMS reported by John E. Malmberg in
34766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34767
34768 2007-12-17  Eric Blake  <ebb9@byu.net>
34769
34770         Revert addition of verify, for BSD/OS.
34771         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34772         can't handle large files, for the sake of obsolete platforms.
34773         * modules/fseeko (Depends-on): Remove verify.
34774         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34775         * doc/functions/ftello.texi (ftello): Likewise.
34776         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34777         Reported by Larry Jones.
34778
34779 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34780
34781         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34782         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34783
34784 2007-12-17  Jim Meyering  <meyering@redhat.com>
34785
34786         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34787         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34788         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34789         * modules/getcwd (Depends-on): Add openat.
34790         Reported by Petr Salinger.
34791
34792 2007-12-17  Bruno Haible  <bruno@clisp.org>
34793
34794         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34795         avoid a segmentation fault of the configure test on x86_64 systems.
34796
34797 2007-12-15  Jim Meyering  <meyering@redhat.com>
34798
34799         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34800
34801 2007-12-13  Eric Blake  <ebb9@byu.net>
34802
34803         Another fseek test.
34804         * tests/test-fseek.c (main): Also test ungetc handling.
34805         * tests/test-fseeko.c (main): Likewise.
34806         * modules/fseeko (Depends-on): Add verify.
34807         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34808         large.
34809         Reported by Larry Jones.
34810
34811         Fix fseeko on mingw.
34812         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34813         seek.
34814
34815         Beef up fseek tests.
34816         * tests/test-fseek.c (main): Also test eof handling.
34817         * tests/test-fseeko.c (main): Likewise.
34818         Reported by Larry Jones.
34819
34820 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34821
34822         Fix fseeko on BSD-based platforms.
34823         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34824         successful seek.
34825
34826 2007-12-12  Eric Blake  <ebb9@byu.net>
34827
34828         Allow circular dependency of separate libtests.a
34829         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34830         when use_libtests.
34831
34832 2007-12-11  Eric Blake  <ebb9@byu.net>
34833
34834         Fix bug with -0.0L in previous patch.
34835         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34836         * tests/test-isnan.c (main): Also test on zeroes.
34837         * tests/test-isnanf.c (main): Likewise.
34838         * tests/test-isnanl.h (main): Likewise.
34839
34840         Detect pseudo-denormals on x86 even when cross-compiling.
34841         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34842         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34843         invalid bit patterns that happen to satisfy ==.
34844
34845         Avoid link failures with separate libtests.a.
34846         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34847         last, to satisfy circular dependencies.
34848
34849 2007-12-11  Eric Blake  <ebb9@byu.net>
34850         and Bruno Haible  <bruno@clisp.org>
34851
34852         Fix OpenBSD 4.0 <float.h> handling of long double.
34853         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34854         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34855         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34856
34857 2007-12-11  Jim Meyering  <meyering@redhat.com>
34858
34859         * users.txt: Add libvirt.
34860
34861         Support versions of autoconf prior to 2.59c.
34862         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34863         if it is not already defined.
34864
34865 2007-12-09  Bruno Haible  <bruno@clisp.org>
34866
34867         Let 'gnulib-tool --import' collect sources needed for the tests in
34868         tests/ rather than in lib/.
34869         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34870         argument. If true, add rules to generate libtests.a, and put libtests.a
34871         into $(LDADD). Consider source files in subdirectories and set
34872         uses_subdirs.
34873         (func_emit_initmacro_start, func_emit_initmacro_end,
34874         func_emit_initmacro_done): Pass all arguments explicitly.
34875         (func_import): Determine two module lists main_modules,
34876         testsrelated_modules. Determine use_libtests. Determine two variables
34877         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34878         instead of just sed_transform_lib_file. Determine two variables
34879         main_files and testsrelated_files. Compute 'files' as the union of
34880         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34881         func_add_or_update. In the generated gnulib-comp.m4, collect the
34882         object files for tests/ in different variables than those for lib/.
34883         Substitute LIBTESTS_LIBDEPS.
34884         (func_create_testdir): Combine the uses_subdirs results from
34885         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34886
34887 2007-12-09  Bruno Haible  <bruno@clisp.org>
34888
34889         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34890         the build-aux directory.
34891
34892 2007-12-09  Bruno Haible  <bruno@clisp.org>
34893
34894         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34895         introduced on 2006-09-09.
34896
34897 2007-12-07  Jim Meyering  <meyering@redhat.com>
34898
34899         Let these macros work also with autoconf-2.59.
34900         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34901         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34903
34904 2007-12-06  Jim Meyering  <meyering@redhat.com>
34905
34906         Avoid a configure-time syntax error in gl_FUNC_ACL.
34907         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34908         function in each branch, before testing the cache variable.
34909
34910 2007-12-04  Eric Blake  <ebb9@byu.net>
34911
34912         Make scripts executable.
34913         * build-aux/config.guess: Add execute permissions.
34914         * build-aux/config.sub: Likewise.
34915         * build-aux/gendocs.sh: Likewise.
34916
34917         Fix frexp on mingw.
34918         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34919         cross-compiling.
34920         * doc/functions/frexp.texi (frexp): Document the bug.
34921
34922         Make cygwin fseeko check more reliable.
34923         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34924         version numbers, rather than unrelated feature check.
34925         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34926         * doc/functions/ftello.texi (ftello): Likewise.
34927         Reported by Bruno Haible.
34928
34929         * m4/strerror.m4: Bump version number.
34930
34931 2007-12-03  Bruno Haible  <bruno@clisp.org>
34932
34933         * doc/functions/mprotect.texi: Mention the mingw problem.
34934
34935 2007-12-03  Eric Blake  <ebb9@byu.net>
34936
34937         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34938         REPLACE_STRERROR is initialized before this macro.
34939
34940 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34941
34942         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34943         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34944         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34945         put -lsec in even for programs other than 'ls'.  This fixes a problem
34946         for gettext reported by Bruno Haible in
34947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34948         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34949         Add support for Solaris 10.  This isn't efficient, but should get the
34950         job done for now.
34951
34952 2007-12-03  James Youngman  <jay@gnu.org>
34953
34954         * doc/regexprops-generic.texi: change "an close-group" to "a
34955         close-group" and "illegal" to "not allowed".
34956
34957 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34958
34959         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34960         pr_byname.h. Needed for the rare case when the maintainer has done
34961         "make maintainer-clean" in the source directory and then attempts a
34962         build outside the source directory.
34963         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34964         scripts_byname.h.
34965
34966 2007-12-02  Martin Lambers <marlam@marlam.de>
34967             Bruno Haible  <bruno@clisp.org>
34968
34969         * lib/getpagesize.h: Remove file.
34970         * lib/unistd.in.h: Include declaration of getpagesize here.
34971         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34972         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34973         HAVE_SYS_PARAM_H.
34974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34975         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34976         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34977         (Depends-on): Add unistd.
34978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34979         (Include): Use <unistd.h> instead of getpagesize.h.
34980         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34981         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34982         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34983         gl_GETPAGESIZE invocation, already handled by module dependency.
34984         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34985
34986 2007-12-02  Bruno Haible  <bruno@clisp.org>
34987
34988         * modules/strings-tests: New file.
34989         * tests/test-strings.c: New file.
34990
34991         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34992         * lib/strings.in.h: New file.
34993         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34994         * m4/strings_h.m4: New file.
34995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34996         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34997         * modules/strings: New file.
34998         * modules/string (Makefile.am): Update.
34999         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35000         Reported by Karl Berry.
35001
35002 2007-12-01  Eric Blake  <ebb9@byu.net>
35003
35004         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35005         accomodate fix in cygwin 1.5.25.
35006
35007 2007-12-01  Jim Meyering  <meyering@redhat.com>
35008
35009         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35010         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35011         that would inhibit utf8-optimization of a regexp containing line-
35012         or buffer-anchors, e.g., `^', `$'.
35013
35014 2007-11-30  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35017         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35018         glthread_recursive_lock_init.
35019         * lib/lock.c (glthread_recursive_lock_init)
35020         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35022
35023 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35024
35025         New function qset_acl, like set_acl but with syscall semantics.
35026         * lib/acl.h (qset_acl): New decl.
35027         * lib/acl.c (qset_acl): New function.
35028         (set_acl): Use new function.  Use more-consistent diagnostics.
35029
35030 2007-11-28  Jim Meyering  <meyering@redhat.com>
35031
35032         * modules/physmem (License): Change from GPL to LGPLv2+.
35033
35034 2007-11-26  Bruno Haible  <bruno@clisp.org>
35035
35036         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35037         'long double' type has excess precision.
35038         Reported by Jim Meyering in
35039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35040
35041 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35042
35043         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35044         Sync from <http://gnu.org/licenses>.
35045         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35046         with license text from same location.
35047         * doc/maintain.texi, doc/standards.texi:  Sync from
35048         <http://savannah.gnu.org/projects/gnustandards>.
35049
35050 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
35051         and Jim Meyering  <meyering@redhat.com>
35052
35053         Adjust getdate' grammar to accept a slightly more regular language.
35054         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35055         Before, the former was rejected.
35056         * lib/getdate.y (digits_to_date_time): New function, factored
35057         out of ...
35058         (number): ...here.  Just call digits_to_date_time.
35059         (hybrid): New non-terminal to handle an <unsigned number,
35060         signed relative offset> sequence consistently.
35061
35062 2007-11-18  Jim Meyering  <meyering@redhat.com>
35063
35064         Pull my changes from coreutils:
35065         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35066         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35067         use of $gnulib_tool_option_extras, so that it's separated from the
35068         preceding argument.
35069
35070         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35071         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35072         parent destination directories before copying a file into place.
35073
35074 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35075
35076         bootstrap: work also with 4-argument variant of AC_INIT
35077         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35078
35079 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35080
35081         Port test-getaddrinfo to Solaris.
35082         Problem reported by Bruno Haible in
35083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35084         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35085         explanation of setting 'hints'.
35086         Don't reject an implementation merely because it returns EAI_SERVICE.
35087         (EAI_SERVICE): Define to 0 if not defined.
35088
35089 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35090
35091         The license of gnu-make and posix-shell is now "GPLed build tool".
35092         * modules/gnu-make (License): Likewise.
35093         * modules/posix-shell (License): Likewise.
35094
35095         New module posix-shell, for determining a POSIX shell
35096         or perhaps something that is close enough to a POSIX shell.
35097         * m4/posix-shell.m4: New file.
35098         * modules/posix-shell: New file.
35099
35100         * MODULES.html.sh: Mention new module.
35101
35102         New module gnu-make, for determining whether we're using GNU Make.
35103         * m4/gnu-make.m4: New file.
35104         * modules/gnu-make: New file.
35105         * MODULES.html.sh: Mention new module.
35106
35107 2007-11-14  Jim Meyering  <meyering@redhat.com>
35108
35109         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35110         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35111         use this macro to create a function _definition_.
35112         Remove useless "#undef ARGMATCH_DIE".
35113
35114 2007-11-14  Bruno Haible  <bruno@clisp.org>
35115
35116         * lib/config.charset: Update for OpenBSD 4.1.
35117         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35118
35119 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35120
35121         Document 64-bit #if problems in stdint.texi.
35122         * doc/headers/stdint.texi (stdint.h): Mention problems with
35123         64-bit-#if, and how to work around them.
35124
35125         Don't insist on 'long long int' support in the preprocessor.  It
35126         breaks too many things.  For example, PRIdMAX still uses a 'long
35127         long int' format with the latest Sun compiler, even though
35128         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35129         preprocessor problem.  This causes the latest coreutils to dump
35130         core on Solaris 10 sparc with the Sun C compiler.
35131         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35132         the troublesome expressions at configure-time, not at #if-time.
35133         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35134         preprocessor.
35135         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35136         compile-time C checks, done at 'configure'-time.
35137         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35138         * modules/inttypes (Makefile): Substitute the new symbols that
35139         gl_INTTYPES_H now generates.
35140         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35141
35142 2007-11-12  Bruno Haible  <bruno@clisp.org>
35143
35144         Tests for Unicode character classification functions.
35145
35146         * modules/unictype/bidicategory-byname-tests: New file.
35147         * modules/unictype/bidicategory-name-tests: New file.
35148         * modules/unictype/bidicategory-of-tests: New file.
35149         * modules/unictype/bidicategory-test-tests: New file.
35150         * modules/unictype/block-list-tests: New file.
35151         * modules/unictype/block-of-tests: New file.
35152         * modules/unictype/block-test-tests: New file.
35153         * modules/unictype/category-C-tests: New file.
35154         * modules/unictype/category-Cc-tests: New file.
35155         * modules/unictype/category-Cf-tests: New file.
35156         * modules/unictype/category-Cn-tests: New file.
35157         * modules/unictype/category-Co-tests: New file.
35158         * modules/unictype/category-Cs-tests: New file.
35159         * modules/unictype/category-L-tests: New file.
35160         * modules/unictype/category-Ll-tests: New file.
35161         * modules/unictype/category-Lm-tests: New file.
35162         * modules/unictype/category-Lo-tests: New file.
35163         * modules/unictype/category-Lt-tests: New file.
35164         * modules/unictype/category-Lu-tests: New file.
35165         * modules/unictype/category-M-tests: New file.
35166         * modules/unictype/category-Mc-tests: New file.
35167         * modules/unictype/category-Me-tests: New file.
35168         * modules/unictype/category-Mn-tests: New file.
35169         * modules/unictype/category-N-tests: New file.
35170         * modules/unictype/category-Nd-tests: New file.
35171         * modules/unictype/category-Nl-tests: New file.
35172         * modules/unictype/category-No-tests: New file.
35173         * modules/unictype/category-P-tests: New file.
35174         * modules/unictype/category-Pc-tests: New file.
35175         * modules/unictype/category-Pd-tests: New file.
35176         * modules/unictype/category-Pe-tests: New file.
35177         * modules/unictype/category-Pf-tests: New file.
35178         * modules/unictype/category-Pi-tests: New file.
35179         * modules/unictype/category-Po-tests: New file.
35180         * modules/unictype/category-Ps-tests: New file.
35181         * modules/unictype/category-S-tests: New file.
35182         * modules/unictype/category-Sc-tests: New file.
35183         * modules/unictype/category-Sk-tests: New file.
35184         * modules/unictype/category-Sm-tests: New file.
35185         * modules/unictype/category-So-tests: New file.
35186         * modules/unictype/category-Z-tests: New file.
35187         * modules/unictype/category-Zl-tests: New file.
35188         * modules/unictype/category-Zp-tests: New file.
35189         * modules/unictype/category-Zs-tests: New file.
35190         * modules/unictype/category-and-not-tests: New file.
35191         * modules/unictype/category-and-tests: New file.
35192         * modules/unictype/category-byname-tests: New file.
35193         * modules/unictype/category-name-tests: New file.
35194         * modules/unictype/category-none-tests: New file.
35195         * modules/unictype/category-of-tests: New file.
35196         * modules/unictype/category-or-tests: New file.
35197         * modules/unictype/category-test-withtable-tests: New file.
35198         * modules/unictype/combining-class-tests: New file.
35199         * modules/unictype/ctype-alnum-tests: New file.
35200         * modules/unictype/ctype-alpha-tests: New file.
35201         * modules/unictype/ctype-blank-tests: New file.
35202         * modules/unictype/ctype-cntrl-tests: New file.
35203         * modules/unictype/ctype-digit-tests: New file.
35204         * modules/unictype/ctype-graph-tests: New file.
35205         * modules/unictype/ctype-lower-tests: New file.
35206         * modules/unictype/ctype-print-tests: New file.
35207         * modules/unictype/ctype-punct-tests: New file.
35208         * modules/unictype/ctype-space-tests: New file.
35209         * modules/unictype/ctype-upper-tests: New file.
35210         * modules/unictype/ctype-xdigit-tests: New file.
35211         * modules/unictype/decimal-digit-tests: New file.
35212         * modules/unictype/digit-tests: New file.
35213         * modules/unictype/mirror-tests: New file.
35214         * modules/unictype/numeric-tests: New file.
35215         * modules/unictype/property-alphabetic-tests: New file.
35216         * modules/unictype/property-ascii-hex-digit-tests: New file.
35217         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35218         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35219         * modules/unictype/property-bidi-block-separator-tests: New file.
35220         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35221         * modules/unictype/property-bidi-common-separator-tests: New file.
35222         * modules/unictype/property-bidi-control-tests: New file.
35223         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35224         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35225         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35226         * modules/unictype/property-bidi-european-digit-tests: New file.
35227         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35228         * modules/unictype/property-bidi-left-to-right-tests: New file.
35229         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35230         * modules/unictype/property-bidi-other-neutral-tests: New file.
35231         * modules/unictype/property-bidi-pdf-tests: New file.
35232         * modules/unictype/property-bidi-segment-separator-tests: New file.
35233         * modules/unictype/property-bidi-whitespace-tests: New file.
35234         * modules/unictype/property-byname-tests: New file.
35235         * modules/unictype/property-combining-tests: New file.
35236         * modules/unictype/property-composite-tests: New file.
35237         * modules/unictype/property-currency-symbol-tests: New file.
35238         * modules/unictype/property-dash-tests: New file.
35239         * modules/unictype/property-decimal-digit-tests: New file.
35240         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35241         * modules/unictype/property-deprecated-tests: New file.
35242         * modules/unictype/property-diacritic-tests: New file.
35243         * modules/unictype/property-extender-tests: New file.
35244         * modules/unictype/property-format-control-tests: New file.
35245         * modules/unictype/property-grapheme-base-tests: New file.
35246         * modules/unictype/property-grapheme-extend-tests: New file.
35247         * modules/unictype/property-grapheme-link-tests: New file.
35248         * modules/unictype/property-hex-digit-tests: New file.
35249         * modules/unictype/property-hyphen-tests: New file.
35250         * modules/unictype/property-id-continue-tests: New file.
35251         * modules/unictype/property-id-start-tests: New file.
35252         * modules/unictype/property-ideographic-tests: New file.
35253         * modules/unictype/property-ids-binary-operator-tests: New file.
35254         * modules/unictype/property-ids-trinary-operator-tests: New file.
35255         * modules/unictype/property-ignorable-control-tests: New file.
35256         * modules/unictype/property-iso-control-tests: New file.
35257         * modules/unictype/property-join-control-tests: New file.
35258         * modules/unictype/property-left-of-pair-tests: New file.
35259         * modules/unictype/property-line-separator-tests: New file.
35260         * modules/unictype/property-logical-order-exception-tests: New file.
35261         * modules/unictype/property-lowercase-tests: New file.
35262         * modules/unictype/property-math-tests: New file.
35263         * modules/unictype/property-non-break-tests: New file.
35264         * modules/unictype/property-not-a-character-tests: New file.
35265         * modules/unictype/property-numeric-tests: New file.
35266         * modules/unictype/property-other-alphabetic-tests: New file.
35267         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35268         * modules/unictype/property-other-grapheme-extend-tests: New file.
35269         * modules/unictype/property-other-id-continue-tests: New file.
35270         * modules/unictype/property-other-id-start-tests: New file.
35271         * modules/unictype/property-other-lowercase-tests: New file.
35272         * modules/unictype/property-other-math-tests: New file.
35273         * modules/unictype/property-other-uppercase-tests: New file.
35274         * modules/unictype/property-paired-punctuation-tests: New file.
35275         * modules/unictype/property-paragraph-separator-tests: New file.
35276         * modules/unictype/property-pattern-syntax-tests: New file.
35277         * modules/unictype/property-pattern-white-space-tests: New file.
35278         * modules/unictype/property-private-use-tests: New file.
35279         * modules/unictype/property-punctuation-tests: New file.
35280         * modules/unictype/property-quotation-mark-tests: New file.
35281         * modules/unictype/property-radical-tests: New file.
35282         * modules/unictype/property-sentence-terminal-tests: New file.
35283         * modules/unictype/property-soft-dotted-tests: New file.
35284         * modules/unictype/property-space-tests: New file.
35285         * modules/unictype/property-terminal-punctuation-tests: New file.
35286         * modules/unictype/property-test-tests: New file.
35287         * modules/unictype/property-titlecase-tests: New file.
35288         * modules/unictype/property-unassigned-code-value-tests: New file.
35289         * modules/unictype/property-unified-ideograph-tests: New file.
35290         * modules/unictype/property-uppercase-tests: New file.
35291         * modules/unictype/property-variation-selector-tests: New file.
35292         * modules/unictype/property-white-space-tests: New file.
35293         * modules/unictype/property-xid-continue-tests: New file.
35294         * modules/unictype/property-xid-start-tests: New file.
35295         * modules/unictype/property-zero-width-tests: New file.
35296         * modules/unictype/scripts-tests: New file.
35297         * modules/unictype/syntax-c-ident-tests: New file.
35298         * modules/unictype/syntax-c-whitespace-tests: New file.
35299         * modules/unictype/syntax-java-ident-tests: New file.
35300         * modules/unictype/syntax-java-whitespace-tests: New file.
35301         * tests/unictype/test-bidi_byname.c: New file.
35302         * tests/unictype/test-bidi_name.c: New file.
35303         * tests/unictype/test-bidi_of.c: New file.
35304         * tests/unictype/test-bidi_test.c: New file.
35305         * tests/unictype/test-block_list.c: New file.
35306         * tests/unictype/test-block_of.c: New file.
35307         * tests/unictype/test-block_test.c: New file.
35308         * tests/unictype/test-categ_and.c: New file.
35309         * tests/unictype/test-categ_and_not.c: New file.
35310         * tests/unictype/test-categ_byname.c: New file.
35311         * tests/unictype/test-categ_name.c: New file.
35312         * tests/unictype/test-categ_none.c: New file.
35313         * tests/unictype/test-categ_of.c: New file.
35314         * tests/unictype/test-categ_or.c: New file.
35315         * tests/unictype/test-categ_test_withtable.c: New file.
35316         * tests/unictype/test-combining.c: New file.
35317         * tests/unictype/test-decdigit.c: New file.
35318         * tests/unictype/test-digit.c: New file.
35319         * tests/unictype/test-mirror.c: New file.
35320         * tests/unictype/test-numeric.c: New file.
35321         * tests/unictype/test-pr_byname.c: New file.
35322         * tests/unictype/test-pr_test.c: New file.
35323         * tests/unictype/test-predicate-part1.h: New file.
35324         * tests/unictype/test-predicate-part2.h: New file.
35325         * tests/unictype/test-scripts.c: New file.
35326         * tests/unictype/test-sy_c_ident.c: New file.
35327         * tests/unictype/test-sy_java_ident.c: New file.
35328
35329         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35330         for Unicode 5.0.0.
35331         * tests/unictype/test-categ_Cc.c: Likewise.
35332         * tests/unictype/test-categ_Cf.c: Likewise.
35333         * tests/unictype/test-categ_Cn.c: Likewise.
35334         * tests/unictype/test-categ_Co.c: Likewise.
35335         * tests/unictype/test-categ_Cs.c: Likewise.
35336         * tests/unictype/test-categ_L.c: Likewise.
35337         * tests/unictype/test-categ_Ll.c: Likewise.
35338         * tests/unictype/test-categ_Lm.c: Likewise.
35339         * tests/unictype/test-categ_Lo.c: Likewise.
35340         * tests/unictype/test-categ_Lt.c: Likewise.
35341         * tests/unictype/test-categ_Lu.c: Likewise.
35342         * tests/unictype/test-categ_M.c: Likewise.
35343         * tests/unictype/test-categ_Mc.c: Likewise.
35344         * tests/unictype/test-categ_Me.c: Likewise.
35345         * tests/unictype/test-categ_Mn.c: Likewise.
35346         * tests/unictype/test-categ_N.c: Likewise.
35347         * tests/unictype/test-categ_Nd.c: Likewise.
35348         * tests/unictype/test-categ_Nl.c: Likewise.
35349         * tests/unictype/test-categ_No.c: Likewise.
35350         * tests/unictype/test-categ_P.c: Likewise.
35351         * tests/unictype/test-categ_Pc.c: Likewise.
35352         * tests/unictype/test-categ_Pd.c: Likewise.
35353         * tests/unictype/test-categ_Pe.c: Likewise.
35354         * tests/unictype/test-categ_Pf.c: Likewise.
35355         * tests/unictype/test-categ_Pi.c: Likewise.
35356         * tests/unictype/test-categ_Po.c: Likewise.
35357         * tests/unictype/test-categ_Ps.c: Likewise.
35358         * tests/unictype/test-categ_S.c: Likewise.
35359         * tests/unictype/test-categ_Sc.c: Likewise.
35360         * tests/unictype/test-categ_Sk.c: Likewise.
35361         * tests/unictype/test-categ_Sm.c: Likewise.
35362         * tests/unictype/test-categ_So.c: Likewise.
35363         * tests/unictype/test-categ_Z.c: Likewise.
35364         * tests/unictype/test-categ_Zl.c: Likewise.
35365         * tests/unictype/test-categ_Zp.c: Likewise.
35366         * tests/unictype/test-categ_Zs.c: Likewise.
35367         * tests/unictype/test-ctype_alnum.c: Likewise.
35368         * tests/unictype/test-ctype_alpha.c: Likewise.
35369         * tests/unictype/test-ctype_blank.c: Likewise.
35370         * tests/unictype/test-ctype_cntrl.c: Likewise.
35371         * tests/unictype/test-ctype_digit.c: Likewise.
35372         * tests/unictype/test-ctype_graph.c: Likewise.
35373         * tests/unictype/test-ctype_lower.c: Likewise.
35374         * tests/unictype/test-ctype_print.c: Likewise.
35375         * tests/unictype/test-ctype_punct.c: Likewise.
35376         * tests/unictype/test-ctype_space.c: Likewise.
35377         * tests/unictype/test-ctype_upper.c: Likewise.
35378         * tests/unictype/test-ctype_xdigit.c: Likewise.
35379         * tests/unictype/test-decdigit.h: Likewise.
35380         * tests/unictype/test-digit.h: Likewise.
35381         * tests/unictype/test-numeric.h: Likewise.
35382         * tests/unictype/test-pr_alphabetic.c: Likewise.
35383         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35384         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35385         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35386         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35387         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35388         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35389         * tests/unictype/test-pr_bidi_control.c: Likewise.
35390         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35391         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35392         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35393         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35394         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35395         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35396         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35397         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35398         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35399         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35400         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35401         * tests/unictype/test-pr_combining.c: Likewise.
35402         * tests/unictype/test-pr_composite.c: Likewise.
35403         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35404         * tests/unictype/test-pr_dash.c: Likewise.
35405         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35406         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35407         * tests/unictype/test-pr_deprecated.c: Likewise.
35408         * tests/unictype/test-pr_diacritic.c: Likewise.
35409         * tests/unictype/test-pr_extender.c: Likewise.
35410         * tests/unictype/test-pr_format_control.c: Likewise.
35411         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35412         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35413         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35414         * tests/unictype/test-pr_hex_digit.c: Likewise.
35415         * tests/unictype/test-pr_hyphen.c: Likewise.
35416         * tests/unictype/test-pr_id_continue.c: Likewise.
35417         * tests/unictype/test-pr_id_start.c: Likewise.
35418         * tests/unictype/test-pr_ideographic.c: Likewise.
35419         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35420         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35421         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35422         * tests/unictype/test-pr_iso_control.c: Likewise.
35423         * tests/unictype/test-pr_join_control.c: Likewise.
35424         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35425         * tests/unictype/test-pr_line_separator.c: Likewise.
35426         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35427         * tests/unictype/test-pr_lowercase.c: Likewise.
35428         * tests/unictype/test-pr_math.c: Likewise.
35429         * tests/unictype/test-pr_non_break.c: Likewise.
35430         * tests/unictype/test-pr_not_a_character.c: Likewise.
35431         * tests/unictype/test-pr_numeric.c: Likewise.
35432         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35433         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35434         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35435         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35436         * tests/unictype/test-pr_other_id_start.c: Likewise.
35437         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35438         * tests/unictype/test-pr_other_math.c: Likewise.
35439         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35440         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35441         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35442         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35443         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35444         * tests/unictype/test-pr_private_use.c: Likewise.
35445         * tests/unictype/test-pr_punctuation.c: Likewise.
35446         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35447         * tests/unictype/test-pr_radical.c: Likewise.
35448         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35449         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35450         * tests/unictype/test-pr_space.c: Likewise.
35451         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35452         * tests/unictype/test-pr_titlecase.c: Likewise.
35453         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35454         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35455         * tests/unictype/test-pr_uppercase.c: Likewise.
35456         * tests/unictype/test-pr_variation_selector.c: Likewise.
35457         * tests/unictype/test-pr_white_space.c: Likewise.
35458         * tests/unictype/test-pr_xid_continue.c: Likewise.
35459         * tests/unictype/test-pr_xid_start.c: Likewise.
35460         * tests/unictype/test-pr_zero_width.c: Likewise.
35461         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35462         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35463
35464 2007-11-12  Bruno Haible  <bruno@clisp.org>
35465
35466         Unicode character classification functions.
35467         * lib/unictype.h: New file.
35468         * modules/unictype/base: New file.
35469         * modules/unictype/category-L: New file.
35470         * modules/unictype/category-Lu: New file.
35471         * modules/unictype/category-Ll: New file.
35472         * modules/unictype/category-Lt: New file.
35473         * modules/unictype/category-Lm: New file.
35474         * modules/unictype/category-Lo: New file.
35475         * modules/unictype/category-M: New file.
35476         * modules/unictype/category-Mn: New file.
35477         * modules/unictype/category-Mc: New file.
35478         * modules/unictype/category-Me: New file.
35479         * modules/unictype/category-N: New file.
35480         * modules/unictype/category-Nd: New file.
35481         * modules/unictype/category-Nl: New file.
35482         * modules/unictype/category-No: New file.
35483         * modules/unictype/category-P: New file.
35484         * modules/unictype/category-Pc: New file.
35485         * modules/unictype/category-Pd: New file.
35486         * modules/unictype/category-Ps: New file.
35487         * modules/unictype/category-Pe: New file.
35488         * modules/unictype/category-Pi: New file.
35489         * modules/unictype/category-Pf: New file.
35490         * modules/unictype/category-Po: New file.
35491         * modules/unictype/category-S: New file.
35492         * modules/unictype/category-Sm: New file.
35493         * modules/unictype/category-Sc: New file.
35494         * modules/unictype/category-Sk: New file.
35495         * modules/unictype/category-So: New file.
35496         * modules/unictype/category-Z: New file.
35497         * modules/unictype/category-Zs: New file.
35498         * modules/unictype/category-Zl: New file.
35499         * modules/unictype/category-Zp: New file.
35500         * modules/unictype/category-C: New file.
35501         * modules/unictype/category-Cc: New file.
35502         * modules/unictype/category-Cf: New file.
35503         * modules/unictype/category-Cs: New file.
35504         * modules/unictype/category-Co: New file.
35505         * modules/unictype/category-Cn: New file.
35506         * modules/unictype/category-or: New file.
35507         * modules/unictype/category-of: New file.
35508         * modules/unictype/category-test: New file.
35509         * modules/unictype/category-test-withtable: New file.
35510         * modules/unictype/category-byname: New file.
35511         * modules/unictype/category-none: New file.
35512         * modules/unictype/category-and: New file.
35513         * modules/unictype/category-and-not: New file.
35514         * modules/unictype/category-name: New file.
35515         * modules/unictype/combining-class: New file.
35516         * modules/unictype/category-all: New file.
35517         * modules/unictype/bidicategory-all: New file.
35518         * modules/unictype/bidicategory-byname: New file.
35519         * modules/unictype/bidicategory-name: New file.
35520         * modules/unictype/bidicategory-of: New file.
35521         * modules/unictype/bidicategory-test: New file.
35522         * modules/unictype/decimal-digit: New file.
35523         * modules/unictype/digit: New file.
35524         * modules/unictype/numeric: New file.
35525         * modules/unictype/mirror: New file.
35526         * modules/unictype/property-white-space: New file.
35527         * modules/unictype/property-alphabetic: New file.
35528         * modules/unictype/property-other-alphabetic: New file.
35529         * modules/unictype/property-not-a-character: New file.
35530         * modules/unictype/property-default-ignorable-code-point: New file.
35531         * modules/unictype/property-other-default-ignorable-code-point: New
35532         file.
35533         * modules/unictype/property-deprecated: New file.
35534         * modules/unictype/property-logical-order-exception: New file.
35535         * modules/unictype/property-variation-selector: New file.
35536         * modules/unictype/property-private-use: New file.
35537         * modules/unictype/property-unassigned-code-value: New file.
35538         * modules/unictype/property-uppercase: New file.
35539         * modules/unictype/property-other-uppercase: New file.
35540         * modules/unictype/property-lowercase: New file.
35541         * modules/unictype/property-other-lowercase: New file.
35542         * modules/unictype/property-titlecase: New file.
35543         * modules/unictype/property-soft-dotted: New file.
35544         * modules/unictype/property-id-start: New file.
35545         * modules/unictype/property-other-id-start: New file.
35546         * modules/unictype/property-id-continue: New file.
35547         * modules/unictype/property-other-id-continue: New file.
35548         * modules/unictype/property-xid-start: New file.
35549         * modules/unictype/property-xid-continue: New file.
35550         * modules/unictype/property-pattern-white-space: New file.
35551         * modules/unictype/property-pattern-syntax: New file.
35552         * modules/unictype/property-join-control: New file.
35553         * modules/unictype/property-grapheme-base: New file.
35554         * modules/unictype/property-grapheme-extend: New file.
35555         * modules/unictype/property-other-grapheme-extend: New file.
35556         * modules/unictype/property-grapheme-link: New file.
35557         * modules/unictype/property-bidi-control: New file.
35558         * modules/unictype/property-bidi-left-to-right: New file.
35559         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35560         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35561         * modules/unictype/property-bidi-european-digit: New file.
35562         * modules/unictype/property-bidi-eur-num-separator: New file.
35563         * modules/unictype/property-bidi-eur-num-terminator: New file.
35564         * modules/unictype/property-bidi-arabic-digit: New file.
35565         * modules/unictype/property-bidi-common-separator: New file.
35566         * modules/unictype/property-bidi-block-separator: New file.
35567         * modules/unictype/property-bidi-segment-separator: New file.
35568         * modules/unictype/property-bidi-whitespace: New file.
35569         * modules/unictype/property-bidi-non-spacing-mark: New file.
35570         * modules/unictype/property-bidi-boundary-neutral: New file.
35571         * modules/unictype/property-bidi-pdf: New file.
35572         * modules/unictype/property-bidi-embedding-or-override: New file.
35573         * modules/unictype/property-bidi-other-neutral: New file.
35574         * modules/unictype/property-hex-digit: New file.
35575         * modules/unictype/property-ascii-hex-digit: New file.
35576         * modules/unictype/property-ideographic: New file.
35577         * modules/unictype/property-unified-ideograph: New file.
35578         * modules/unictype/property-radical: New file.
35579         * modules/unictype/property-ids-binary-operator: New file.
35580         * modules/unictype/property-ids-trinary-operator: New file.
35581         * modules/unictype/property-zero-width: New file.
35582         * modules/unictype/property-space: New file.
35583         * modules/unictype/property-non-break: New file.
35584         * modules/unictype/property-iso-control: New file.
35585         * modules/unictype/property-format-control: New file.
35586         * modules/unictype/property-dash: New file.
35587         * modules/unictype/property-hyphen: New file.
35588         * modules/unictype/property-punctuation: New file.
35589         * modules/unictype/property-line-separator: New file.
35590         * modules/unictype/property-paragraph-separator: New file.
35591         * modules/unictype/property-quotation-mark: New file.
35592         * modules/unictype/property-sentence-terminal: New file.
35593         * modules/unictype/property-terminal-punctuation: New file.
35594         * modules/unictype/property-currency-symbol: New file.
35595         * modules/unictype/property-math: New file.
35596         * modules/unictype/property-other-math: New file.
35597         * modules/unictype/property-paired-punctuation: New file.
35598         * modules/unictype/property-left-of-pair: New file.
35599         * modules/unictype/property-combining: New file.
35600         * modules/unictype/property-composite: New file.
35601         * modules/unictype/property-decimal-digit: New file.
35602         * modules/unictype/property-numeric: New file.
35603         * modules/unictype/property-diacritic: New file.
35604         * modules/unictype/property-extender: New file.
35605         * modules/unictype/property-ignorable-control: New file.
35606         * modules/unictype/property-test: New file.
35607         * modules/unictype/property-byname: New file.
35608         * modules/unictype/property-all: New file.
35609         * modules/unictype/scripts: New file.
35610         * modules/unictype/scripts-all: New file.
35611         * modules/unictype/block-of: New file.
35612         * modules/unictype/block-test: New file.
35613         * modules/unictype/block-list: New file.
35614         * modules/unictype/block-all: New file.
35615         * modules/unictype/syntax-c-whitespace: New file.
35616         * modules/unictype/syntax-java-whitespace: New file.
35617         * modules/unictype/syntax-c-ident: New file.
35618         * modules/unictype/syntax-java-ident: New file.
35619         * modules/unictype/ctype-alnum: New file.
35620         * modules/unictype/ctype-alpha: New file.
35621         * modules/unictype/ctype-cntrl: New file.
35622         * modules/unictype/ctype-digit: New file.
35623         * modules/unictype/ctype-graph: New file.
35624         * modules/unictype/ctype-lower: New file.
35625         * modules/unictype/ctype-print: New file.
35626         * modules/unictype/ctype-punct: New file.
35627         * modules/unictype/ctype-space: New file.
35628         * modules/unictype/ctype-upper: New file.
35629         * modules/unictype/ctype-xdigit: New file.
35630         * modules/unictype/ctype-blank: New file.
35631         * lib/unictype/bidi_byname.c: New file.
35632         * lib/unictype/bidi_name.c: New file.
35633         * lib/unictype/bidi_of.c: New file.
35634         * lib/unictype/bidi_test.c: New file.
35635         * lib/unictype/bitmap.h: New file.
35636         * lib/unictype/block_test.c: New file.
35637         * lib/unictype/blocks.c: New file.
35638         * lib/unictype/categ_C.c: New file.
35639         * lib/unictype/categ_Cc.c: New file.
35640         * lib/unictype/categ_Cf.c: New file.
35641         * lib/unictype/categ_Cn.c: New file.
35642         * lib/unictype/categ_Co.c: New file.
35643         * lib/unictype/categ_Cs.c: New file.
35644         * lib/unictype/categ_L.c: New file.
35645         * lib/unictype/categ_Ll.c: New file.
35646         * lib/unictype/categ_Lm.c: New file.
35647         * lib/unictype/categ_Lo.c: New file.
35648         * lib/unictype/categ_Lt.c: New file.
35649         * lib/unictype/categ_Lu.c: New file.
35650         * lib/unictype/categ_M.c: New file.
35651         * lib/unictype/categ_Mc.c: New file.
35652         * lib/unictype/categ_Me.c: New file.
35653         * lib/unictype/categ_Mn.c: New file.
35654         * lib/unictype/categ_N.c: New file.
35655         * lib/unictype/categ_Nd.c: New file.
35656         * lib/unictype/categ_Nl.c: New file.
35657         * lib/unictype/categ_No.c: New file.
35658         * lib/unictype/categ_P.c: New file.
35659         * lib/unictype/categ_Pc.c: New file.
35660         * lib/unictype/categ_Pd.c: New file.
35661         * lib/unictype/categ_Pe.c: New file.
35662         * lib/unictype/categ_Pf.c: New file.
35663         * lib/unictype/categ_Pi.c: New file.
35664         * lib/unictype/categ_Po.c: New file.
35665         * lib/unictype/categ_Ps.c: New file.
35666         * lib/unictype/categ_S.c: New file.
35667         * lib/unictype/categ_Sc.c: New file.
35668         * lib/unictype/categ_Sk.c: New file.
35669         * lib/unictype/categ_Sm.c: New file.
35670         * lib/unictype/categ_So.c: New file.
35671         * lib/unictype/categ_Z.c: New file.
35672         * lib/unictype/categ_Zl.c: New file.
35673         * lib/unictype/categ_Zp.c: New file.
35674         * lib/unictype/categ_Zs.c: New file.
35675         * lib/unictype/categ_and.c: New file.
35676         * lib/unictype/categ_and_not.c: New file.
35677         * lib/unictype/categ_byname.c: New file.
35678         * lib/unictype/categ_name.c: New file.
35679         * lib/unictype/categ_none.c: New file.
35680         * lib/unictype/categ_of.c: New file.
35681         * lib/unictype/categ_or.c: New file.
35682         * lib/unictype/categ_test.c: New file.
35683         * lib/unictype/combining.c: New file.
35684         * lib/unictype/ctype_alnum.c: New file.
35685         * lib/unictype/ctype_alpha.c: New file.
35686         * lib/unictype/ctype_blank.c: New file.
35687         * lib/unictype/ctype_cntrl.c: New file.
35688         * lib/unictype/ctype_digit.c: New file.
35689         * lib/unictype/ctype_graph.c: New file.
35690         * lib/unictype/ctype_lower.c: New file.
35691         * lib/unictype/ctype_print.c: New file.
35692         * lib/unictype/ctype_punct.c: New file.
35693         * lib/unictype/ctype_space.c: New file.
35694         * lib/unictype/ctype_upper.c: New file.
35695         * lib/unictype/ctype_xdigit.c: New file.
35696         * lib/unictype/decdigit.c: New file.
35697         * lib/unictype/digit.c: New file.
35698         * lib/unictype/identsyntaxmap.h: New file.
35699         * lib/unictype/mirror.c: New file.
35700         * lib/unictype/numeric.c: New file.
35701         * lib/unictype/pr_alphabetic.c: New file.
35702         * lib/unictype/pr_ascii_hex_digit.c: New file.
35703         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35704         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35705         * lib/unictype/pr_bidi_block_separator.c: New file.
35706         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35707         * lib/unictype/pr_bidi_common_separator.c: New file.
35708         * lib/unictype/pr_bidi_control.c: New file.
35709         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35710         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35711         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35712         * lib/unictype/pr_bidi_european_digit.c: New file.
35713         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35714         * lib/unictype/pr_bidi_left_to_right.c: New file.
35715         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35716         * lib/unictype/pr_bidi_other_neutral.c: New file.
35717         * lib/unictype/pr_bidi_pdf.c: New file.
35718         * lib/unictype/pr_bidi_segment_separator.c: New file.
35719         * lib/unictype/pr_bidi_whitespace.c: New file.
35720         * lib/unictype/pr_byname.c: New file.
35721         * lib/unictype/pr_byname.gperf: New file.
35722         * lib/unictype/pr_combining.c: New file.
35723         * lib/unictype/pr_composite.c: New file.
35724         * lib/unictype/pr_currency_symbol.c: New file.
35725         * lib/unictype/pr_dash.c: New file.
35726         * lib/unictype/pr_decimal_digit.c: New file.
35727         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35728         * lib/unictype/pr_deprecated.c: New file.
35729         * lib/unictype/pr_diacritic.c: New file.
35730         * lib/unictype/pr_extender.c: New file.
35731         * lib/unictype/pr_format_control.c: New file.
35732         * lib/unictype/pr_grapheme_base.c: New file.
35733         * lib/unictype/pr_grapheme_extend.c: New file.
35734         * lib/unictype/pr_grapheme_link.c: New file.
35735         * lib/unictype/pr_hex_digit.c: New file.
35736         * lib/unictype/pr_hyphen.c: New file.
35737         * lib/unictype/pr_id_continue.c: New file.
35738         * lib/unictype/pr_id_start.c: New file.
35739         * lib/unictype/pr_ideographic.c: New file.
35740         * lib/unictype/pr_ids_binary_operator.c: New file.
35741         * lib/unictype/pr_ids_trinary_operator.c: New file.
35742         * lib/unictype/pr_ignorable_control.c: New file.
35743         * lib/unictype/pr_iso_control.c: New file.
35744         * lib/unictype/pr_join_control.c: New file.
35745         * lib/unictype/pr_left_of_pair.c: New file.
35746         * lib/unictype/pr_line_separator.c: New file.
35747         * lib/unictype/pr_logical_order_exception.c: New file.
35748         * lib/unictype/pr_lowercase.c: New file.
35749         * lib/unictype/pr_math.c: New file.
35750         * lib/unictype/pr_non_break.c: New file.
35751         * lib/unictype/pr_not_a_character.c: New file.
35752         * lib/unictype/pr_numeric.c: New file.
35753         * lib/unictype/pr_other_alphabetic.c: New file.
35754         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35755         * lib/unictype/pr_other_grapheme_extend.c: New file.
35756         * lib/unictype/pr_other_id_continue.c: New file.
35757         * lib/unictype/pr_other_id_start.c: New file.
35758         * lib/unictype/pr_other_lowercase.c: New file.
35759         * lib/unictype/pr_other_math.c: New file.
35760         * lib/unictype/pr_other_uppercase.c: New file.
35761         * lib/unictype/pr_paired_punctuation.c: New file.
35762         * lib/unictype/pr_paragraph_separator.c: New file.
35763         * lib/unictype/pr_pattern_syntax.c: New file.
35764         * lib/unictype/pr_pattern_white_space.c: New file.
35765         * lib/unictype/pr_private_use.c: New file.
35766         * lib/unictype/pr_punctuation.c: New file.
35767         * lib/unictype/pr_quotation_mark.c: New file.
35768         * lib/unictype/pr_radical.c: New file.
35769         * lib/unictype/pr_sentence_terminal.c: New file.
35770         * lib/unictype/pr_soft_dotted.c: New file.
35771         * lib/unictype/pr_space.c: New file.
35772         * lib/unictype/pr_terminal_punctuation.c: New file.
35773         * lib/unictype/pr_test.c: New file.
35774         * lib/unictype/pr_titlecase.c: New file.
35775         * lib/unictype/pr_unassigned_code_value.c: New file.
35776         * lib/unictype/pr_unified_ideograph.c: New file.
35777         * lib/unictype/pr_uppercase.c: New file.
35778         * lib/unictype/pr_variation_selector.c: New file.
35779         * lib/unictype/pr_white_space.c: New file.
35780         * lib/unictype/pr_xid_continue.c: New file.
35781         * lib/unictype/pr_xid_start.c: New file.
35782         * lib/unictype/pr_zero_width.c: New file.
35783         * lib/unictype/scripts.c: New file.
35784         * lib/unictype/sy_c_ident.c: New file.
35785         * lib/unictype/sy_c_whitespace.c: New file.
35786         * lib/unictype/sy_java_ident.c: New file.
35787         * lib/unictype/sy_java_whitespace.c: New file.
35788
35789         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35790         Unicode 5.0.0.
35791         * lib/unictype/blocks.h: Likewise.
35792         * lib/unictype/categ_C.h: Likewise.
35793         * lib/unictype/categ_Cc.h: Likewise.
35794         * lib/unictype/categ_Cf.h: Likewise.
35795         * lib/unictype/categ_Cn.h: Likewise.
35796         * lib/unictype/categ_Co.h: Likewise.
35797         * lib/unictype/categ_Cs.h: Likewise.
35798         * lib/unictype/categ_L.h: Likewise.
35799         * lib/unictype/categ_Ll.h: Likewise.
35800         * lib/unictype/categ_Lm.h: Likewise.
35801         * lib/unictype/categ_Lo.h: Likewise.
35802         * lib/unictype/categ_Lt.h: Likewise.
35803         * lib/unictype/categ_Lu.h: Likewise.
35804         * lib/unictype/categ_M.h: Likewise.
35805         * lib/unictype/categ_Mc.h: Likewise.
35806         * lib/unictype/categ_Me.h: Likewise.
35807         * lib/unictype/categ_Mn.h: Likewise.
35808         * lib/unictype/categ_N.h: Likewise.
35809         * lib/unictype/categ_Nd.h: Likewise.
35810         * lib/unictype/categ_Nl.h: Likewise.
35811         * lib/unictype/categ_No.h: Likewise.
35812         * lib/unictype/categ_P.h: Likewise.
35813         * lib/unictype/categ_Pc.h: Likewise.
35814         * lib/unictype/categ_Pd.h: Likewise.
35815         * lib/unictype/categ_Pe.h: Likewise.
35816         * lib/unictype/categ_Pf.h: Likewise.
35817         * lib/unictype/categ_Pi.h: Likewise.
35818         * lib/unictype/categ_Po.h: Likewise.
35819         * lib/unictype/categ_Ps.h: Likewise.
35820         * lib/unictype/categ_S.h: Likewise.
35821         * lib/unictype/categ_Sc.h: Likewise.
35822         * lib/unictype/categ_Sk.h: Likewise.
35823         * lib/unictype/categ_Sm.h: Likewise.
35824         * lib/unictype/categ_So.h: Likewise.
35825         * lib/unictype/categ_Z.h: Likewise.
35826         * lib/unictype/categ_Zl.h: Likewise.
35827         * lib/unictype/categ_Zp.h: Likewise.
35828         * lib/unictype/categ_Zs.h: Likewise.
35829         * lib/unictype/categ_of.h: Likewise.
35830         * lib/unictype/combining.h: Likewise.
35831         * lib/unictype/ctype_alnum.h: Likewise.
35832         * lib/unictype/ctype_alpha.h: Likewise.
35833         * lib/unictype/ctype_blank.h: Likewise.
35834         * lib/unictype/ctype_cntrl.h: Likewise.
35835         * lib/unictype/ctype_digit.h: Likewise.
35836         * lib/unictype/ctype_graph.h: Likewise.
35837         * lib/unictype/ctype_lower.h: Likewise.
35838         * lib/unictype/ctype_print.h: Likewise.
35839         * lib/unictype/ctype_punct.h: Likewise.
35840         * lib/unictype/ctype_space.h: Likewise.
35841         * lib/unictype/ctype_upper.h: Likewise.
35842         * lib/unictype/ctype_xdigit.h: Likewise.
35843         * lib/unictype/decdigit.h: Likewise.
35844         * lib/unictype/digit.h: Likewise.
35845         * lib/unictype/mirror.h: Likewise.
35846         * lib/unictype/numeric.h: Likewise.
35847         * lib/unictype/pr_alphabetic.h: Likewise.
35848         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35849         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35850         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35851         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35852         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35853         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35854         * lib/unictype/pr_bidi_control.h: Likewise.
35855         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35856         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35857         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35858         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35859         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35860         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35861         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35862         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35863         * lib/unictype/pr_bidi_pdf.h: Likewise.
35864         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35865         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35866         * lib/unictype/pr_combining.h: Likewise.
35867         * lib/unictype/pr_composite.h: Likewise.
35868         * lib/unictype/pr_currency_symbol.h: Likewise.
35869         * lib/unictype/pr_dash.h: Likewise.
35870         * lib/unictype/pr_decimal_digit.h: Likewise.
35871         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35872         * lib/unictype/pr_deprecated.h: Likewise.
35873         * lib/unictype/pr_diacritic.h: Likewise.
35874         * lib/unictype/pr_extender.h: Likewise.
35875         * lib/unictype/pr_format_control.h: Likewise.
35876         * lib/unictype/pr_grapheme_base.h: Likewise.
35877         * lib/unictype/pr_grapheme_extend.h: Likewise.
35878         * lib/unictype/pr_grapheme_link.h: Likewise.
35879         * lib/unictype/pr_hex_digit.h: Likewise.
35880         * lib/unictype/pr_hyphen.h: Likewise.
35881         * lib/unictype/pr_id_continue.h: Likewise.
35882         * lib/unictype/pr_id_start.h: Likewise.
35883         * lib/unictype/pr_ideographic.h: Likewise.
35884         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35885         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35886         * lib/unictype/pr_ignorable_control.h: Likewise.
35887         * lib/unictype/pr_iso_control.h: Likewise.
35888         * lib/unictype/pr_join_control.h: Likewise.
35889         * lib/unictype/pr_left_of_pair.h: Likewise.
35890         * lib/unictype/pr_line_separator.h: Likewise.
35891         * lib/unictype/pr_logical_order_exception.h: Likewise.
35892         * lib/unictype/pr_lowercase.h: Likewise.
35893         * lib/unictype/pr_math.h: Likewise.
35894         * lib/unictype/pr_non_break.h: Likewise.
35895         * lib/unictype/pr_not_a_character.h: Likewise.
35896         * lib/unictype/pr_numeric.h: Likewise.
35897         * lib/unictype/pr_other_alphabetic.h: Likewise.
35898         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35899         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35900         * lib/unictype/pr_other_id_continue.h: Likewise.
35901         * lib/unictype/pr_other_id_start.h: Likewise.
35902         * lib/unictype/pr_other_lowercase.h: Likewise.
35903         * lib/unictype/pr_other_math.h: Likewise.
35904         * lib/unictype/pr_other_uppercase.h: Likewise.
35905         * lib/unictype/pr_paired_punctuation.h: Likewise.
35906         * lib/unictype/pr_paragraph_separator.h: Likewise.
35907         * lib/unictype/pr_pattern_syntax.h: Likewise.
35908         * lib/unictype/pr_pattern_white_space.h: Likewise.
35909         * lib/unictype/pr_private_use.h: Likewise.
35910         * lib/unictype/pr_punctuation.h: Likewise.
35911         * lib/unictype/pr_quotation_mark.h: Likewise.
35912         * lib/unictype/pr_radical.h: Likewise.
35913         * lib/unictype/pr_sentence_terminal.h: Likewise.
35914         * lib/unictype/pr_soft_dotted.h: Likewise.
35915         * lib/unictype/pr_space.h: Likewise.
35916         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35917         * lib/unictype/pr_titlecase.h: Likewise.
35918         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35919         * lib/unictype/pr_unified_ideograph.h: Likewise.
35920         * lib/unictype/pr_uppercase.h: Likewise.
35921         * lib/unictype/pr_variation_selector.h: Likewise.
35922         * lib/unictype/pr_white_space.h: Likewise.
35923         * lib/unictype/pr_xid_continue.h: Likewise.
35924         * lib/unictype/pr_xid_start.h: Likewise.
35925         * lib/unictype/pr_zero_width.h: Likewise.
35926         * lib/unictype/scripts.h: Likewise.
35927         * lib/unictype/scripts_byname.gperf: Likewise.
35928         * lib/unictype/sy_c_ident.h: Likewise.
35929         * lib/unictype/sy_c_whitespace.h: Likewise.
35930         * lib/unictype/sy_java_ident.h: Likewise.
35931         * lib/unictype/sy_java_whitespace.h: Likewise.
35932
35933         * lib/unictype/Makefile: New file.
35934         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35935         glibc.
35936         * lib/unictype/3level.h: New file, copied from glibc.
35937         * lib/unictype/3levelbit.h: New file.
35938
35939 2007-11-11  Bruno Haible  <bruno@clisp.org>
35940
35941         * modules/gperf: New file.
35942         * modules/iconv_open (Depends-on): Add it.
35943         (Makefile.am): Remove the GPERF definition.
35944
35945 2007-11-11  Bruno Haible  <bruno@clisp.org>
35946
35947         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35948         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35949
35950 2007-11-11  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35953         (usage): Remove function.
35954
35955 2007-11-11  Bruno Haible  <bruno@clisp.org>
35956
35957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35958         gl_FUNC_CEILF_LIBS.
35959         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35960         gl_FUNC_CEIL_LIBS.
35961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35962         gl_FUNC_CEILL_LIBS.
35963         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35964         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35965         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35966
35967 2007-11-11  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35970         roundf were declared but do not exist on functions.
35971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35972         roundl were declared but do not exist on functions.
35973         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35974         HAVE_FLOORL_AND_CEILL, respectively.
35975         Needed for Sun C on Solaris 10.
35976
35977 2007-11-11  Bruno Haible  <bruno@clisp.org>
35978
35979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35980         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35981         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35982         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35984         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35985         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35986         HAVE_DECL_ROUNDF.
35987         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35988         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35990         of HAVE_DECL_ROUND*.
35991         * modules/math (Makefile.am): Update.
35992
35993 2007-11-10  Bruno Haible  <bruno@clisp.org>
35994
35995         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35996         ptrdiff_t as m4/intl.m4.
35997
35998 2007-11-10  Jim Meyering  <meyering@redhat.com>
35999
36000         Avoid link failure for the argmatch test.
36001         * tests/test-argmatch.c (usage): Define function to avoid a link
36002         failure: argmatch_die requires a usage function.
36003
36004 2007-11-09  Bruno Haible  <bruno@clisp.org>
36005
36006         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36007         * doc/functions/vsnprintf.texi: Likewise.
36008         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36009         with a size argument < 2.
36010
36011 2007-11-09  Bruno Haible  <bruno@clisp.org>
36012
36013         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36014         buffer. Fixes an inefficiency introduced on 2007-11-03.
36015
36016 2007-11-09  Bruno Haible  <bruno@clisp.org>
36017
36018         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36019         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36020
36021 2007-11-08  Jim Meyering  <meyering@redhat.com>
36022
36023         Change cache variable name prefix "jm_" to "gl_" everywhere.
36024         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36025         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36026         * m4/uptime.m4: s/gl_/jm_/
36027
36028 2007-11-07  Bruno Haible  <bruno@clisp.org>
36029
36030         Update to GNU gettext 0.17.
36031         * m4/intl.m4: Update to GNU gettext 0.17.
36032         * m4/po.m4: Likewise.
36033         * modules/gettext (Files): Remove m4/ulonglong.m4.
36034         (configure.ac): Require gettext infrastructure from version 0.17.
36035
36036 2007-11-06  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36039         symbolic values are not defined in a public header.
36040         * lib/freadable.c (freadable) [QNX]: Likewise.
36041         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36042         * lib/freading.c (freading) [QNX]: Likewise.
36043         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36044         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36045         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36046         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36047         Reported by Alain Magloire.
36048
36049         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36050
36051 2007-11-05  Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36054         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36055         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36056         Reported by Eric Blake.
36057
36058 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36059             Bruno Haible  <bruno@clisp.org>
36060
36061         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36062         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36063         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36064         (malloc): Undefine also before including <stdlib.h>.
36065         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36066         Needed on OSF/1 4.0.
36067
36068 2007-11-05  Jim Meyering  <meyering@redhat.com>
36069
36070         git-version-gen: sync from coreutils.
36071         * build-aux/git-version-gen: Add comments.
36072         Change the first '-' to '.' in the snapshot version string,
36073         e.g., 6.9-377-08144 -> 6.9.377-08144
36074         Remove first parameter.
36075         Don't declare a version "-dirty" merely because a time
36076         stamp has changed.
36077
36078 2007-11-04  Bruno Haible  <bruno@clisp.org>
36079
36080         * lib/lock.h: Protect all macro definitions containing an 'if'
36081         statement through a "do { ... } while (0)".
36082         * lib/tls.h: Likewise.
36083
36084 2007-11-04  Bruno Haible  <bruno@clisp.org>
36085
36086         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36087
36088 2007-11-04  Bruno Haible  <bruno@clisp.org>
36089
36090         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36091         * modules/fprintf-posix (Depends-on): Add nocrash.
36092         * modules/snprintf-posix (Depends-on): Likewise.
36093         * modules/sprintf-posix (Depends-on): Likewise.
36094         * modules/vasnprintf-posix (Depends-on): Likewise.
36095         * modules/vasprintf-posix (Depends-on): Likewise.
36096         * modules/vfprintf-posix (Depends-on): Likewise.
36097         * modules/vsnprintf-posix (Depends-on): Likewise.
36098         * modules/vsprintf-posix (Depends-on): Likewise.
36099         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36100         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36101         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36102         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36103         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36104         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36105         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36106
36107 2007-11-04  Bruno Haible  <bruno@clisp.org>
36108
36109         * modules/nocrash: New file.
36110         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36111         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36112
36113 2007-11-04  Bruno Haible  <bruno@clisp.org>
36114
36115         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36116         precision handling.
36117         * tests/test-vasprintf-posix.c (test_function): Likewise.
36118         * tests/test-snprintf-posix.h (test_function): Likewise.
36119         * tests/test-sprintf-posix.h (test_function): Likewise.
36120
36121         Fix *printf behaviour for large precisions on mingw and BeOS.
36122         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36123         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36125         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36127         gl_PRINTF_PRECISION and test its result. Invoke
36128         gl_PREREQ_VASNPRINTF_PRECISION.
36129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36135         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36136         * doc/functions/fprintf.texi: Update.
36137         * doc/functions/printf.texi: Update.
36138         * doc/functions/snprintf.texi: Update.
36139         * doc/functions/sprintf.texi: Update.
36140         * doc/functions/vfprintf.texi: Update.
36141         * doc/functions/vprintf.texi: Update.
36142         * doc/functions/vsnprintf.texi: Update.
36143         * doc/functions/vsprintf.texi: Update.
36144
36145 2007-11-04  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36148
36149 2007-11-04  Bruno Haible  <bruno@clisp.org>
36150
36151         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36152         Reported by Sylvain Beucler <beuc@gnu.org>.
36153
36154 2007-11-03  Bruno Haible  <bruno@clisp.org>
36155
36156         * tests/test-fprintf-posix2.sh: New file.
36157         * tests/test-fprintf-posix2.c: New file.
36158         * modules/fprintf-posix-tests (Files): Add them.
36159         (TESTS): Add test-fprintf-posix2.sh.
36160         (configure.ac): Check for getrlimit and setrlimit.
36161         (check_PROGRAMS): Add test-fprintf-posix2.
36162
36163         * tests/test-printf-posix2.sh: New file.
36164         * tests/test-printf-posix2.c: New file.
36165         * modules/printf-posix-tests (Files): Add them.
36166         (TESTS): Add test-printf-posix2.sh.
36167         (configure.ac): Check for getrlimit and setrlimit.
36168         (check_PROGRAMS): Add test-printf-posix2.
36169
36170         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36171         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36172         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36173         (decode_double): New function, copied from decode_long_double.
36174         (scale10_round_decimal_decoded): New function, extracted from
36175         scale10_round_decimal_long_double.
36176         (scale10_round_decimal_long_double): Use it.
36177         (scale10_round_decimal_double): New function.
36178         (floorlog10): New function.
36179         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36181         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36183         gl_PRINTF_ENOMEM and test its result. Invoke
36184         gl_PREREQ_VASNPRINTF_ENOMEM.
36185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36192         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36193         * modules/snprintf-posix (Depends-on): Likewise.
36194         * modules/sprintf-posix (Depends-on): Likewise.
36195         * modules/vasnprintf-posix (Depends-on): Likewise.
36196         * modules/vasprintf-posix (Depends-on): Likewise.
36197         * modules/vfprintf-posix (Depends-on): Likewise.
36198         * modules/vsnprintf-posix (Depends-on): Likewise.
36199         * modules/vsprintf-posix (Depends-on): Likewise.
36200         * doc/functions/fprintf.texi: Update.
36201         * doc/functions/printf.texi: Update.
36202         * doc/functions/snprintf.texi: Update.
36203         * doc/functions/sprintf.texi: Update.
36204         * doc/functions/vfprintf.texi: Update.
36205         * doc/functions/vprintf.texi: Update.
36206         * doc/functions/vsnprintf.texi: Update.
36207         * doc/functions/vsprintf.texi: Update.
36208
36209 2007-11-03  Bruno Haible  <bruno@clisp.org>
36210
36211         * modules/frexp-nolibm-tests: New file.
36212
36213         * modules/frexp-nolibm: New file.
36214         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36215
36216 2007-11-03  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36219         value is C99 compliant.
36220         Needed for OSF/1 5.1.
36221
36222 2007-11-03  Bruno Haible  <bruno@clisp.org>
36223
36224         Fix out-of-memory handling of vasnprintf.
36225         * lib/printf-parse.c: Include <errno.h>.
36226         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36227         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36228         is already set.
36229
36230 2007-11-02  Eric Blake  <ebb9@byu.net>
36231
36232         Fix tests on cygwin.
36233         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36234
36235 2007-11-01  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36238         warning.
36239         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36240         needed for POSIX compatibility.
36241
36242 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36243
36244         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36245         for compatibility with GNU.
36246
36247 2007-11-01  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36250         (putenv): Renamed from rpl_putenv. Change argument type from
36251         'const char *' to 'char *'.
36252         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36253         of defining putenv in config.h, just set REPLACE_PUTENV.
36254         * modules/putenv (Depends-on): Add stdlib.
36255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36256         (Include): Use <stdlib.h>.
36257         * lib/stdlib.in.h (putenv): New declaration.
36258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36259         REPLACE_PUTENV.
36260         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36261         REPLACE_PUTENV.
36262         Needed for MacOS X 10.5.0.
36263         Reported by Peter O'Gorman <peter@pogma.com>.
36264
36265 2007-11-01  Jim Meyering  <meyering@redhat.com>
36266
36267         Treat an empty date string exactly like "0".
36268         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36269         if the remaining date string (to be parsed) is empty, use "0".
36270         Reported by Mischa Molhoek and discussed in this thread:
36271         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36272
36273 2007-10-31  Bruno Haible  <bruno@clisp.org>
36274
36275         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36276         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36277         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36278         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36279         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36280         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36281
36282 2007-10-31  Bruno Haible  <bruno@clisp.org>
36283
36284         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36285         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36286         (AC_TYPE_LONG_LONG_INT): Use it.
36287         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36288         it as well.
36289         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36290         to m4/longlong.m4.
36291         * modules/stdint (Files): Remove m4/ulonglong.m4.
36292         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36293         m4/ulonglong.m4.
36294         * modules/strtoumax (Files): Likewise.
36295
36296 2007-10-30  Bruno Haible  <bruno@clisp.org>
36297
36298         * modules/xvasprintf-posix: New file.
36299         Suggested by Eric Blake.
36300
36301 2007-10-30  Bruno Haible  <bruno@clisp.org>
36302
36303         * modules/xprintf-posix-tests: New file.
36304         * tests/test-xprintf-posix.sh: New file.
36305         * tests/test-xprintf-posix.c: New file.
36306         * tests/test-xfprintf-posix.c: New file.
36307
36308         * modules/xprintf-posix: New file.
36309
36310 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36311
36312         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36313         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36314         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36315
36316 2007-10-29  Bruno Haible  <bruno@clisp.org>
36317
36318         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36319         contain the special marker '_cv_'.
36320         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36321         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36322         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36323         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36324         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36325         Reported by Ralf Wildenhues.
36326
36327 2007-10-29  Bruno Haible  <bruno@clisp.org>
36328
36329         * gnulib-tool (func_import): When --lgpl is not specified, set
36330         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36331         GPLv3.
36332         Reported by Simon Josefsson.
36333
36334 2007-10-28  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36337         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36338         HAVE_DECL_ISFINITE.
36339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36340         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36341         HAVE_DECL_ISFINITE.
36342
36343 2007-10-28  Bruno Haible  <bruno@clisp.org>
36344
36345         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36346         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36347
36348 2007-10-28  Bruno Haible  <bruno@clisp.org>
36349
36350         Fix link errors with Sun C 5.0 on Solaris 10.
36351         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36352         function is declared but not present in the compiler's libm.
36353         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36354         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36355         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36356         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36357         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36358         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36359         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36361         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36362         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36363         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36364         HAVE_DECL_FLOORL.
36365
36366 2007-10-28  Bruno Haible  <bruno@clisp.org>
36367
36368         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36369         gl_FUNC_FLOORL. Cache the result.
36370         (gl_FUNC_FLOORL): Use it.
36371         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36372         gl_FUNC_CEILL. Cache the result.
36373         (gl_FUNC_CEILL): Use it.
36374
36375         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36376         gl_FUNC_FLOOR. Cache the result.
36377         (gl_FUNC_FLOOR): Use it.
36378         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36379         gl_FUNC_CEIL. Cache the result.
36380         (gl_FUNC_CEIL): Use it.
36381
36382         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36383         gl_FUNC_FLOORF. Cache the result.
36384         (gl_FUNC_FLOORF): Use it.
36385         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36386         gl_FUNC_CEILF. Cache the result.
36387         (gl_FUNC_CEILF): Use it.
36388
36389 2007-10-28  Bruno Haible  <bruno@clisp.org>
36390
36391         * gnulib-tool: Allow specifying the LGPL version number through
36392         --lgpl=2 or --lgpl=3.
36393         (func_usage): Document --lgpl with argument.
36394         Handle --lgpl=... arguments.
36395         (func_import): Recognize also gl_LGPL calls with an argument. When
36396         --lgpl=2 is used and the module's license is just LGPL, report an
36397         error. Set sed_transform_lib_file according to the lgpl variable. In
36398         the generated files, use --lgpl or gl_LGPL invocations with argument,
36399         if necessary.
36400         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36401         an LGPv2+ license.
36402         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36403         gl_LGPL macro.
36404
36405 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36406             Bruno Haible  <bruno@clisp.org>
36407
36408         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36409         (u16_uctomb_aux): Likewise.
36410         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36411         !HAVE_INLINE.
36412         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36413
36414 2007-10-28  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36417         Invoke AM_GETTEXT_OPTION if it exists.
36418         * modules/vasprintf: Likewise.
36419         * modules/verror: Likewise.
36420         * modules/xprintf: Likewise.
36421         * modules/xvasprintf: Likewise.
36422
36423 2007-10-27  Ben Pfaff  <blp@gnu.org>
36424
36425         * lib/math.in.h: Define isfinite macro and prototypes for
36426         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36427         implementations.
36428         * m4/math_h.m4: New substitutions for isfinite module.
36429         * lib/isfinite.c: New file.
36430         * m4/isfinite.m4: New file.
36431         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36432         * modules/isfinite: New file.
36433         * modules/isfinite-tests: New file.
36434         * tests/tests-isfinite.c: New file.
36435         * doc/functions/isfinite.texi: Mention isfinite module.
36436         * MODULES.html.sh: Mention new module.
36437
36438 2007-10-27  Ben Pfaff  <blp@gnu.org>
36439
36440         Ralf Wildenhues reported that Tru64 4.0D declares the round
36441         functions but does not have definitions.
36442         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36443         cannot be found in any library, set the output variable to
36444         "missing" instead of "".
36445         * m4/round.m4: Also use our substitute if we cannot find round in
36446         any library, even if it is declared.
36447         * m4/roundf.m4: Likewise for roundf.
36448         * m4/roundl.m4: Likewise for roundl.
36449         * lib/math.in.h: Undefine roundf, round, roundl before defining
36450         their replacements, to allow for hypothetical systems where these
36451         may be defined as macros but not available in libraries.
36452
36453 2007-10-27  Bruno Haible  <bruno@clisp.org>
36454
36455         * doc/gnulib.texi: Invoke @firstparagraphindent.
36456         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36457         changes in gnulib.
36458         (Source changes): New section.
36459
36460 2007-10-26  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36463         borrowed from autoconf.
36464
36465 2007-10-26  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36468         strerror returned the empty string. Needed on HP-UX 11.00.
36469
36470 2007-10-24  Micah Cowan  <micah@cowan.name>
36471
36472         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36473         * build-aux/bootstrap: Remove support for now-unnecessary option,
36474         --cvs-user, and envvars CVS_USER, CVS_RSH.
36475
36476 2007-10-24  Jim Meyering  <meyering@redhat.com>
36477
36478         Avoid diagnostics from sha1sum when there is no cached checksum.
36479         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36480         if the po.s1 file hasn't been created yet.
36481
36482         * build-aux/bootstrap: Sync from coreutils:
36483         2007-10-24  Jim Meyering  <meyering@redhat.com>
36484         Get gnulib from the git repository, not from an obsolete cvs one.
36485         * build-aux/bootstrap: Suggestion from Micah Cowan.
36486         2007-10-04  Jim Meyering  <jim@meyering.net>
36487         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36488         (update_po_files): Work also when there are no .po files in po/.
36489
36490 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36491
36492         * README: Append ".git" to git and cg examples.
36493         Problem reported by Benoit Sigoure.
36494
36495 2007-10-23  Micah Cowan  <micah@cowan.name>
36496
36497         * users.txt: Add wget.
36498
36499 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36500
36501         Fix linking of some unistdio tests on FreeBSD.
36502         * modules/unistdio/u16-vsnprintf-tests
36503         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36504         * modules/unistdio/u16-vsprintf-tests
36505         (test_u16_vsnprintf1_LDADD): Likewise.
36506         * modules/unistdio/u32-vsnprintf-tests
36507         (test_u32_vsnprintf1_LDADD): Likewise.
36508         * modules/unistdio/u32-vsprintf-tests
36509         (test_u32_vsprintf1_LDADD): Likewise.
36510         * modules/unistdio/u8-vsnprintf-tests
36511         (test_u8_vsnprintf1_LDADD): Likewise.
36512         * modules/unistdio/u8-vsprintf-tests
36513         (test_u8_vsprintf1_LDADD): Likewise.
36514         * modules/unistdio/ulc-vsnprintf-tests
36515         (test_ulc_vsnprintf1_LDADD): Likewise.
36516         * modules/unistdio/ulc-vsprintf-tests
36517         (test_ulc_vsprintf1_LDADD): Likewise.
36518
36519         Fix linking of some uniconv tests on FreeBSD.
36520         * modules/uniconv/u16-conv-from-enc-tests
36521         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36522         * modules/uniconv/u16-conv-to-enc-tests
36523         (test_u16_conv_to_enc_LDADD): Likewise.
36524         * modules/uniconv/u16-strconv-from-enc-tests
36525         (test_u16_strconv_from_enc_LDADD): Likewise.
36526         * modules/uniconv/u16-strconv-to-enc-tests
36527         (test_u16_strconv_to_enc_LDADD): Likewise.
36528         * modules/uniconv/u32-conv-from-enc-tests
36529         (test_u32_conv_from_enc_LDADD): Likewise.
36530         * modules/uniconv/u32-conv-to-enc-tests
36531         (test_u32_conv_to_enc_LDADD): Likewise.
36532         * modules/uniconv/u32-strconv-from-enc-tests
36533         (test_u32_strconv_from_enc_LDADD): Likewise.
36534         * modules/uniconv/u32-strconv-to-enc-tests
36535         (test_u32_strconv_to_enc_LDADD): Likewise.
36536         * modules/uniconv/u8-conv-from-enc-tests
36537         (test_u8_conv_from_enc_LDADD): Likewise.
36538         * modules/uniconv/u8-conv-to-enc-tests
36539         (test_u8_conv_to_enc_LDADD): Likewise.
36540         * modules/uniconv/u8-strconv-from-enc-tests
36541         (test_u8_strconv_from_enc_LDADD): Likewise.
36542         * modules/uniconv/u8-strconv-to-enc-tests
36543         (test_u8_strconv_to_enc_LDADD): Likewise.
36544
36545 2007-10-22  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36548         size.
36549
36550 2007-10-22  Eric Blake  <ebb9@byu.net>
36551
36552         Tweak x*printf documentation.
36553         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36554         variable name and comments.
36555         Suggested by Bruno Haible.
36556
36557 2007-10-22  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/acl.c (copy_acl): Fix file name in comment.
36560
36561 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36562
36563         Fix Tru64 problem with stdbool.h.
36564         * lib/stdbool.in.h (false, true):
36565         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36566         Don't declare as an enum in this situation; it runs afoul of Tru64.
36567         Problem reported by Steven M. Schweda in
36568         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36569
36570 2007-10-22  Eric Blake  <ebb9@byu.net>
36571
36572         Also wrap vf?printf.
36573         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36574         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36575         (xvprintf, xvfprintf): New functions.
36576
36577 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36578
36579         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36580         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36581
36582         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36583         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36584
36585 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36586
36587         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36588         by Bruno Haible.
36589
36590 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36591
36592         * lib/getloadavg.c
36593         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36594         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36595
36596         * tests/test-i-ring.c: Work for C89.
36597
36598 2007-10-22  Bruno Haible  <bruno@clisp.org>
36599
36600         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36601         -1u, in preprocessor expression, so that we don't test for the bug
36602         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36604
36605 2007-10-22  Eric Blake  <ebb9@byu.net>
36606
36607         * tests/test-yesno.sh: Silence stderr during test.
36608
36609 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36610
36611         * modules/crypto/gc-camellia: New file.
36612
36613         * m4/gc-camellia.m4: New file.
36614
36615         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36616
36617         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36618
36619 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36620
36621         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36622         --help to stdout.  Reported by sms@antinode.org (Steven
36623         M. Schweda).
36624
36625 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36626
36627         * users.txt: Fix link to libksba.
36628
36629 2007-10-21  Ben Pfaff  <blp@gnu.org>
36630
36631         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36632         round.c roundf implementation that depends on floorf and ceilf to
36633         be tested unconditionally.
36634
36635 2007-10-21  Ben Pfaff  <blp@gnu.org>
36636
36637         * m4/check-libm-func.m4: Removed.
36638         * m4/check-math-lib.m4: New file.
36639         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36640         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36641         definition and lack of AC_LIBOBJ([roundf]).
36642         * m4/roundl.m4: Ditto, and similarly for roundl.
36643         * modules/round: Reference new m4 file.
36644         * modules/roundf: Ditto.
36645         * modules/roundl: Ditto.
36646         * tests/test-round2.c (main): Use ROUND instead of round.
36647         Bug report from Bruno Haible.
36648
36649 2007-10-21  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36652         context.
36653
36654 2007-10-21  Bruno Haible  <bruno@clisp.org>
36655
36656         * tests/test-wcwidth.c (main): Allow negative result for some control
36657         characters.
36658
36659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36660         Needed on OSF/1 5.1.
36661
36662 2007-10-21  Bruno Haible  <bruno@clisp.org>
36663
36664         * tests/test-floorf1.c: Include isnanf.h.
36665         (main): Use isnanf() instead of isnan().
36666         * tests/test-ceilf1.c: Include isnanf.h.
36667         (main): Use isnanf() instead of isnan().
36668         * tests/test-truncf1.c: Include isnanf.h.
36669         (main): Use isnanf() instead of isnan().
36670         * tests/test-roundf1.c: Include isnanf.h.
36671         (main): Use isnanf() instead of isnan().
36672
36673 2007-10-21  Eric Blake  <ebb9@byu.net>
36674
36675         * users.txt: Update URL for m4.
36676
36677 2007-10-21  Bruno Haible  <bruno@clisp.org>
36678
36679         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36680
36681 2007-10-21  Bruno Haible  <bruno@clisp.org>
36682
36683         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36684         Git's management files if the CVS files are not present.
36685
36686 2007-10-20  Bruno Haible  <bruno@clisp.org>
36687
36688         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36689         gcc-3.4.x.
36690
36691 2007-10-20  Ben Pfaff  <blp@gnu.org>
36692
36693         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36694         implementations.
36695         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36696         * lib/round.c: New file.
36697         * lib/roundf.c: New file.
36698         * lib/roundl.c: New file.
36699         * m4/round.m4: New file.
36700         * m4/roundf.m4: New file.
36701         * m4/roundl.m4: New file.
36702         * m4/check-libm-func-m4: New file.
36703         * modules/math: Replace round, roundf, roundl related @VARS@ in
36704         math.in.h.
36705         * modules/round: New file.
36706         * modules/round-tests: New file.
36707         * modules/roundf: New file.
36708         * modules/roundf-tests: New file.
36709         * modules/roundl: New file.
36710         * modules/roundl-tests: New file.
36711         * tests/test-round1.c: New file.
36712         * tests/test-round2.c: New file.
36713         * tests/test-roundf1.c: New file.
36714         * tests/test-roundf2.c: New file.
36715         * tests/test-roundl.c: New file.
36716         * doc/functions/round.texi: Mention round module.
36717         * doc/functions/roundf.texi: Mention roundf module.
36718         * doc/functions/roundl.texi: Mention roundl module.
36719         * MODULES.html.sh: Mention new modules.
36720         Thanks to Bruno Haible for suggestions.
36721
36722 2007-10-20  Jim Meyering  <meyering@redhat.com>
36723
36724         * lib/xprintf.c: Include <config.h> unconditionally.
36725
36726         Change xprintf's license to GPL.
36727         * modules/xprintf (License): s/LGPL/GPL/, since this module
36728         depends on modules (exit and exitfail) which are GPL.
36729         Suggestion from Bruno Haible.
36730
36731         xprintf fixes.
36732         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36733         Use a clearer diagnostic.
36734         Patch from Bruno Haible.
36735
36736 2007-10-20  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36739         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36741
36742 2007-10-20  Bruno Haible  <bruno@clisp.org>
36743
36744         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36745         precision in the comparison result > x - 1 or similar.
36746         * tests/test-ceilf2.c (correct_result_p): Likewise.
36747         * tests/test-truncf2.c (correct_result_p): Likewise.
36748         * tests/test-trunc2.c (correct_result_p): Likewise.
36749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36750
36751 2007-10-20  Bruno Haible  <bruno@clisp.org>
36752
36753         * modules/ceil: New file.
36754         * m4/ceil.m4: New file.
36755         * doc/functions/ceil.texi: Mention the 'ceil' module.
36756
36757 2007-10-20  Bruno Haible  <bruno@clisp.org>
36758
36759         * modules/floor: New file.
36760         * m4/floor.m4: New file.
36761         * doc/functions/floor.texi: Mention the 'floor' module.
36762
36763 2007-10-20  Bruno Haible  <bruno@clisp.org>
36764
36765         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36766         of %a.
36767         * modules/floorf-tests (Depends-on): Likewise.
36768         * modules/truncf-tests (Depends-on): Likewise.
36769         * modules/trunc-tests (Depends-on): Likewise.
36770         Reported by Ben Pfaff.
36771
36772 2007-10-19  Jim Meyering  <meyering@redhat.com>
36773
36774         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36775         Don't bother testing specific errno values.  Just test ferror.
36776
36777         New module: xprintf
36778         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36779
36780 2007-10-19  Bruno Haible  <bruno@clisp.org>
36781
36782         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36783         syntax.
36784         * modules/javaexec (Makefile.am): Likewise.
36785         * modules/relocatable-prog (Makefile.am): Likewise.
36786         Suggested by Jim Meyering.
36787
36788 2007-10-18  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36791         Reported by Jim Meyering.
36792
36793 2007-10-18  Eric Blake  <ebb9@byu.net>
36794
36795         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36796
36797 2007-10-18  Bruno Haible  <bruno@clisp.org>
36798
36799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36800         the format string into writable memory. Needed in Fortify conditions.
36801
36802 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36803             Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36806         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36807         * modules/trim (Depends-on): Add mbchar.
36808         (configure.ac): Add gl_FUNC_MBRTOWC.
36809         (Makefile.am): Augment lib_SOURCES.
36810
36811 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36812
36813         Modify glob.c to use fstatat and dirfd, to simplify it.
36814         Suggested by Eric Blake.
36815         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36816         Don't include <stdbool.h>; not used.
36817         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36818         (link_exists_p): Simplify implementation, since we can now assume
36819         dirfd and fstatat.
36820         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36821
36822 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36823
36824         * gnulib-tool (func_get_dependencies): Fix sed script to
36825         match only tests.
36826
36827 2007-10-17  Bruno Haible  <bruno@clisp.org>
36828
36829         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36830         allow locale names without encoding suffix.
36831         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36832         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36833
36834 2007-10-16  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36837         * lib/getgroups.c (getgroups): Likewise.
36838         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36839
36840 2007-10-16  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36843         * modules/malloc-posix (License): Likewise.
36844         * modules/realloc-posix (License): Likewise.
36845         * modules/calloc-posix (License): Likewise.
36846         * modules/intprops (License): Change from GPL to LGPL, with
36847         Paul Eggert's approval.
36848
36849 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36850
36851         Merge glibc changes into lib/glob.c.
36852
36853         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36854         2007-10-15 04:59:03 UTC.  Here are the changes:
36855
36856         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36857
36858         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36859
36860         * lib/glob.c: Add some branch prediction throughout.
36861
36862         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36863
36864         [BZ #5103]
36865         * lib/glob.c (glob): Recognize patterns starting \/.
36866
36867         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36868
36869         [BZ #3996]
36870         * lib/glob.c (attribute_hidden): Define if not defined.
36871         (glob): Unescape dirname, filename or username when needed and not
36872         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36873         is NULL.  Handle unescaped [ in pattern without closing ].
36874         Don't pass GLOB_CHECK down to recursive glob for directories.
36875         (__glob_pattern_type): New function.
36876         (__glob_pattern_p): Implement using __glob_pattern_type.
36877         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36878         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36879         Remove unreachable code.
36880
36881         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36882
36883         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36884         explain why there are no leaks.
36885
36886         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36887
36888         [BZ #3253]
36889         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36890         time, rather allocate increasingly bigger arrays of pointers, if
36891         possible with alloca, if too large with malloc.
36892
36893 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36894
36895         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36896         Problem reported by H.Merijn Brand in
36897         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36898         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36899         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36900
36901 2007-10-15  Bruno Haible  <bruno@clisp.org>
36902
36903         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36904         with explicit rpl_ prefix.
36905         * lib/fopen.c (fopen): Likewise.
36906         * lib/freopen.c (freopen): Likewise.
36907         * lib/iconv.c (iconv): Likewise.
36908         * lib/iconv_close.c (iconv_close): Likewise.
36909
36910 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36911
36912         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36913
36914 2007-10-15  Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36917         <stddef.h> instead of <stdlib.h> since we only need NULL.
36918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36919
36920 2007-10-15  Bruno Haible  <bruno@clisp.org>
36921
36922         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36923         Replace paragraph talking about LIBOBJS.
36924         Reported by Colin Watson <cjwatson@debian.org>.
36925
36926 2007-10-15  Bruno Haible  <bruno@clisp.org>
36927
36928         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36929         <stdlib.h> before using NULL.
36930
36931 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36932
36933         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36934         Reported by Albert Chin <china@thewrittenword.com>.
36935
36936 2007-10-14  Bruno Haible  <bruno@clisp.org>
36937
36938         * modules/iconv_open-utf-tests: New file.
36939         * tests/test-iconv-utf.c: New file.
36940
36941         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36942         * modules/iconv_open-utf: New file.
36943         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36944         (iconv, iconv_close): New declarations.
36945         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36946         be defined.
36947         (iconv_open): Add special handling of conversion between UTF-8 and
36948         UTF-{16,32}{BE,LE}.
36949         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36950         * lib/iconv_close.c: New file.
36951         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36952         gl_FUNC_ICONV_OPEN.
36953         (gl_FUNC_ICONV_OPEN): Use it.
36954         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36955         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36956         and REPLACE_ICONV_UTF.
36957         * modules/iconv_open (Depends-on): Add c-strcase.
36958         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36959         ICONV_CONST.
36960         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36961
36962 2007-10-13  Albert Chin  <china@thewrittenword.com>
36963             Bruno Haible  <bruno@clisp.org>
36964
36965         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36966         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36967
36968 2007-10-13  Bruno Haible  <bruno@clisp.org>
36969
36970         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36971         defined, use the ISO C99 inline semantics.
36972         * lib/argp.h (ARGP_EI): Likewise.
36973
36974 2007-10-13  Bruno Haible  <bruno@clisp.org>
36975
36976         Handle 'inline' change in gcc 4.3.0.
36977         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36978         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36979         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36980         argp_fmtstream_point): Disable 'extern' declaration if the function
36981         definition is going to be provided inline.
36982         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36983         semantics, not the ISO C99 inline semantics.
36984         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36985         'extern' declaration if the function definition is going to be provided
36986         inline.
36987         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36988         the GNU C inline semantics, not the ISO C99 inline semantics. With
36989         GCC 4.2, avoid a warning.
36990
36991 2007-10-13  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/freading.h (freading): Enable the use of __freading for
36994         glibc >= 2.7.
36995         * lib/freading.c (freading): Likewise.
36996
36997 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36998
36999         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37000         "warning: C99 inline functions are not supported; using GNU89".
37001
37002 2007-10-12  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37005         of 2.
37006         * tests/test-ceilf2.c: New file.
37007         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37008
37009         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37010         * modules/ceilf-tests: Update.
37011
37012 2007-10-12  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37015         of 2.
37016         * tests/test-floorf2.c: New file.
37017         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37018
37019         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37020         * modules/floorf-tests: Update.
37021
37022 2007-10-12  Bruno Haible  <bruno@clisp.org>
37023
37024         * tests/test-trunc2.c: New file.
37025         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37026
37027         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37028         * modules/trunc-tests: Update.
37029
37030 2007-10-12  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37033         of 2.
37034         * tests/test-truncf2.c: New file.
37035         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37036
37037         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37038         * modules/truncf-tests: Update.
37039
37040 2007-10-11  Eric Blake  <ebb9@byu.net>
37041
37042         Don't claim strerror is broken on Interix.
37043         * doc/functions/strerror.texi (strerror): Known broken systems are
37044         now Solaris 8, and not Interix.
37045         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37046         Interix on cross-compile.
37047         Reported by Martin Koeppe in
37048         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37049
37050 2007-10-11  Bruno Haible  <bruno@clisp.org>
37051
37052         * modules/i-ring-tests: New file.
37053         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37054         instead of assert.
37055
37056 2007-10-11  Bruno Haible  <bruno@clisp.org>
37057
37058         * modules/filenamecat-tests: New file.
37059         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37060         * lib/filenamecat.c: Remove test code.
37061
37062 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37063
37064         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37065
37066         * lib/strerror.c: Include <string.h> always, to test interface,
37067         and to remove the need for the dummy.
37068         Include intprops.h to compute width instead of doing it ourselves
37069         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37070         (strerror): Define it to return NULL if there's no system strerror.
37071         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37072         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37073         ancient pre-strerror Unix systems well any more.  Saying "unknown
37074         system error" is enough.
37075         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37076         simpler strerror.c implementation.
37077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37078         Simplify the tests to reflect the simpler strerror implementation.
37079         * modules/strerror (Depends-on): Add intprops.
37080
37081 2007-10-09  Eric Blake  <ebb9@byu.net>
37082
37083         Silence test-fpending.
37084         * modules/fpending-tests (Files): Add wrapper script.
37085         * tests/test-fpending.sh: New file.
37086
37087 2007-10-09  Bruno Haible  <bruno@clisp.org>
37088
37089         * MODULES.html.sh (func_module): Don't create a hyperlink for
37090         function names like 'printf_frexp'.
37091         (Misc): Add crc, memxor.
37092         (Characteristics of floating types): New section.
37093         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37094         isnanf-nolibm, signbit, trunc, truncf, truncl.
37095         (Enhancements for ISO C 99 functions): New subsection Input/output.
37096         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37097         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37098         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37099         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37100         (Enhancements for POSIX:2001 functions): Add chdir-long.
37101         (File system functions): Add areadlink, chdir-safer, read-file.
37102         Remove cycle-check.
37103         (File system as inode set): New section.
37104         (Date and time): Add gethrxtime.
37105         (Multithreading): Add openmp.
37106         (Internationalization functions): Add localename.
37107         (Unicode string functions): Add unistr/u*-mbsnlen.
37108         (Support for maintaining and releasing projects): Add git-version-gen.
37109         (Lone files): Remove directories.
37110
37111 2007-10-08  Ben Pfaff  <blp@gnu.org>
37112
37113         * lib/xmalloca.h: Fix typo in comment.
37114
37115 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37116
37117         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37118         when avoiding problems with integer overflow.  Use a portable test
37119         instead.
37120
37121 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37122
37123         * modules/dummy (License): Change to LGPLv2+.
37124         * modules/float (License): Likewise
37125         * modules/realloc (License): Likewise
37126         * modules/stdlib (License): Likewise
37127
37128 2007-10-07  Bruno Haible  <bruno@clisp.org>
37129
37130         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37131         * floor.c (TWO_MANT_DIG): Likewise.
37132         * ceil.c (TWO_MANT_DIG): Likewise.
37133         Reported by Ben Pfaff.
37134
37135 2007-10-07  Bruno Haible  <bruno@clisp.org>
37136
37137         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37138         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37139         * lib/frexp.c (FUNC): Likewise.
37140         * lib/printf-frexp.h (printf_frexp): Likewise.
37141         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37142         * lib/printf-frexp.c (FUNC): Likewise.
37143         Suggested by Jim Meyering.
37144
37145 2007-10-07  Jim Meyering  <meyering@redhat.com>
37146
37147         Make xnanosleep's integer overflow test more robust.
37148         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37149         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37150
37151 2007-10-07  Bruno Haible  <bruno@clisp.org>
37152
37153         * NEWS: Mention the license change.
37154
37155         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37156         abbreviations in the modules files.
37157
37158         Change copyright notice from GPLv2+ to GPLv3+.
37159         * README: Change copyright notice.
37160         * MODULES.html.sh: Likewise.
37161         * build-aux/bootstrap.conf: Likewise.
37162         * build-aux/config.libpath: Likewise.
37163         * build-aux/csharpcomp.sh.in: Likewise.
37164         * build-aux/csharpexec.sh.in: Likewise.
37165         * build-aux/install-reloc: Likewise.
37166         * build-aux/javacomp.sh.in: Likewise.
37167         * build-aux/javaexec.sh.in: Likewise.
37168         * build-aux/ldd.sh.in: Likewise.
37169         * build-aux/reloc-ldflags: Likewise.
37170         * build-aux/relocatable.sh.in: Likewise.
37171         * build-aux/x-to-1.in: Likewise.
37172         * check-module: Likewise.
37173         * config/srclistvars.sh: Likewise.
37174         * gnulib-tool: Likewise.
37175         * lib/acl-internal.h: Likewise.
37176         * lib/acl.c: Likewise.
37177         * lib/acl.h: Likewise.
37178         * lib/acl_entries.c: Likewise.
37179         * lib/areadlink-with-size.c: Likewise.
37180         * lib/areadlink.c: Likewise.
37181         * lib/areadlink.h: Likewise.
37182         * lib/argmatch.c: Likewise.
37183         * lib/argmatch.h: Likewise.
37184         * lib/argp-ba.c: Likewise.
37185         * lib/argp-eexst.c: Likewise.
37186         * lib/argp-fmtstream.c: Likewise.
37187         * lib/argp-fmtstream.h: Likewise.
37188         * lib/argp-fs-xinl.c: Likewise.
37189         * lib/argp-help.c: Likewise.
37190         * lib/argp-namefrob.h: Likewise.
37191         * lib/argp-parse.c: Likewise.
37192         * lib/argp-pin.c: Likewise.
37193         * lib/argp-pv.c: Likewise.
37194         * lib/argp-pvh.c: Likewise.
37195         * lib/argp-xinl.c: Likewise.
37196         * lib/argp.h: Likewise.
37197         * lib/at-func.c: Likewise.
37198         * lib/atanl.c: Likewise.
37199         * lib/backupfile.c: Likewise.
37200         * lib/backupfile.h: Likewise.
37201         * lib/basename.c: Likewise.
37202         * lib/binary-io.h: Likewise.
37203         * lib/byteswap.in.h: Likewise.
37204         * lib/c-stack.c: Likewise.
37205         * lib/c-stack.h: Likewise.
37206         * lib/c-strcasestr.c: Likewise.
37207         * lib/c-strcasestr.h: Likewise.
37208         * lib/c-strstr.c: Likewise.
37209         * lib/c-strstr.h: Likewise.
37210         * lib/c-strtod.c: Likewise.
37211         * lib/calloc.c: Likewise.
37212         * lib/canon-host.c: Likewise.
37213         * lib/canon-host.h: Likewise.
37214         * lib/canonicalize-lgpl.c: Likewise.
37215         * lib/canonicalize.c: Likewise.
37216         * lib/canonicalize.h: Likewise.
37217         * lib/ceil.c: Likewise.
37218         * lib/ceilf.c: Likewise.
37219         * lib/ceill.c: Likewise.
37220         * lib/chdir-long.c: Likewise.
37221         * lib/chdir-long.h: Likewise.
37222         * lib/chdir-safer.c: Likewise.
37223         * lib/chdir-safer.h: Likewise.
37224         * lib/chown.c: Likewise.
37225         * lib/classpath.c: Likewise.
37226         * lib/classpath.h: Likewise.
37227         * lib/clean-temp.c: Likewise.
37228         * lib/clean-temp.h: Likewise.
37229         * lib/cloexec.c: Likewise.
37230         * lib/close-stream.c: Likewise.
37231         * lib/closein.c: Likewise.
37232         * lib/closein.h: Likewise.
37233         * lib/closeout.c: Likewise.
37234         * lib/closeout.h: Likewise.
37235         * lib/concat-filename.c: Likewise.
37236         * lib/copy-file.c: Likewise.
37237         * lib/copy-file.h: Likewise.
37238         * lib/count-one-bits.h: Likewise.
37239         * lib/crc.c: Likewise.
37240         * lib/crc.h: Likewise.
37241         * lib/creat-safer.c: Likewise.
37242         * lib/csharpcomp.c: Likewise.
37243         * lib/csharpcomp.h: Likewise.
37244         * lib/csharpexec.c: Likewise.
37245         * lib/csharpexec.h: Likewise.
37246         * lib/cycle-check.c: Likewise.
37247         * lib/cycle-check.h: Likewise.
37248         * lib/diacrit.c: Likewise.
37249         * lib/diacrit.h: Likewise.
37250         * lib/diffseq.h: Likewise.
37251         * lib/dirchownmod.c: Likewise.
37252         * lib/dirent.in.h: Likewise.
37253         * lib/dirfd.c: Likewise.
37254         * lib/dirfd.h: Likewise.
37255         * lib/dirname.c: Likewise.
37256         * lib/dirname.h: Likewise.
37257         * lib/dummy.c: Likewise.
37258         * lib/dup-safer.c: Likewise.
37259         * lib/dup2.c: Likewise.
37260         * lib/eealloc.h: Likewise.
37261         * lib/error.c: Likewise.
37262         * lib/error.h: Likewise.
37263         * lib/euidaccess.c: Likewise.
37264         * lib/exclude.c: Likewise.
37265         * lib/exclude.h: Likewise.
37266         * lib/execute.c: Likewise.
37267         * lib/execute.h: Likewise.
37268         * lib/exitfail.c: Likewise.
37269         * lib/exitfail.h: Likewise.
37270         * lib/expl.c: Likewise.
37271         * lib/fatal-signal.c: Likewise.
37272         * lib/fatal-signal.h: Likewise.
37273         * lib/fbufmode.c: Likewise.
37274         * lib/fbufmode.h: Likewise.
37275         * lib/fchdir.c: Likewise.
37276         * lib/fchmodat.c: Likewise.
37277         * lib/fchownat.c: Likewise.
37278         * lib/fcntl--.h: Likewise.
37279         * lib/fcntl-safer.h: Likewise.
37280         * lib/fcntl.in.h: Likewise.
37281         * lib/fd-safer.c: Likewise.
37282         * lib/fflush.c: Likewise.
37283         * lib/file-has-acl.c: Likewise.
37284         * lib/file-set.c: Likewise.
37285         * lib/file-type.c: Likewise.
37286         * lib/file-type.h: Likewise.
37287         * lib/fileblocks.c: Likewise.
37288         * lib/filemode.c: Likewise.
37289         * lib/filemode.h: Likewise.
37290         * lib/filename.h: Likewise.
37291         * lib/filenamecat.c: Likewise.
37292         * lib/filenamecat.h: Likewise.
37293         * lib/findprog.c: Likewise.
37294         * lib/findprog.h: Likewise.
37295         * lib/float.in.h: Likewise.
37296         * lib/floor.c: Likewise.
37297         * lib/floorf.c: Likewise.
37298         * lib/floorl.c: Likewise.
37299         * lib/fopen-safer.c: Likewise.
37300         * lib/fopen.c: Likewise.
37301         * lib/fpending.c: Likewise.
37302         * lib/fpending.h: Likewise.
37303         * lib/fprintf.c: Likewise.
37304         * lib/fprintftime.h: Likewise.
37305         * lib/fpucw.h: Likewise.
37306         * lib/fpurge.c: Likewise.
37307         * lib/fpurge.h: Likewise.
37308         * lib/freadable.c: Likewise.
37309         * lib/freadable.h: Likewise.
37310         * lib/freadahead.c: Likewise.
37311         * lib/freadahead.h: Likewise.
37312         * lib/freading.c: Likewise.
37313         * lib/freading.h: Likewise.
37314         * lib/free.c: Likewise.
37315         * lib/freopen.c: Likewise.
37316         * lib/frexp.c: Likewise.
37317         * lib/frexpl.c: Likewise.
37318         * lib/fseek.c: Likewise.
37319         * lib/fseterr.c: Likewise.
37320         * lib/fseterr.h: Likewise.
37321         * lib/fstatat.c: Likewise.
37322         * lib/fstrcmp.c: Likewise.
37323         * lib/fstrcmp.h: Likewise.
37324         * lib/fsusage.c: Likewise.
37325         * lib/fsusage.h: Likewise.
37326         * lib/ftell.c: Likewise.
37327         * lib/ftello.c: Likewise.
37328         * lib/fts-cycle.c: Likewise.
37329         * lib/fts.c: Likewise.
37330         * lib/fts_.h: Likewise.
37331         * lib/full-read.c: Likewise.
37332         * lib/full-read.h: Likewise.
37333         * lib/full-write.c: Likewise.
37334         * lib/full-write.h: Likewise.
37335         * lib/fwritable.c: Likewise.
37336         * lib/fwritable.h: Likewise.
37337         * lib/fwriteerror.c: Likewise.
37338         * lib/fwriteerror.h: Likewise.
37339         * lib/fwriting.c: Likewise.
37340         * lib/fwriting.h: Likewise.
37341         * lib/gcd.c: Likewise.
37342         * lib/gcd.h: Likewise.
37343         * lib/getcwd.c: Likewise.
37344         * lib/getdate.h: Likewise.
37345         * lib/getdate.y: Likewise.
37346         * lib/getdomainname.c: Likewise.
37347         * lib/getdomainname.h: Likewise.
37348         * lib/getgroups.c: Likewise.
37349         * lib/gethostname.c: Likewise.
37350         * lib/gethrxtime.c: Likewise.
37351         * lib/gethrxtime.h: Likewise.
37352         * lib/getloadavg.c: Likewise.
37353         * lib/getndelim2.c: Likewise.
37354         * lib/getndelim2.h: Likewise.
37355         * lib/getnline.c: Likewise.
37356         * lib/getnline.h: Likewise.
37357         * lib/getopt.c: Likewise.
37358         * lib/getopt.in.h: Likewise.
37359         * lib/getopt1.c: Likewise.
37360         * lib/getopt_int.h: Likewise.
37361         * lib/getpagesize.h: Likewise.
37362         * lib/getsubopt.c: Likewise.
37363         * lib/gettime.c: Likewise.
37364         * lib/getugroups.c: Likewise.
37365         * lib/getugroups.h: Likewise.
37366         * lib/getusershell.c: Likewise.
37367         * lib/gl_anyavltree_list1.h: Likewise.
37368         * lib/gl_anyavltree_list2.h: Likewise.
37369         * lib/gl_anyhash_list1.h: Likewise.
37370         * lib/gl_anyhash_list2.h: Likewise.
37371         * lib/gl_anylinked_list1.h: Likewise.
37372         * lib/gl_anylinked_list2.h: Likewise.
37373         * lib/gl_anyrbtree_list1.h: Likewise.
37374         * lib/gl_anyrbtree_list2.h: Likewise.
37375         * lib/gl_anytree_list1.h: Likewise.
37376         * lib/gl_anytree_list2.h: Likewise.
37377         * lib/gl_anytree_oset.h: Likewise.
37378         * lib/gl_anytreehash_list1.h: Likewise.
37379         * lib/gl_anytreehash_list2.h: Likewise.
37380         * lib/gl_array_list.c: Likewise.
37381         * lib/gl_array_list.h: Likewise.
37382         * lib/gl_array_oset.c: Likewise.
37383         * lib/gl_array_oset.h: Likewise.
37384         * lib/gl_avltree_list.c: Likewise.
37385         * lib/gl_avltree_list.h: Likewise.
37386         * lib/gl_avltree_oset.c: Likewise.
37387         * lib/gl_avltree_oset.h: Likewise.
37388         * lib/gl_avltreehash_list.c: Likewise.
37389         * lib/gl_avltreehash_list.h: Likewise.
37390         * lib/gl_carray_list.c: Likewise.
37391         * lib/gl_carray_list.h: Likewise.
37392         * lib/gl_linked_list.c: Likewise.
37393         * lib/gl_linked_list.h: Likewise.
37394         * lib/gl_linkedhash_list.c: Likewise.
37395         * lib/gl_linkedhash_list.h: Likewise.
37396         * lib/gl_list.c: Likewise.
37397         * lib/gl_list.h: Likewise.
37398         * lib/gl_oset.c: Likewise.
37399         * lib/gl_oset.h: Likewise.
37400         * lib/gl_rbtree_list.c: Likewise.
37401         * lib/gl_rbtree_list.h: Likewise.
37402         * lib/gl_rbtree_oset.c: Likewise.
37403         * lib/gl_rbtree_oset.h: Likewise.
37404         * lib/gl_rbtreehash_list.c: Likewise.
37405         * lib/gl_rbtreehash_list.h: Likewise.
37406         * lib/gl_sublist.c: Likewise.
37407         * lib/gl_sublist.h: Likewise.
37408         * lib/group-member.c: Likewise.
37409         * lib/group-member.h: Likewise.
37410         * lib/hard-locale.c: Likewise.
37411         * lib/hard-locale.h: Likewise.
37412         * lib/hash-pjw.c: Likewise.
37413         * lib/hash-pjw.h: Likewise.
37414         * lib/hash-triple.c: Likewise.
37415         * lib/hash.c: Likewise.
37416         * lib/hash.h: Likewise.
37417         * lib/human.c: Likewise.
37418         * lib/human.h: Likewise.
37419         * lib/i-ring.c: Likewise.
37420         * lib/i-ring.h: Likewise.
37421         * lib/idcache.c: Likewise.
37422         * lib/imaxabs.c: Likewise.
37423         * lib/imaxdiv.c: Likewise.
37424         * lib/inet_pton.c: Likewise.
37425         * lib/inet_pton.h: Likewise.
37426         * lib/intprops.h: Likewise.
37427         * lib/inttostr.c: Likewise.
37428         * lib/inttostr.h: Likewise.
37429         * lib/inttypes.in.h: Likewise.
37430         * lib/isapipe.c: Likewise.
37431         * lib/isdir.c: Likewise.
37432         * lib/isnan.c: Likewise.
37433         * lib/isnan.h: Likewise.
37434         * lib/isnanf.c: Likewise.
37435         * lib/isnanf.h: Likewise.
37436         * lib/isnanl-nolibm.h: Likewise.
37437         * lib/isnanl.c: Likewise.
37438         * lib/isnanl.h: Likewise.
37439         * lib/javacomp.c: Likewise.
37440         * lib/javacomp.h: Likewise.
37441         * lib/javaexec.c: Likewise.
37442         * lib/javaexec.h: Likewise.
37443         * lib/javaversion.c: Likewise.
37444         * lib/javaversion.h: Likewise.
37445         * lib/javaversion.java: Likewise.
37446         * lib/lbrkprop.h: Likewise.
37447         * lib/lchmod.h: Likewise.
37448         * lib/lchown.c: Likewise.
37449         * lib/ldexpl.c: Likewise.
37450         * lib/linebreak.c: Likewise.
37451         * lib/linebreak.h: Likewise.
37452         * lib/linebuffer.c: Likewise.
37453         * lib/linebuffer.h: Likewise.
37454         * lib/locale.in.h: Likewise.
37455         * lib/logl.c: Likewise.
37456         * lib/long-options.c: Likewise.
37457         * lib/long-options.h: Likewise.
37458         * lib/lstat.c: Likewise.
37459         * lib/lstat.h: Likewise.
37460         * lib/math.in.h: Likewise.
37461         * lib/mbchar.c: Likewise.
37462         * lib/mbchar.h: Likewise.
37463         * lib/mbfile.h: Likewise.
37464         * lib/mbiter.h: Likewise.
37465         * lib/mbscasecmp.c: Likewise.
37466         * lib/mbscasestr.c: Likewise.
37467         * lib/mbschr.c: Likewise.
37468         * lib/mbscspn.c: Likewise.
37469         * lib/mbslen.c: Likewise.
37470         * lib/mbsncasecmp.c: Likewise.
37471         * lib/mbsnlen.c: Likewise.
37472         * lib/mbspbrk.c: Likewise.
37473         * lib/mbspcasecmp.c: Likewise.
37474         * lib/mbsrchr.c: Likewise.
37475         * lib/mbssep.c: Likewise.
37476         * lib/mbsspn.c: Likewise.
37477         * lib/mbsstr.c: Likewise.
37478         * lib/mbstok_r.c: Likewise.
37479         * lib/mbswidth.c: Likewise.
37480         * lib/mbswidth.h: Likewise.
37481         * lib/mbuiter.h: Likewise.
37482         * lib/memcasecmp.c: Likewise.
37483         * lib/memcasecmp.h: Likewise.
37484         * lib/memchr.c: Likewise.
37485         * lib/memcmp.c: Likewise.
37486         * lib/memcoll.c: Likewise.
37487         * lib/memcoll.h: Likewise.
37488         * lib/memcpy.c: Likewise.
37489         * lib/memrchr.c: Likewise.
37490         * lib/mkancesdirs.c: Likewise.
37491         * lib/mkdir-p.c: Likewise.
37492         * lib/mkdir-p.h: Likewise.
37493         * lib/mkdir.c: Likewise.
37494         * lib/mkdirat.c: Likewise.
37495         * lib/mkdtemp.c: Likewise.
37496         * lib/mkstemp-safer.c: Likewise.
37497         * lib/mkstemp.c: Likewise.
37498         * lib/modechange.c: Likewise.
37499         * lib/modechange.h: Likewise.
37500         * lib/mountlist.c: Likewise.
37501         * lib/mountlist.h: Likewise.
37502         * lib/mpsort.c: Likewise.
37503         * lib/nanosleep.c: Likewise.
37504         * lib/obstack.c: Likewise.
37505         * lib/obstack.h: Likewise.
37506         * lib/open-safer.c: Likewise.
37507         * lib/open.c: Likewise.
37508         * lib/openat-die.c: Likewise.
37509         * lib/openat-priv.h: Likewise.
37510         * lib/openat-proc.c: Likewise.
37511         * lib/openat.c: Likewise.
37512         * lib/openat.h: Likewise.
37513         * lib/pagealign_alloc.c: Likewise.
37514         * lib/pagealign_alloc.h: Likewise.
37515         * lib/physmem.c: Likewise.
37516         * lib/physmem.h: Likewise.
37517         * lib/pipe-safer.c: Likewise.
37518         * lib/pipe.c: Likewise.
37519         * lib/pipe.h: Likewise.
37520         * lib/posixtm.c: Likewise.
37521         * lib/posixtm.h: Likewise.
37522         * lib/posixver.c: Likewise.
37523         * lib/printf-frexp.c: Likewise.
37524         * lib/printf-frexp.h: Likewise.
37525         * lib/printf-frexpl.c: Likewise.
37526         * lib/printf-frexpl.h: Likewise.
37527         * lib/printf.c: Likewise.
37528         * lib/progname.c: Likewise.
37529         * lib/progname.h: Likewise.
37530         * lib/progreloc.c: Likewise.
37531         * lib/putenv.c: Likewise.
37532         * lib/quote.c: Likewise.
37533         * lib/quote.h: Likewise.
37534         * lib/quotearg.c: Likewise.
37535         * lib/quotearg.h: Likewise.
37536         * lib/raise.c: Likewise.
37537         * lib/readline.c: Likewise.
37538         * lib/readline.h: Likewise.
37539         * lib/readlink.c: Likewise.
37540         * lib/readtokens.c: Likewise.
37541         * lib/readtokens.h: Likewise.
37542         * lib/readtokens0.c: Likewise.
37543         * lib/readtokens0.h: Likewise.
37544         * lib/readutmp.c: Likewise.
37545         * lib/readutmp.h: Likewise.
37546         * lib/realloc.c: Likewise.
37547         * lib/relocwrapper.c: Likewise.
37548         * lib/rename-dest-slash.c: Likewise.
37549         * lib/rename.c: Likewise.
37550         * lib/rmdir.c: Likewise.
37551         * lib/rpmatch.c: Likewise.
37552         * lib/safe-read.c: Likewise.
37553         * lib/safe-read.h: Likewise.
37554         * lib/safe-write.c: Likewise.
37555         * lib/safe-write.h: Likewise.
37556         * lib/same-inode.h: Likewise.
37557         * lib/same.c: Likewise.
37558         * lib/same.h: Likewise.
37559         * lib/save-cwd.c: Likewise.
37560         * lib/save-cwd.h: Likewise.
37561         * lib/savedir.c: Likewise.
37562         * lib/savedir.h: Likewise.
37563         * lib/savewd.c: Likewise.
37564         * lib/savewd.h: Likewise.
37565         * lib/search.in.h: Likewise.
37566         * lib/setenv.c: Likewise.
37567         * lib/setenv.h: Likewise.
37568         * lib/settime.c: Likewise.
37569         * lib/sh-quote.c: Likewise.
37570         * lib/sh-quote.h: Likewise.
37571         * lib/sig2str.c: Likewise.
37572         * lib/sig2str.h: Likewise.
37573         * lib/signal.in.h: Likewise.
37574         * lib/signbitd.c: Likewise.
37575         * lib/signbitf.c: Likewise.
37576         * lib/signbitl.c: Likewise.
37577         * lib/sigprocmask.c: Likewise.
37578         * lib/sincosl.c: Likewise.
37579         * lib/sleep.c: Likewise.
37580         * lib/sprintf.c: Likewise.
37581         * lib/sqrtl.c: Likewise.
37582         * lib/stat-time.h: Likewise.
37583         * lib/stdio--.h: Likewise.
37584         * lib/stdio-safer.h: Likewise.
37585         * lib/stdlib--.h: Likewise.
37586         * lib/stdlib-safer.h: Likewise.
37587         * lib/stdlib.in.h: Likewise.
37588         * lib/stpcpy.c: Likewise.
37589         * lib/stpncpy.c: Likewise.
37590         * lib/strchrnul.c: Likewise.
37591         * lib/strcspn.c: Likewise.
37592         * lib/strerror.c: Likewise.
37593         * lib/strftime.c: Likewise.
37594         * lib/strftime.h: Likewise.
37595         * lib/striconveh.c: Likewise.
37596         * lib/striconveh.h: Likewise.
37597         * lib/striconveha.c: Likewise.
37598         * lib/striconveha.h: Likewise.
37599         * lib/stripslash.c: Likewise.
37600         * lib/strnlen1.c: Likewise.
37601         * lib/strnlen1.h: Likewise.
37602         * lib/strtod.c: Likewise.
37603         * lib/strtoimax.c: Likewise.
37604         * lib/strtok_r.c: Likewise.
37605         * lib/strtol.c: Likewise.
37606         * lib/strtoll.c: Likewise.
37607         * lib/strtoul.c: Likewise.
37608         * lib/strtoull.c: Likewise.
37609         * lib/sysexits.in.h: Likewise.
37610         * lib/tempname.c: Likewise.
37611         * lib/tempname.h: Likewise.
37612         * lib/timespec.h: Likewise.
37613         * lib/tls.c: Likewise.
37614         * lib/tls.h: Likewise.
37615         * lib/tmpdir.c: Likewise.
37616         * lib/tmpdir.h: Likewise.
37617         * lib/tmpfile-safer.c: Likewise.
37618         * lib/tmpfile.c: Likewise.
37619         * lib/trigl.c: Likewise.
37620         * lib/trigl.h: Likewise.
37621         * lib/trim.c: Likewise.
37622         * lib/trim.h: Likewise.
37623         * lib/trunc.c: Likewise.
37624         * lib/truncf.c: Likewise.
37625         * lib/truncl.c: Likewise.
37626         * lib/tsearch.c: Likewise.
37627         * lib/unicodeio.c: Likewise.
37628         * lib/unicodeio.h: Likewise.
37629         * lib/unistd--.h: Likewise.
37630         * lib/unistd-safer.h: Likewise.
37631         * lib/unistdio/ulc-fprintf.c: Likewise.
37632         * lib/unistdio/ulc-vfprintf.c: Likewise.
37633         * lib/unlinkdir.c: Likewise.
37634         * lib/unlinkdir.h: Likewise.
37635         * lib/unlocked-io.h: Likewise.
37636         * lib/unsetenv.c: Likewise.
37637         * lib/userspec.c: Likewise.
37638         * lib/utime.c: Likewise.
37639         * lib/utimecmp.c: Likewise.
37640         * lib/utimecmp.h: Likewise.
37641         * lib/utimens.c: Likewise.
37642         * lib/verify.h: Likewise.
37643         * lib/verror.c: Likewise.
37644         * lib/verror.h: Likewise.
37645         * lib/version-etc-fsf.c: Likewise.
37646         * lib/version-etc.c: Likewise.
37647         * lib/version-etc.h: Likewise.
37648         * lib/vfprintf.c: Likewise.
37649         * lib/vprintf.c: Likewise.
37650         * lib/vsprintf.c: Likewise.
37651         * lib/w32spawn.h: Likewise.
37652         * lib/wait-process.c: Likewise.
37653         * lib/wait-process.h: Likewise.
37654         * lib/wcwidth.c: Likewise.
37655         * lib/write-any-file.c: Likewise.
37656         * lib/xalloc-die.c: Likewise.
37657         * lib/xalloc.h: Likewise.
37658         * lib/xasprintf.c: Likewise.
37659         * lib/xgetcwd.c: Likewise.
37660         * lib/xgetcwd.h: Likewise.
37661         * lib/xgetdomainname.c: Likewise.
37662         * lib/xgetdomainname.h: Likewise.
37663         * lib/xgethostname.c: Likewise.
37664         * lib/xmalloc.c: Likewise.
37665         * lib/xmalloca.c: Likewise.
37666         * lib/xmalloca.h: Likewise.
37667         * lib/xmemcoll.c: Likewise.
37668         * lib/xnanosleep.c: Likewise.
37669         * lib/xreadlink.c: Likewise.
37670         * lib/xreadlink.h: Likewise.
37671         * lib/xsetenv.c: Likewise.
37672         * lib/xsetenv.h: Likewise.
37673         * lib/xstriconv.c: Likewise.
37674         * lib/xstriconv.h: Likewise.
37675         * lib/xstrndup.c: Likewise.
37676         * lib/xstrndup.h: Likewise.
37677         * lib/xstrtod.c: Likewise.
37678         * lib/xstrtod.h: Likewise.
37679         * lib/xstrtol-error.c: Likewise.
37680         * lib/xstrtol.c: Likewise.
37681         * lib/xstrtol.h: Likewise.
37682         * lib/xtime.h: Likewise.
37683         * lib/xvasprintf.c: Likewise.
37684         * lib/xvasprintf.h: Likewise.
37685         * lib/yesno.c: Likewise.
37686         * lib/yesno.h: Likewise.
37687         * posix-modules: Likewise.
37688         * tests/test-alloca-opt.c: Likewise.
37689         * tests/test-arcfour.c: Likewise.
37690         * tests/test-arctwo.c: Likewise.
37691         * tests/test-argmatch.c: Likewise.
37692         * tests/test-argp-2.sh: Likewise.
37693         * tests/test-argp.c: Likewise.
37694         * tests/test-arpa_inet.c: Likewise.
37695         * tests/test-array_list.c: Likewise.
37696         * tests/test-array_oset.c: Likewise.
37697         * tests/test-atexit.c: Likewise.
37698         * tests/test-avltree_list.c: Likewise.
37699         * tests/test-avltree_oset.c: Likewise.
37700         * tests/test-avltreehash_list.c: Likewise.
37701         * tests/test-base64.c: Likewise.
37702         * tests/test-binary-io.c: Likewise.
37703         * tests/test-byteswap.c: Likewise.
37704         * tests/test-c-ctype.c: Likewise.
37705         * tests/test-c-strcasecmp.c: Likewise.
37706         * tests/test-c-strcasestr.c: Likewise.
37707         * tests/test-c-strncasecmp.c: Likewise.
37708         * tests/test-c-strstr.c: Likewise.
37709         * tests/test-canonicalize-lgpl.c: Likewise.
37710         * tests/test-canonicalize.c: Likewise.
37711         * tests/test-carray_list.c: Likewise.
37712         * tests/test-ceilf.c: Likewise.
37713         * tests/test-ceill.c: Likewise.
37714         * tests/test-count-one-bits.c: Likewise.
37715         * tests/test-crc.c: Likewise.
37716         * tests/test-dirname.c: Likewise.
37717         * tests/test-fbufmode.c: Likewise.
37718         * tests/test-fcntl.c: Likewise.
37719         * tests/test-fflush.c: Likewise.
37720         * tests/test-floorf.c: Likewise.
37721         * tests/test-floorl.c: Likewise.
37722         * tests/test-fopen.c: Likewise.
37723         * tests/test-fprintf-posix.c: Likewise.
37724         * tests/test-fprintf-posix.h: Likewise.
37725         * tests/test-fpurge.c: Likewise.
37726         * tests/test-freadable.c: Likewise.
37727         * tests/test-freadahead.c: Likewise.
37728         * tests/test-freading.c: Likewise.
37729         * tests/test-freopen.c: Likewise.
37730         * tests/test-frexp.c: Likewise.
37731         * tests/test-frexpl.c: Likewise.
37732         * tests/test-fseek.c: Likewise.
37733         * tests/test-fseeko.c: Likewise.
37734         * tests/test-fseterr.c: Likewise.
37735         * tests/test-fstrcmp.c: Likewise.
37736         * tests/test-ftell.c: Likewise.
37737         * tests/test-ftello.c: Likewise.
37738         * tests/test-fwritable.c: Likewise.
37739         * tests/test-fwriting.c: Likewise.
37740         * tests/test-getaddrinfo.c: Likewise.
37741         * tests/test-getpass.c: Likewise.
37742         * tests/test-gettimeofday.c: Likewise.
37743         * tests/test-hmac-md5.c: Likewise.
37744         * tests/test-hmac-sha1.c: Likewise.
37745         * tests/test-iconv.c: Likewise.
37746         * tests/test-iconvme.c: Likewise.
37747         * tests/test-inttypes.c: Likewise.
37748         * tests/test-isnan.c: Likewise.
37749         * tests/test-isnanf.c: Likewise.
37750         * tests/test-isnanl-nolibm.c: Likewise.
37751         * tests/test-isnanl.c: Likewise.
37752         * tests/test-isnanl.h: Likewise.
37753         * tests/test-ldexpl.c: Likewise.
37754         * tests/test-linked_list.c: Likewise.
37755         * tests/test-linkedhash_list.c: Likewise.
37756         * tests/test-locale.c: Likewise.
37757         * tests/test-localename.c: Likewise.
37758         * tests/test-lock.c: Likewise.
37759         * tests/test-lseek.c: Likewise.
37760         * tests/test-malloca.c: Likewise.
37761         * tests/test-math.c: Likewise.
37762         * tests/test-mbscasecmp.c: Likewise.
37763         * tests/test-mbscasestr1.c: Likewise.
37764         * tests/test-mbscasestr2.c: Likewise.
37765         * tests/test-mbscasestr3.c: Likewise.
37766         * tests/test-mbscasestr4.c: Likewise.
37767         * tests/test-mbschr.c: Likewise.
37768         * tests/test-mbscspn.c: Likewise.
37769         * tests/test-mbsncasecmp.c: Likewise.
37770         * tests/test-mbspbrk.c: Likewise.
37771         * tests/test-mbspcasecmp.c: Likewise.
37772         * tests/test-mbsrchr.c: Likewise.
37773         * tests/test-mbsspn.c: Likewise.
37774         * tests/test-mbsstr1.c: Likewise.
37775         * tests/test-mbsstr2.c: Likewise.
37776         * tests/test-mbsstr3.c: Likewise.
37777         * tests/test-md5.c: Likewise.
37778         * tests/test-memmem.c: Likewise.
37779         * tests/test-netinet_in.c: Likewise.
37780         * tests/test-open.c: Likewise.
37781         * tests/test-printf-frexp.c: Likewise.
37782         * tests/test-printf-frexpl.c: Likewise.
37783         * tests/test-printf-posix.c: Likewise.
37784         * tests/test-printf-posix.h: Likewise.
37785         * tests/test-rbtree_list.c: Likewise.
37786         * tests/test-rbtree_oset.c: Likewise.
37787         * tests/test-rbtreehash_list.c: Likewise.
37788         * tests/test-read-file.c: Likewise.
37789         * tests/test-rijndael.c: Likewise.
37790         * tests/test-search.c: Likewise.
37791         * tests/test-signbit.c: Likewise.
37792         * tests/test-sleep.c: Likewise.
37793         * tests/test-snprintf-posix.c: Likewise.
37794         * tests/test-snprintf-posix.h: Likewise.
37795         * tests/test-snprintf.c: Likewise.
37796         * tests/test-sprintf-posix.c: Likewise.
37797         * tests/test-sprintf-posix.h: Likewise.
37798         * tests/test-stat-time.c: Likewise.
37799         * tests/test-stdbool.c: Likewise.
37800         * tests/test-stdint.c: Likewise.
37801         * tests/test-stdio.c: Likewise.
37802         * tests/test-stdlib.c: Likewise.
37803         * tests/test-stpncpy.c: Likewise.
37804         * tests/test-strcasestr.c: Likewise.
37805         * tests/test-striconv.c: Likewise.
37806         * tests/test-striconveh.c: Likewise.
37807         * tests/test-striconveha.c: Likewise.
37808         * tests/test-string.c: Likewise.
37809         * tests/test-sys_select.c: Likewise.
37810         * tests/test-sys_socket.c: Likewise.
37811         * tests/test-sys_stat.c: Likewise.
37812         * tests/test-sys_time.c: Likewise.
37813         * tests/test-sysexits.c: Likewise.
37814         * tests/test-time.c: Likewise.
37815         * tests/test-tls.c: Likewise.
37816         * tests/test-trunc.c: Likewise.
37817         * tests/test-truncf.c: Likewise.
37818         * tests/test-truncl.c: Likewise.
37819         * tests/test-unistd.c: Likewise.
37820         * tests/test-vasnprintf-posix.c: Likewise.
37821         * tests/test-vasnprintf-posix2.c: Likewise.
37822         * tests/test-vasnprintf.c: Likewise.
37823         * tests/test-vasprintf-posix.c: Likewise.
37824         * tests/test-vasprintf.c: Likewise.
37825         * tests/test-verify.c: Likewise.
37826         * tests/test-vfprintf-posix.c: Likewise.
37827         * tests/test-vprintf-posix.c: Likewise.
37828         * tests/test-vsnprintf-posix.c: Likewise.
37829         * tests/test-vsnprintf.c: Likewise.
37830         * tests/test-vsprintf-posix.c: Likewise.
37831         * tests/test-wchar.c: Likewise.
37832         * tests/test-wctype.c: Likewise.
37833         * tests/test-wcwidth.c: Likewise.
37834         * tests/test-xstrtol.c: Likewise.
37835         * tests/test-xvasprintf.c: Likewise.
37836         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37837         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37838         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37839         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37840         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37841         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37842         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37843         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37844         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37845         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37846         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37847         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37848         * tests/uniname/test-uninames.c: Likewise.
37849         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37850         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37851         * tests/unistdio/test-u16-printf1.h: Likewise.
37852         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37853         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37854         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37855         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37856         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37857         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37858         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37859         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37860         * tests/unistdio/test-u32-printf1.h: Likewise.
37861         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37862         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37863         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37864         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37865         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37866         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37867         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37868         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37869         * tests/unistdio/test-u8-printf1.h: Likewise.
37870         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37871         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37872         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37873         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37874         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37875         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37876         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37877         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37878         * tests/unistdio/test-ulc-printf1.h: Likewise.
37879         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37880         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37881         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37882         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37883         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37884         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37885         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37886         * tests/uniwidth/test-u16-width.c: Likewise.
37887         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37888         * tests/uniwidth/test-u32-width.c: Likewise.
37889         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37890         * tests/uniwidth/test-u8-width.c: Likewise.
37891         * tests/uniwidth/test-uc_width.c: Likewise.
37892         * config/srclist-update: Likewise.
37893         (fixlicense): Update to GPLv3+.
37894
37895         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37896         * tests/test-tsearch.c: Change copyright notice.
37897
37898         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37899         * lib/c-strcaseeq.h: Change copyright notice.
37900         * lib/streq.h: Likewise.
37901         * lib/uniconv.h: Likewise.
37902         * lib/uniconv/u-conv-from-enc.h: Likewise.
37903         * lib/uniconv/u-conv-to-enc.h: Likewise.
37904         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37905         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37906         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37907         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37908         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37909         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37910         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37911         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37912         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37913         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37914         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37915         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37916         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37917         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37918         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37919         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37920         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37921         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37922         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37923         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37924         * lib/uniname.h: Likewise.
37925         * lib/uniname/uniname.c: Likewise.
37926         * lib/unistdio.h: Likewise.
37927         * lib/unistdio/u-asnprintf.h: Likewise.
37928         * lib/unistdio/u-asprintf.h: Likewise.
37929         * lib/unistdio/u-printf-args.c: Likewise.
37930         * lib/unistdio/u-printf-args.h: Likewise.
37931         * lib/unistdio/u-printf-parse.h: Likewise.
37932         * lib/unistdio/u-snprintf.h: Likewise.
37933         * lib/unistdio/u-sprintf.h: Likewise.
37934         * lib/unistdio/u-vasprintf.h: Likewise.
37935         * lib/unistdio/u-vsnprintf.h: Likewise.
37936         * lib/unistdio/u-vsprintf.h: Likewise.
37937         * lib/unistdio/u16-asnprintf.c: Likewise.
37938         * lib/unistdio/u16-asprintf.c: Likewise.
37939         * lib/unistdio/u16-printf-parse.c: Likewise.
37940         * lib/unistdio/u16-snprintf.c: Likewise.
37941         * lib/unistdio/u16-sprintf.c: Likewise.
37942         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37943         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37944         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37945         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37946         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37947         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37948         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37949         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37950         * lib/unistdio/u16-vasnprintf.c: Likewise.
37951         * lib/unistdio/u16-vasprintf.c: Likewise.
37952         * lib/unistdio/u16-vsnprintf.c: Likewise.
37953         * lib/unistdio/u16-vsprintf.c: Likewise.
37954         * lib/unistdio/u32-asnprintf.c: Likewise.
37955         * lib/unistdio/u32-asprintf.c: Likewise.
37956         * lib/unistdio/u32-printf-parse.c: Likewise.
37957         * lib/unistdio/u32-snprintf.c: Likewise.
37958         * lib/unistdio/u32-sprintf.c: Likewise.
37959         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37960         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37961         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37962         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37963         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37964         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37965         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37966         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37967         * lib/unistdio/u32-vasnprintf.c: Likewise.
37968         * lib/unistdio/u32-vasprintf.c: Likewise.
37969         * lib/unistdio/u32-vsnprintf.c: Likewise.
37970         * lib/unistdio/u32-vsprintf.c: Likewise.
37971         * lib/unistdio/u8-asnprintf.c: Likewise.
37972         * lib/unistdio/u8-asprintf.c: Likewise.
37973         * lib/unistdio/u8-printf-parse.c: Likewise.
37974         * lib/unistdio/u8-snprintf.c: Likewise.
37975         * lib/unistdio/u8-sprintf.c: Likewise.
37976         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37977         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37978         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37979         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37980         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37981         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37982         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37983         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37984         * lib/unistdio/u8-vasnprintf.c: Likewise.
37985         * lib/unistdio/u8-vasprintf.c: Likewise.
37986         * lib/unistdio/u8-vsnprintf.c: Likewise.
37987         * lib/unistdio/u8-vsprintf.c: Likewise.
37988         * lib/unistdio/ulc-asnprintf.c: Likewise.
37989         * lib/unistdio/ulc-asprintf.c: Likewise.
37990         * lib/unistdio/ulc-printf-parse.c: Likewise.
37991         * lib/unistdio/ulc-snprintf.c: Likewise.
37992         * lib/unistdio/ulc-sprintf.c: Likewise.
37993         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37994         * lib/unistdio/ulc-vasprintf.c: Likewise.
37995         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37996         * lib/unistdio/ulc-vsprintf.c: Likewise.
37997         * lib/unistr.h: Likewise.
37998         * lib/unistr/u-cpy-alloc.h: Likewise.
37999         * lib/unistr/u-cpy.h: Likewise.
38000         * lib/unistr/u-endswith.h: Likewise.
38001         * lib/unistr/u-move.h: Likewise.
38002         * lib/unistr/u-set.h: Likewise.
38003         * lib/unistr/u-startswith.h: Likewise.
38004         * lib/unistr/u-stpcpy.h: Likewise.
38005         * lib/unistr/u-stpncpy.h: Likewise.
38006         * lib/unistr/u-strcat.h: Likewise.
38007         * lib/unistr/u-strcpy.h: Likewise.
38008         * lib/unistr/u-strcspn.h: Likewise.
38009         * lib/unistr/u-strdup.h: Likewise.
38010         * lib/unistr/u-strlen.h: Likewise.
38011         * lib/unistr/u-strncat.h: Likewise.
38012         * lib/unistr/u-strncpy.h: Likewise.
38013         * lib/unistr/u-strnlen.h: Likewise.
38014         * lib/unistr/u-strpbrk.h: Likewise.
38015         * lib/unistr/u-strspn.h: Likewise.
38016         * lib/unistr/u-strstr.h: Likewise.
38017         * lib/unistr/u-strtok.h: Likewise.
38018         * lib/unistr/u16-check.c: Likewise.
38019         * lib/unistr/u16-chr.c: Likewise.
38020         * lib/unistr/u16-cmp.c: Likewise.
38021         * lib/unistr/u16-cpy-alloc.c: Likewise.
38022         * lib/unistr/u16-cpy.c: Likewise.
38023         * lib/unistr/u16-endswith.c: Likewise.
38024         * lib/unistr/u16-mblen.c: Likewise.
38025         * lib/unistr/u16-mbsnlen.c: Likewise.
38026         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38027         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38028         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38029         * lib/unistr/u16-mbtouc.c: Likewise.
38030         * lib/unistr/u16-mbtoucr.c: Likewise.
38031         * lib/unistr/u16-move.c: Likewise.
38032         * lib/unistr/u16-next.c: Likewise.
38033         * lib/unistr/u16-prev.c: Likewise.
38034         * lib/unistr/u16-set.c: Likewise.
38035         * lib/unistr/u16-startswith.c: Likewise.
38036         * lib/unistr/u16-stpcpy.c: Likewise.
38037         * lib/unistr/u16-stpncpy.c: Likewise.
38038         * lib/unistr/u16-strcat.c: Likewise.
38039         * lib/unistr/u16-strchr.c: Likewise.
38040         * lib/unistr/u16-strcmp.c: Likewise.
38041         * lib/unistr/u16-strcpy.c: Likewise.
38042         * lib/unistr/u16-strcspn.c: Likewise.
38043         * lib/unistr/u16-strdup.c: Likewise.
38044         * lib/unistr/u16-strlen.c: Likewise.
38045         * lib/unistr/u16-strmblen.c: Likewise.
38046         * lib/unistr/u16-strmbtouc.c: Likewise.
38047         * lib/unistr/u16-strncat.c: Likewise.
38048         * lib/unistr/u16-strncmp.c: Likewise.
38049         * lib/unistr/u16-strncpy.c: Likewise.
38050         * lib/unistr/u16-strnlen.c: Likewise.
38051         * lib/unistr/u16-strpbrk.c: Likewise.
38052         * lib/unistr/u16-strrchr.c: Likewise.
38053         * lib/unistr/u16-strspn.c: Likewise.
38054         * lib/unistr/u16-strstr.c: Likewise.
38055         * lib/unistr/u16-strtok.c: Likewise.
38056         * lib/unistr/u16-to-u32.c: Likewise.
38057         * lib/unistr/u16-to-u8.c: Likewise.
38058         * lib/unistr/u16-uctomb-aux.c: Likewise.
38059         * lib/unistr/u16-uctomb.c: Likewise.
38060         * lib/unistr/u32-check.c: Likewise.
38061         * lib/unistr/u32-chr.c: Likewise.
38062         * lib/unistr/u32-cmp.c: Likewise.
38063         * lib/unistr/u32-cpy-alloc.c: Likewise.
38064         * lib/unistr/u32-cpy.c: Likewise.
38065         * lib/unistr/u32-endswith.c: Likewise.
38066         * lib/unistr/u32-mblen.c: Likewise.
38067         * lib/unistr/u32-mbsnlen.c: Likewise.
38068         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38069         * lib/unistr/u32-mbtouc.c: Likewise.
38070         * lib/unistr/u32-mbtoucr.c: Likewise.
38071         * lib/unistr/u32-move.c: Likewise.
38072         * lib/unistr/u32-next.c: Likewise.
38073         * lib/unistr/u32-prev.c: Likewise.
38074         * lib/unistr/u32-set.c: Likewise.
38075         * lib/unistr/u32-startswith.c: Likewise.
38076         * lib/unistr/u32-stpcpy.c: Likewise.
38077         * lib/unistr/u32-stpncpy.c: Likewise.
38078         * lib/unistr/u32-strcat.c: Likewise.
38079         * lib/unistr/u32-strchr.c: Likewise.
38080         * lib/unistr/u32-strcmp.c: Likewise.
38081         * lib/unistr/u32-strcpy.c: Likewise.
38082         * lib/unistr/u32-strcspn.c: Likewise.
38083         * lib/unistr/u32-strdup.c: Likewise.
38084         * lib/unistr/u32-strlen.c: Likewise.
38085         * lib/unistr/u32-strmblen.c: Likewise.
38086         * lib/unistr/u32-strmbtouc.c: Likewise.
38087         * lib/unistr/u32-strncat.c: Likewise.
38088         * lib/unistr/u32-strncmp.c: Likewise.
38089         * lib/unistr/u32-strncpy.c: Likewise.
38090         * lib/unistr/u32-strnlen.c: Likewise.
38091         * lib/unistr/u32-strpbrk.c: Likewise.
38092         * lib/unistr/u32-strrchr.c: Likewise.
38093         * lib/unistr/u32-strspn.c: Likewise.
38094         * lib/unistr/u32-strstr.c: Likewise.
38095         * lib/unistr/u32-strtok.c: Likewise.
38096         * lib/unistr/u32-to-u16.c: Likewise.
38097         * lib/unistr/u32-to-u8.c: Likewise.
38098         * lib/unistr/u32-uctomb.c: Likewise.
38099         * lib/unistr/u8-check.c: Likewise.
38100         * lib/unistr/u8-chr.c: Likewise.
38101         * lib/unistr/u8-cmp.c: Likewise.
38102         * lib/unistr/u8-cpy-alloc.c: Likewise.
38103         * lib/unistr/u8-cpy.c: Likewise.
38104         * lib/unistr/u8-endswith.c: Likewise.
38105         * lib/unistr/u8-mblen.c: Likewise.
38106         * lib/unistr/u8-mbsnlen.c: Likewise.
38107         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38108         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38109         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38110         * lib/unistr/u8-mbtouc.c: Likewise.
38111         * lib/unistr/u8-mbtoucr.c: Likewise.
38112         * lib/unistr/u8-move.c: Likewise.
38113         * lib/unistr/u8-next.c: Likewise.
38114         * lib/unistr/u8-prev.c: Likewise.
38115         * lib/unistr/u8-set.c: Likewise.
38116         * lib/unistr/u8-startswith.c: Likewise.
38117         * lib/unistr/u8-stpcpy.c: Likewise.
38118         * lib/unistr/u8-stpncpy.c: Likewise.
38119         * lib/unistr/u8-strcat.c: Likewise.
38120         * lib/unistr/u8-strchr.c: Likewise.
38121         * lib/unistr/u8-strcmp.c: Likewise.
38122         * lib/unistr/u8-strcpy.c: Likewise.
38123         * lib/unistr/u8-strcspn.c: Likewise.
38124         * lib/unistr/u8-strdup.c: Likewise.
38125         * lib/unistr/u8-strlen.c: Likewise.
38126         * lib/unistr/u8-strmblen.c: Likewise.
38127         * lib/unistr/u8-strmbtouc.c: Likewise.
38128         * lib/unistr/u8-strncat.c: Likewise.
38129         * lib/unistr/u8-strncmp.c: Likewise.
38130         * lib/unistr/u8-strncpy.c: Likewise.
38131         * lib/unistr/u8-strnlen.c: Likewise.
38132         * lib/unistr/u8-strpbrk.c: Likewise.
38133         * lib/unistr/u8-strrchr.c: Likewise.
38134         * lib/unistr/u8-strspn.c: Likewise.
38135         * lib/unistr/u8-strstr.c: Likewise.
38136         * lib/unistr/u8-strtok.c: Likewise.
38137         * lib/unistr/u8-to-u16.c: Likewise.
38138         * lib/unistr/u8-to-u32.c: Likewise.
38139         * lib/unistr/u8-uctomb-aux.c: Likewise.
38140         * lib/unistr/u8-uctomb.c: Likewise.
38141         * lib/unitypes.h: Likewise.
38142         * lib/uniwidth.h: Likewise.
38143         * lib/uniwidth/cjk.h: Likewise.
38144         * lib/uniwidth/u16-strwidth.c: Likewise.
38145         * lib/uniwidth/u16-width.c: Likewise.
38146         * lib/uniwidth/u32-strwidth.c: Likewise.
38147         * lib/uniwidth/u32-width.c: Likewise.
38148         * lib/uniwidth/u8-strwidth.c: Likewise.
38149         * lib/uniwidth/u8-width.c: Likewise.
38150         * lib/uniwidth/width.c: Likewise.
38151
38152 2007-10-07  Bruno Haible  <bruno@clisp.org>
38153
38154         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38155         The file is still under LGPL (see modules/inttypes).
38156
38157 2007-10-06  Bruno Haible  <bruno@clisp.org>
38158
38159         * modules/trunc (Dependencies): Add 'extensions'.
38160         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38161         Reported by Ben Pfaff <blp@gnu.org>.
38162
38163 2007-10-06  Bruno Haible  <bruno@clisp.org>
38164
38165         * modules/freopen-tests: New file.
38166         * tests/test-freopen.c: New file.
38167
38168         * modules/fopen-tests: New file.
38169         * tests/test-fopen.c: New file.
38170
38171         * modules/fopen: New file.
38172         * lib/fopen.c: New file.
38173         * m4/fopen.m4: New file.
38174         * modules/freopen: New file.
38175         * lib/freopen.c: New file.
38176         * m4/freopen.m4: New file.
38177         * lib/stdio.in.h (fopen, freopen): New declarations.
38178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38179         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38180         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38181         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38182         * doc/functions/fopen.texi: Mention the 'fopen' module.
38183         * doc/functions/freopen.texi: Mention the 'freopen' module.
38184
38185 2007-10-06  Bruno Haible  <bruno@clisp.org>
38186
38187         * modules/open-tests: New file.
38188         * tests/test-open.c: New file.
38189
38190         * modules/open: New file.
38191         * lib/open.c: New file.
38192         * m4/open.m4: New file.
38193         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38194         lib/open.c does.
38195         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38196         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38197         macros.
38198         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38199         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38200         REPLACE_OPEN.
38201         * doc/functions/open.texi: Mention the 'open' module.
38202
38203 2007-10-04  Bruno Haible  <bruno@clisp.org>
38204
38205         * modules/ceill-tests: New file.
38206         * tests/test-ceill.c: New file.
38207
38208         * modules/ceill: New file.
38209         * lib/ceill.c: Replace entire file.
38210         * m4/ceill.m4: New file.
38211         * lib/math.in.h (ceill): Replace declaration.
38212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38213         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38214         * doc/functions/ceill.texi: Mention the 'ceill' module.
38215         * modules/mathl (Files): Remove lib/ceill.c.
38216         (Depends-on): Add ceill.
38217
38218 2007-10-04  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/ceilf-tests: New file.
38221         * tests/test-ceilf.c: New file.
38222
38223         * modules/ceilf: New file.
38224         * lib/ceil.c: New file.
38225         * lib/ceilf.c: New file.
38226         * m4/ceilf.m4: New file.
38227         * lib/math.in.h (ceilf): New declaration.
38228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38229         HAVE_DECL_CEILF.
38230         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38231         HAVE_DECL_CEILF.
38232         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38233
38234 2007-10-04  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/floorl-tests: New file.
38237         * tests/test-floorl.c: New file.
38238
38239         * modules/floorl: New file.
38240         * lib/floorl.c: Replace entire file.
38241         * m4/floorl.m4: New file.
38242         * lib/math.in.h (floorl): Replace declaration.
38243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38244         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38245         * doc/functions/floorl.texi: Mention the 'floorl' module.
38246         * modules/mathl (Files): Remove lib/floorl.c.
38247         (Depends-on): Add floorl.
38248
38249 2007-10-04  Bruno Haible  <bruno@clisp.org>
38250
38251         * modules/floorf-tests: New file.
38252         * tests/test-floorf.c: New file.
38253
38254         * modules/floorf: New file.
38255         * lib/floor.c: New file.
38256         * lib/floorf.c: New file.
38257         * m4/floorf.m4: New file.
38258         * lib/math.in.h (floorf): New declaration.
38259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38260         HAVE_DECL_FLOORF.
38261         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38262         HAVE_DECL_FLOORF.
38263         * doc/functions/floorf.texi: Mention the 'floorf' module.
38264
38265 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38266             Bruno Haible  <bruno@clisp.org>
38267
38268         Advertise for the Git server instead of the CVS server.
38269         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38270         repository instead of the CVS one.
38271         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38272         about all VCS systems generically.
38273         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38274
38275 2007-10-04  Bruno Haible  <bruno@clisp.org>
38276
38277         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38278         means.
38279         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38280
38281 2007-10-04  Bruno Haible  <bruno@clisp.org>
38282
38283         * modules/truncl-tests: New file.
38284         * tests/test-truncl.c: New file.
38285
38286         * modules/truncl: New file.
38287         * lib/truncl.c: New file.
38288         * m4/truncl.m4: New file.
38289         * lib/math.in.h (truncl): New declaration.
38290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38291         HAVE_DECL_TRUNCL.
38292         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38293         HAVE_DECL_TRUNCL.
38294         * doc/functions/truncl.texi: Mention the 'truncl' module.
38295
38296 2007-10-04  Bruno Haible  <bruno@clisp.org>
38297
38298         * modules/truncf-tests: New file.
38299         * tests/test-truncf.c: New file.
38300
38301         * modules/truncf: New file.
38302         * lib/trunc.c: Make paramerizable through USE_* macros.
38303         * lib/truncf.c: New file.
38304         * m4/truncf.m4: New file.
38305         * lib/math.in.h (truncf): New declaration.
38306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38307         HAVE_DECL_TRUNCF.
38308         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38309         HAVE_DECL_TRUNCF.
38310         * doc/functions/truncf.texi: Mention the 'truncf' module.
38311
38312 2007-10-03  Bruno Haible  <bruno@clisp.org>
38313
38314         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38315         augmentation also for tests modules.
38316         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38317         * modules/atexit-tests (Makefile.am): Likewise.
38318         * modules/binary-io-tests (Makefile.am): Likewise.
38319         * modules/c-strcase-tests (Makefile.am): Likewise.
38320         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38321         * modules/canonicalize-tests (Makefile.am): Likewise.
38322         * modules/closein-tests (Makefile.am): Likewise.
38323         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38324         * modules/freadahead-tests (Makefile.am): Likewise.
38325         * modules/fseek-tests (Makefile.am): Likewise.
38326         * modules/fseeko-tests (Makefile.am): Likewise.
38327         * modules/ftell-tests (Makefile.am): Likewise.
38328         * modules/ftello-tests (Makefile.am): Likewise.
38329         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38330         * modules/isnanl-tests (Makefile.am): Likewise.
38331         * modules/lseek-tests (Makefile.am): Likewise.
38332         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38333         * modules/mbscasestr-tests (Makefile.am): Likewise.
38334         * modules/mbschr-tests (Makefile.am): Likewise.
38335         * modules/mbscspn-tests (Makefile.am): Likewise.
38336         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38337         * modules/mbspbrk-tests (Makefile.am): Likewise.
38338         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38339         * modules/mbsrchr-tests (Makefile.am): Likewise.
38340         * modules/mbsspn-tests (Makefile.am): Likewise.
38341         * modules/mbsstr-tests (Makefile.am): Likewise.
38342         * modules/printf-posix-tests (Makefile.am): Likewise.
38343         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38344         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38345         * modules/tsearch-tests (Makefile.am): Likewise.
38346         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38347         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38348         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38349         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38350         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38351         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38352         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38353         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38354         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38355         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38356         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38357         * modules/xstrtol-tests (Makefile.am): Likewise.
38358         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38359         * modules/yesno-tests (Makefile.am): Likewise.
38360
38361 2007-10-03  Bruno Haible  <bruno@clisp.org>
38362
38363         * modules/trunc-tests: New file.
38364         * tests/test-trunc.c: New file.
38365
38366         * modules/trunc: New file.
38367         * lib/trunc.c: New file.
38368         * m4/trunc.m4: New file.
38369         * lib/math.in.h (trunc): New declaration.
38370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38371         HAVE_DECL_TRUNC.
38372         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38373         HAVE_DECL_TRUNC.
38374         * doc/functions/trunc.texi: Mention the 'trunc' module.
38375
38376 2007-10-03  Bruno Haible  <bruno@clisp.org>
38377
38378         * tests/test-fpending.c: New file, mostly copied
38379         from coreutils/lib/t-fpending.c.
38380         * modules/fpending-tests: New file.
38381
38382 2007-10-03  Bruno Haible  <bruno@clisp.org>
38383
38384         Port the stdio extensions to QNX (untested).
38385         * lib/fseterr.c (fseterr): Add support for QNX.
38386         * lib/fbufmode.c (fbufmode): Likewise.
38387         * lib/freadable.c (freadable): Likewise.
38388         * lib/fwritable.c (fwritable): Likewise.
38389         * lib/freading.c (freading): Likewise.
38390         * lib/fwriting.c (fwriting): Likewise.
38391         * lib/freadahead.c (freadahed): Likewise.
38392         * lib/fpurge.c (fpurge): Likewise.
38393         * lib/fseeko.c (rpl_fseeko): Likewise.
38394
38395 2007-10-03  Bruno Haible  <bruno@clisp.org>
38396             Jim Meyering  <jim@meyering.net>
38397             Eric Blake  <ebb9@byu.net>
38398
38399         * doc/relocatable.texi: Use @command instead of @program.
38400
38401 2007-10-02  Jim Meyering  <jim@meyering.net>
38402
38403         Perform one more "_.h" -> ".in.h" substitution.
38404         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38405         instead of unistd_.h here, too.
38406
38407 2007-10-01  Bruno Haible  <bruno@clisp.org>
38408
38409         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38410         Needed for the alloca-opt module.
38411
38412 2007-09-30  Bruno Haible  <bruno@clisp.org>
38413
38414         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38415         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38416         alloca_.h.
38417         * lib/argz.in.h: Renamed from lib/argz_.h.
38418         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38419         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38420         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38421         byteswap_.h.
38422         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38423         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38424         dirent_.h.
38425         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38426         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38427         fcntl_.h.
38428         * lib/float.in.h: Renamed from lib/float_.h.
38429         * modules/float (Files, Makefile.am): Use float.in.h instead of
38430         float_.h.
38431         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38432         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38433         fnmatch_.h.
38434         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38435         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38436         getopt_.h.
38437         * lib/glob.in.h: Renamed from lib/glob_.h.
38438         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38439         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38440         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38441         iconv_.h.
38442         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38443         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38444         inttypes_.h.
38445         * lib/locale.in.h: Renamed from lib/locale_.h.
38446         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38447         locale_.h.
38448         * lib/math.in.h: Renamed from lib/math_.h.
38449         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38450         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38451         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38452         of netinet_in_.h. Add dependency.
38453         * lib/poll.in.h: Renamed from lib/poll_.h.
38454         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38455         * lib/search.in.h: Renamed from lib/search_.h.
38456         * modules/search (Files, Makefile.am): Use search.in.h instead of
38457         search_.h.
38458         * lib/signal.in.h: Renamed from lib/signal_.h.
38459         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38460         _signal.h.
38461         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38462         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38463         stdbool_.h.
38464         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38465         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38466         stdint_.h.
38467         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38468         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38469         stdio_.h.
38470         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38471         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38472         stdlib_.h.
38473         * lib/string.in.h: Renamed from lib/string_.h.
38474         * modules/string (Files, Makefile.am): Use string.in.h instead of
38475         string_.h.
38476         * doc/gnulib-tool.texi (Initial import): Update.
38477         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38478         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38479         of sys_select_.h. Add dependency.
38480         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38481         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38482         of sys_socket_.h.
38483         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38484         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38485         sys_stat_.h.
38486         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38487         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38488         sys_time_.h.
38489         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38490         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38491         sysexits_.h.
38492         * lib/time.in.h: Renamed from lib/time_.h.
38493         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38494         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38495         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38496         unistd_.h.
38497         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38498         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38499         wchar_.h.
38500         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38501         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38502         wctype_.h.
38503         * build-aux/bootstrap (slurp): Update.
38504         * lib/.cppi-disable: Update.
38505
38506 2007-09-30  Bruno Haible  <bruno@clisp.org>
38507
38508         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38509         Needed on BeOS.
38510
38511 2007-09-30  Bruno Haible  <bruno@clisp.org>
38512
38513         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38514
38515 2007-09-29  Bruno Haible  <bruno@clisp.org>
38516
38517         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38518
38519 2007-09-29  Bruno Haible  <bruno@clisp.org>
38520
38521         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38522         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38523         * build-aux/install-reloc: Compile also areadlink.c.
38524         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38525
38526 2007-09-29  Bruno Haible  <bruno@clisp.org>
38527
38528         * gnulib-tool (func_emit_initmacro_done): Indentation.
38529
38530 2007-09-29  Bruno Haible  <bruno@clisp.org>
38531
38532         * README: Add CVS checkout update instructions.
38533         Info from Bob Proulx <bob@proulx.com>.
38534
38535 2007-09-28  Eric Blake  <ebb9@byu.net>
38536
38537         Provide move-if-change.
38538         * build-aux/move-if-change: New file, based on best practice
38539         rather than any canonical upstream location.
38540
38541 2007-09-28  Jim Meyering  <jim@meyering.net>
38542
38543         Fix canonicalize loop-detection corner case.
38544         Do not attempt to stat the symlink values stored via seen_triple.
38545         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38546         on linux-2.6.18, (but not 2.6.22).
38547         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38548         triple_compare.  The former compares dev,ino,filename, while the latter
38549         would actually stat dirname(filename) when dev and ino were equal.
38550         * lib/hash-triple.c: Install <string.h>.
38551         (STREQ): Define.
38552         (triple_compare_ino_str): New function.
38553         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38554
38555 2007-09-28  Eric Blake  <ebb9@byu.net>
38556
38557         Enforce that AC_REPLACE_FUNCS files exist.
38558         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38559         override check for typos.
38560
38561         Fix test-closein on Solaris 10.
38562         * tests/test-closein.c (main): Don't assume stdin can be inherited
38563         closed on all systems.
38564         * tests/test-closein.sh: Likewise.
38565         Reported by Piotr Tarnowski.
38566
38567 2007-09-28  Jim Meyering  <jim@meyering.net>
38568
38569         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38570
38571 2007-09-27  Jim Meyering  <jim@meyering.net>
38572
38573         canonicalize: Avoid a false-positive cycle failure.
38574         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38575         Sort.  Remove cycle-check.
38576         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38577         not cycle-check.h.
38578         (seen_triple): New function.
38579         (canonicalize_filename_mode): Use it instead of cycle-check.
38580         * tests/test-canonicalize.c: Add a test for this bug.
38581         * tests/test-canonicalize.sh: Set up and run the test.
38582
38583         New module, file-set, from coreutils.
38584         * modules/file-set: Define it.
38585         * lib/file-set.c, lib/file-set.h: Implement.
38586
38587         New module, hash-triple, from coreutils.
38588         * modules/hash-triple: Define it.
38589         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38590
38591 2007-09-25  Eric Blake  <ebb9@byu.net>
38592
38593         Fix strerror on Interix.
38594         * lib/string_.h (strerror): Declare replacement.
38595         * doc/functions/strerror.texi (strerror): Document the Interix
38596         shortcoming.
38597         * modules/string (Makefile.am): Support new hooks.
38598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38599         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38600         gl_FUNC_STRERROR_SEPARATE.
38601         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38602         * lib/strerror.c (rpl_strerror): Provide replacement.
38603         * modules/strerror (Depends-on): Add string.
38604         (configure.ac): Detect use of module.
38605         * tests/test-strerror.c: New file.
38606         * modules/strerror-tests: New test module.
38607         * modules/argp (Depends-on): Add strerror.
38608         * modules/error (Depends-on): Likewise.
38609         Reported by Martin Koeppe.
38610
38611 2007-09-24  Bruno Haible  <bruno@clisp.org>
38612
38613         * README: Update git instructions.
38614
38615 2007-09-24  Eric Blake  <ebb9@byu.net>
38616
38617         Revert fpending breakage from 2007-09-08.
38618         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38619         __fpending.c.
38620
38621 2007-09-24  Jim Meyering  <jim@meyering.net>
38622
38623         filenamecat.c: Add a test.
38624         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38625         showing how the function works when DIR is the empty string.
38626
38627 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38628
38629         * tests/test-canonicalize.sh: Turn on executable bit.
38630
38631 2007-09-19  Eric Blake  <ebb9@byu.net>
38632
38633         * README: Update CVS instructions.
38634
38635 2007-09-18  Bruno Haible  <bruno@clisp.org>
38636
38637         * modules/areadlink: New file.
38638         * lib/areadlink.h (areadlink): New declaration.
38639         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38640
38641 2007-09-17  Jim Meyering  <jim@meyering.net>
38642
38643         * lib/savewd.c (ESTALE) [!defined]: Define.
38644         Reported to be required on Interix by Martin Koeppe.
38645
38646 2007-09-17  Bruno Haible  <bruno@clisp.org>
38647
38648         * gnulib-tool (func_version): Use $version.
38649
38650 2007-09-16  Bruno Haible  <bruno@clisp.org>
38651
38652         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38653         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38654         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38655         Reported by Greg Schafer <gschafer@zip.com.au>.
38656
38657 2007-09-15  Bruno Haible  <bruno@clisp.org>
38658
38659         * gnulib-tool (sed): Try a little harder to make bash understand the
38660         alias.
38661         Reported by Bruce Korb <bruce.korb@gmail.com>.
38662
38663 2007-09-13  Eric Blake  <ebb9@byu.net>
38664
38665         * ChangeLog: Remove conflict markers.
38666
38667 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38668
38669         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38670         Reported by Bruno Haible <bruno@clisp.org>.
38671
38672 2007-09-12  Bruno Haible  <bruno@clisp.org>
38673
38674         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38675         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38676         is not defined.
38677
38678 2007-09-12  Eric Blake  <ebb9@byu.net>
38679
38680         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38681         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38682         Autoconf definition.
38683         * modules/euidaccess (Depends-on): Add extensions, for
38684         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38685         * modules/fnmatch (Depends-on): Likewise.
38686         * modules/getaddrinfo (Depends-on): Likewise.
38687         * modules/getdelim (Depends-on): Likewise.
38688         * modules/getline (Depends-on): Likewise.
38689         * modules/getsubopt (Depends-on): Likewise.
38690         * modules/gettext (Depends-on): Likewise.
38691         * modules/group-member (Depends-on): Likewise.
38692         * modules/mbchar (Depends-on): Likewise.
38693         * modules/memmem (Depends-on): Likewise.
38694         * modules/mempcpy (Depends-on): Likewise.
38695         * modules/memrchr (Depends-on): Likewise.
38696         * modules/pagealign_alloc (Depends-on): Likewise.
38697         * modules/readutmp (Depends-on): Likewise.
38698         * modules/stpcpy (Depends-on): Likewise.
38699         * modules/stpncpy (Depends-on): Likewise.
38700         * modules/strchrnul (Depends-on): Likewise.
38701         * modules/strndup (Depends-on): Likewise.
38702         * modules/strsep (Depends-on): Likewise.
38703         * modules/strverscmp (Depends-on): Likewise.
38704         * modules/vasprintf (Depends-on): Likewise.
38705         * modules/wcwidth (Depends-on): Likewise.
38706         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38707         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38708         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38711         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38712         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38713         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38714         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38715         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38717         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38718         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38720         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38721         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38722         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38723         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38725         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38726         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38727         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38728         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38729         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38730         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38732         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38733         so that lock.m4 can be used in gettext without extensions module.
38734
38735 2007-09-11  Bruno Haible  <bruno@clisp.org>
38736
38737         * m4/isc-posix.m4: Remove file.
38738         Suggested by Eric Blake.
38739
38740 2007-09-11  Eric Blake  <ebb9@byu.net>
38741
38742         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38743
38744 2007-09-10  Bruno Haible  <bruno@clisp.org>
38745
38746         * posix-modules: Fix typo in error message.
38747         Reported by Matt <mkraai@beckman.com>.
38748
38749 2007-09-09  Bruno Haible  <bruno@clisp.org>
38750
38751         * doc/functions/getdelim.texi: Update list of platforms lacking the
38752         function.
38753         * doc/functions/getline.texi: Likewise.
38754
38755 2007-09-09  Jim Meyering  <jim@meyering.net>
38756
38757         * lib/hash.c (hash_initialize): Detect calloc failure.
38758         Reported by Bruno Haible.
38759
38760 2007-09-09  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38763         malloc or realloc fails.
38764
38765 2007-09-09  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/getcwd (Depends-on): Add malloc-posix.
38768         * modules/glob (Depends-on): Likewise.
38769         * modules/putenv (Depends-on): Likewise.
38770         * modules/strdup (Depends-on): Likewise.
38771         * modules/getdelim (Depends-on): Add realloc-posix.
38772         * modules/read-file (Depends-on): Likewise.
38773
38774 2007-09-09  Bruno Haible  <bruno@clisp.org>
38775
38776         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38777         (gl_FUNC_MALLOC_POSIX): Require it.
38778         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38779         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38780         * modules/realloc (Files): Add m4/malloc.m4.
38781         * modules/calloc (Files): Likewise.
38782
38783 2007-09-09  Bruno Haible  <bruno@clisp.org>
38784
38785         * modules/malloc-posix: New file.
38786         * modules/malloc (Depends-on): Add malloc-posix.
38787         * lib/malloc.c: Include errno.h.
38788         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38789         and a POSIX-compatible malloc into a single function. Set ENOMEM
38790         when returning NULL.
38791         * m4/malloc.m4: New file.
38792         * doc/functions/malloc.texi: Mention the malloc-posix module.
38793         * lib/stdlib_.h (malloc): New declaration.
38794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38795         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38796         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38797         and HAVE_MALLOC_POSIX.
38798
38799 2007-09-09  Bruno Haible  <bruno@clisp.org>
38800
38801         * modules/realloc-posix: New file.
38802         * modules/realloc (Depends-on): Add realloc-posix.
38803         * lib/realloc.c: Include errno.h.
38804         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38805         and a POSIX-compatible realloc into a single function. Set ENOMEM
38806         when returning NULL.
38807         * m4/realloc.m4: New file.
38808         * doc/functions/realloc.texi: Mention the realloc-posix module.
38809         * lib/stdlib_.h (realloc): New declaration.
38810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38811         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38812         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38813         and HAVE_REALLOC_POSIX.
38814
38815 2007-09-09  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/calloc-posix: New file.
38818         * modules/calloc (Depends-on): Add calloc-posix.
38819         * lib/calloc.c: Include errno.h.
38820         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38821         and a POSIX-compatible calloc into a single function. Set ENOMEM
38822         when returning NULL.
38823         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38824         * doc/functions/calloc.texi: Mention the calloc-posix module.
38825         * lib/stdlib_.h (calloc): New declaration.
38826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38827         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38828         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38829         and HAVE_CALLOC_POSIX.
38830
38831 2007-09-09  Bruno Haible  <bruno@clisp.org>
38832
38833         Allow for modules to show an arbitrary notice.
38834         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38835         * gnulib-tool: New option --extract-notice.
38836         (func_usage): Document it.
38837         (sed_extract_prog): Update.
38838         (func_get_notice): New function.
38839         (func_modules_notice): New function.
38840         (func_import, func_create_testdir): Invoke it.
38841         Suggested by Jim Meyering.
38842
38843 2007-09-09  Bruno Haible  <bruno@clisp.org>
38844
38845         * gnulib-tool: New options --verbose, --quiet.
38846         (func_usage): Document them.
38847         (verbose): New variable.
38848         (func_execute_command): New function.
38849         (func_import): Don't show the module list and the file list if
38850         $verbose < 0.
38851         (func_create_testdir): Likewise. Use func_execute_command.
38852         (func_create_megatestdir): Use func_execute_command.
38853
38854 2007-09-08  Bruno Haible  <bruno@clisp.org>
38855
38856         * gnulib-tool (func_import): Prefer rsync over wget when available,
38857         for fetching the PO files.
38858
38859 2007-09-08  Bruno Haible  <bruno@clisp.org>
38860
38861         * posix-modules: New file. Portions copied from gnulib-tool.
38862         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38863
38864 2007-09-08  Jim Meyering  <jim@meyering.net>
38865
38866         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38867         * lib/fpending.h: Rename from __fpending.h.
38868         * lib/fpending.c: Rename from __fpending.c.
38869         Include "fpending.h", not "__fpending.h".
38870         * lib/__fpending.h, lib/__fpending.c: Remove files.
38871         * modules/fpending (Files): Reflect new file names.
38872         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38873
38874 2007-09-08  Bruno Haible  <bruno@clisp.org>
38875
38876         * m4/inttypes-h.m4: Remove stub file.
38877
38878 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38879
38880         * doc/headers/stdint.texi: Discuss #include_next issue.
38881
38882 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38885
38886 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38887
38888         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38889         in variable name.
38890
38891 2007-09-03  Jim Meyering  <jim@meyering.net>
38892
38893         New module: git-version-gen.
38894         * modules/git-version-gen: New file.
38895
38896         Import changes from coreutils for bootstrap script.
38897
38898         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38899
38900         bootstrap: uses rsync to download the .po files
38901         * build-aux/bootstrap (po_download_command_format): New global.
38902         (download_po_files): Use rsync.
38903         (update_po_files): Don't remove .po files after download,
38904         so future rsync runs can take advantage of the copies.
38905
38906         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38907
38908         Solve the unnecessary-.po-file-regeneration problem once and for all.
38909         * build-aux/bootstrap (download_po_files): New function, renamed from
38910         get_translations.  Now, downloads, but doesn't update LINGUAS.
38911         (update_po_files): New function.
38912
38913         bootstrap: Ignore more.
38914         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38915         uniwidth to e.g., lib/.gitignore.
38916         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38917
38918         * build-aux/bootstrap: New setting: vc_ignore.
38919         (insert_sorted_if_absent): Create $file if absent.
38920         Adapt to new, possibly empty, list: $vc_ignore.
38921
38922         bootstrap: generate more ignorable names
38923         * build-aux/bootstrap (slurp): When generating ignorable names,
38924         also map .sin to .sed, .gperf to .c, and .y to .c.
38925
38926 2007-09-03  Jim Meyering  <jim@meyering.net>
38927
38928         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38929         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38930
38931 2007-09-02  Bruno Haible  <bruno@clisp.org>
38932
38933         Fix mis-recognition of 'mcs' on QNX 6.
38934         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38935         output contains the string "Mono".
38936         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38937         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38938
38939 2007-09-01  Bruno Haible  <bruno@clisp.org>
38940
38941         Fix collision between uniwidth/* and linebreak modules.
38942         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38943         u32_width): Remove declarations.
38944         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38945         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38946         streq3, streq2, streq1, streq0): Remove functions.
38947         (STREQ): Remove macro.
38948         (is_cjk_encoding): Remove function.
38949         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38950         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38951         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38952         * NEWS: Document the change.
38953
38954 2007-09-01  Bruno Haible  <bruno@clisp.org>
38955
38956         * lib/streq.h: Add double-inclusion guard.
38957
38958 2007-09-01  Karl Berry  <karl@gnu.org>
38959
38960         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38961
38962 2007-08-28  Jim Meyering  <jim@meyering.net>
38963
38964         Rename mreadlink_with_size to areadlink_with_size.
38965         * NEWS: Document the change.
38966         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38967         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38968         * lib/mreadlink.h: Rename this to...
38969         * lib/areadlink.h: ...this.
38970         * modules/mreadlink-with-size: Rename this to...
38971         * modules/areadlink-with-size: ...this.
38972         * lib/canonicalize.c: Reflect the renaming.
38973         * modules/canonicalize: Likewise.
38974
38975 2007-08-26  Bruno Haible  <bruno@clisp.org>
38976
38977         * gnulib-tool (func_import): When deciding which files to remove,
38978         consider also dangling symbolic links.
38979         Reported by Eric Blake.
38980
38981 2007-08-26  Bruno Haible  <bruno@clisp.org>
38982
38983         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38984
38985 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38986
38987         * lib/readline.c: Don't include getline.h, the prototype is now
38988         found in stdio.h.
38989
38990 2007-08-23  Jim Meyering  <jim@meyering.net>
38991
38992         Getdelim touchup.
38993         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38994         around the funlockfile call, since funlockfile never sets errno.
38995         Don't set errno upon failed realloc.
38996
38997 2007-08-22  Eric Blake  <ebb9@byu.net>
38998
38999         Getline touchups.
39000         * lib/getdelim.c (getdelim): Revert regression that required *n to
39001         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39003         getdelim, rather than whether implementation is missing.
39004         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39005         * lib/stdio_.h (getline): Also declare if replacement is
39006         required.
39007         * doc/functions/getdelim.texi: New file.
39008         * doc/functions/getline.texi: Likewise.
39009         * doc/gnulib.texi (Function Substitutes): Add new files.
39010         Reported by Bruno Haible.
39011
39012 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39013
39014         * users.txt: Add Guile.
39015
39016 2007-08-22  Eric Blake  <ebb9@byu.net>
39017
39018         * tests/test-getdelim.c (main): Use remove, not unlink.
39019         * tests/test-getline.c (main): Likewise.
39020
39021         Move getline and getdelim into stdio.h, per POSIX 200x.
39022         * modules/getline (Files): Remove getline.h.
39023         (Depends-on): Add stdio.
39024         (configure.ac): Add module indicator.
39025         * modules/getdelim (Files): Remove getdelim.h.
39026         (Depends-on): Add stdio.
39027         (configure.ac): Add module indicator.
39028         * modules/stdio (Makefile.am): Work with new indicators.
39029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39030         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39031         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39032         * lib/getdelim.h: Delete.
39033         * lib/getline.h: Delete.
39034         * lib/stdio_.h (getdelim, getline): Declare.
39035         * modules/getdelim-tests: New module.
39036         * modules/getline-tests: Likewise.
39037         * tests/test-getdelim.c: New file.
39038         * tests/test-getline.c: Likewise.
39039         * NEWS: Document the change.
39040         * lib/getline.c: Update choice of header.
39041         * lib/csharpcomp.c: Likewise.
39042         * lib/getpass.c: Likewise.
39043         * lib/javacomp.c: Likewise.
39044         * lib/javaversion.c: Likewise.
39045         * lib/yesno.c: Likewise.
39046         * lib/getdelim.c: Likewise.
39047         (getdelim): Set errno on failure, and avoid memory leak.
39048
39049 2007-08-19  Bruno Haible  <bruno@clisp.org>
39050
39051         * modules/closein (Depends-on): Add freadahead.
39052         * lib/closein.c: Include freadahead.h.
39053         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39054         is zero.
39055
39056 2007-08-19  Bruno Haible  <bruno@clisp.org>
39057
39058         * modules/freadahead-tests: New file.
39059         * tests/test-freadahead.sh: New file.
39060         * tests/test-freadahead.c: New file.
39061
39062         * modules/freadahead: New file.
39063         * lib/freadahead.h: New file.
39064         * lib/freadahead.c: New file.
39065         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39066         fbufmode, fpurge, freadable, fwritable.
39067
39068 2007-08-19  Eric Blake  <ebb9@byu.net>
39069
39070         Test yesno in combination with closein.
39071         * lib/yesno.c (yesno): Document use of stdin.
39072         * modules/yesno-tests (Files): New module.
39073         * tests/test-yesno.c (main): New file.
39074         * tests/test-yesno.sh: Likewise.
39075
39076 2007-08-19  Bruno Haible  <bruno@clisp.org>
39077
39078         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39079         * lib/fseeko.c (rpl_fseeko): Likewise.
39080         * lib/fseterr.c (fseterr): Likewise.
39081
39082 2007-08-19  Bruno Haible  <bruno@clisp.org>
39083
39084         * tests/test-lseek.c (main): Disable a test for BeOS.
39085         * doc/functions/lseek.texi: Document the BeOS bug.
39086
39087 2007-08-19  Bruno Haible  <bruno@clisp.org>
39088             Eric Blake  <ebb9@byu.net>
39089
39090         * lib/lseek.c: Include <sys/stat.h>.
39091         (rpl_lseek): Add workaround code also for Unix platforms.
39092         Needed for BeOS.
39093         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39094         * doc/functions/lseek.texi: Document BeOS definiency.
39095
39096 2007-08-18  Bruno Haible  <bruno@clisp.org>
39097
39098         * modules/fstrcmp-tests: New file.
39099         * tests/test-fstrcmp.c: New file.
39100
39101 2007-08-18  Bruno Haible  <bruno@clisp.org>
39102
39103         * modules/fstrcmp: New file, from GNU gettext with modifications.
39104         * lib/fstrcmp.h: New file, from GNU gettext.
39105         * lib/fstrcmp.c: New file, from GNU gettext.
39106         * MODULES.html.sh (String handling): Add fstrcmp.
39107
39108 2007-08-18  Bruno Haible  <bruno@clisp.org>
39109
39110         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39111         'bool'.
39112         (diag, compareseq): Remove const from the ctxt argument.
39113         (USE_HEURISTIC): Undefine at the end.
39114
39115 2007-08-18  Jim Meyering  <jim@meyering.net>
39116
39117         New file: lib/idcache.h
39118         * NEWS: Mention the addition.
39119         * modules/idcache (Files): Add lib/idcache.h
39120         * lib/idcache.c: Include "idcache.h".
39121         Don't include <sys/types.h>.
39122         Add a FIXME comment.
39123         Move file-scoped "static" declarations to the top.
39124         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39125
39126 2007-08-17  Bruno Haible  <bruno@clisp.org>
39127         and Paul Eggert  <eggert@cs.ucla.edu>
39128
39129         * MODULES.html.sh: Add diffseq.
39130         * modules/diffseq: New file.
39131         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39132         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39133
39134 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39135
39136         Import changes from coreutils for bootstrap script.
39137
39138         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39139
39140         * build-aux/bootstrap (slurp): Work even in environments where
39141         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39142         current code does not slurp files whose names start with ".", and
39143         this looks like it might be a troublesome area.
39144
39145         2007-07-11  Jim Meyering  <jim@meyering.net>
39146
39147         If there's a GPL vN copyright comment, require that N == 3.
39148
39149         2007-07-08  Jim Meyering  <jim@meyering.net>
39150
39151         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39152         * build-aux/bootstrap (mam_template): Move definition out of loop.
39153
39154         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39155
39156         * build-aux/bootstrap (symlink_to_dir): Rename function from
39157         symlink_to_gnulib.  Add a directory parameter.  Update all
39158         callers.
39159         (cp_mark_as_generated): Also check for -- and link to -- files in
39160         gl/.
39161
39162         2007-07-08  Jim Meyering  <jim@meyering.net>
39163
39164         Adapt to deeper hierarchy in gnulib.
39165         * build-aux/bootstrap (symlink_to_dir): If the destination
39166         directory doesn't exist, create it. This is required at least for
39167         "lib/uniwidth/cjk.h".
39168
39169         2007-05-15  Jim Meyering  <jim@meyering.net>
39170
39171         * build-aux/bootstrap: Now that generated Makefile.am files
39172         are no longer under version control, they must be created at
39173         bootstrap time.
39174
39175 2007-08-14  Ben Pfaff  <blp@gnu.org>
39176
39177         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39178
39179 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39180
39181         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39182         given the changes below.
39183         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39184         even on hosts that have padding bits beyond the supported 64.
39185
39186 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39187
39188         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39189         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39190         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39191         depends on it.
39192         (xstrtol_error): Remove.
39193         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39194         but with a different signature.
39195         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39196         * lib/xstrtol-error.c: Include exitfail.h.
39197         (xstrtol_fatal): New function, with a different signature from the
39198         old xstrtol_error, so that the caller need not worry about passing
39199         in an exit status, or about storage management of the option argument.
39200         (xstrtol_error): Now a static function.  Redo signature to
39201         implement xstrtol_fatal.  Output the correct number of hyphens in
39202         front of the option so that the caller need not worry about
39203         storage management.
39204         (N_): New macro.
39205         (_): Remove; not used now.
39206         * modules/xstrtol: Depend on getopt.
39207         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39208         of old STRTOL_FATAL_ERROR macro.
39209         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39210         of test program.
39211         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39212         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39213
39214 2007-08-08  Eric Blake  <ebb9@byu.net>
39215
39216         * lib/xstrtol-error.c: Add missing include.
39217
39218         Move xstrtol messages into gnulib domain, when --pobase is used.
39219         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39220         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39221         * modules/xstrtol (Files): Distribute new file.
39222         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39223         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39224         * tests/test-xstrtol.c: ...into new file.
39225         * tests/test-xstrtoul.c: Also test xstrtoul.
39226         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39227         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39228         * tests/test-xstrtol.sh: Drive the tests.
39229         * tests/test-xstrtoimax.sh: Likewise.
39230         * tests/test-xstrtoumax.sh: Likewise.
39231         * modules/xstrtol-tests: New module.
39232         * modules/xstrtoimax-tests: Likewise.
39233         * modules/xstrtoumax-tests: Likewise.
39234
39235 2007-08-08  Jim Meyering  <jim@meyering.net>
39236
39237         New function: mfile_name_concat.
39238         * lib/filenamecat.c (mfile_name_concat): New function, just like
39239         file_name_concat, but return NULL upon failure rather than exiting
39240         with a diagnostic.
39241         * lib/filenamecat.h: Declare it.
39242
39243 2007-08-07  Bruno Haible  <bruno@clisp.org>
39244
39245         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39246         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39247         warning from gcc.
39248         Reported by Eric Blake.
39249
39250 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39251
39252         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39253         * modules/crypto/arcfour (License): Likewise.
39254         * modules/crypto/des-tests (License): Likewise.
39255         * modules/crypto/gc-arctwo-tests (License): Likewise.
39256         * modules/crypto/gc-des-tests (License): Likewise.
39257         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39258         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39259         * modules/crypto/gc-md2-tests (License): Likewise.
39260         * modules/crypto/gc-md4-tests (License): Likewise.
39261         * modules/crypto/gc-md5-tests (License): Likewise.
39262         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39263         * modules/crypto/gc-rijndael-tests (License): Likewise.
39264         * modules/crypto/gc-sha1-tests (License): Likewise.
39265         * modules/crypto/gc-tests (License): Likewise.
39266         * modules/crypto/hmac-md5 (License): Likewise.
39267         * modules/crypto/hmac-sha1 (License): Likewise.
39268         * modules/crypto/md2-tests (License): Likewise.
39269         * modules/crypto/md4-tests (License): Likewise.
39270         * modules/crypto/md5 (License): Likewise.
39271         * modules/crypto/rijndael (License): Likewise.
39272         * modules/crypto/sha1 (License): Likewise.
39273         * modules/memxor (License): Likewise.
39274
39275 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39276         and Bruno Haible  <bruno@clisp.org>
39277
39278         * NEWS: Describe interface changes to human, xstrtol.
39279         * lib/human.h: Include <xstrtol.h>.
39280         (human_options): Return enum strtol_error, not int.  Remove
39281         bool arg; take int * instead.
39282         * lib/human.c: Don't include "gettext.h".
39283         (_): Remove; no longer used.
39284         Don't include <xstrtol.h>, since human.h does it.
39285         (human_options): Adjust to abovementioned interface changes.
39286         Do not report error to stderr; that's now the caller's
39287         responsibility.
39288         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39289         interface change.
39290         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39291         Str, Argument_type_string.  All uses changed.  Put " argument"
39292         in diagnostics to make them clearer.  Change wording of suffix
39293         message for clarity.
39294         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39295         Argument_type_string.
39296         (STRTOL_FATAL_WARN): Remove; no longer used.
39297         * modules/human (Depends-on): Remove gettext-h.
39298
39299 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39300
39301         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39302
39303 2007-07-31  Bruno Haible  <bruno@clisp.org>
39304
39305         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39306         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39307         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39308
39309 2007-07-31  Bruno Haible  <bruno@clisp.org>
39310
39311         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39312         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39313
39314 2007-07-30  Bruno Haible  <bruno@clisp.org>
39315
39316         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39317         * modules/c-ctype (License): Likewise.
39318         * modules/c-strcase (License): Likewise.
39319         * modules/check-version (License): Likewise.
39320         * modules/iconv (License): Likewise.
39321         * modules/iconv_open (License): Likewise.
39322         * modules/read-file (License): Likewise.
39323         * modules/striconv (License): Likewise.
39324         * modules/strverscmp (License): Likewise.
39325         * modules/vasprintf (License): Likewise.
39326         * modules/crypto/des (License): Likewise.
39327         * modules/crypto/gc (License): Likewise.
39328         * modules/crypto/gc-arcfour (License): Likewise.
39329         * modules/crypto/gc-arctwo (License): Likewise.
39330         * modules/crypto/gc-des (License): Likewise.
39331         * modules/crypto/gc-hmac-md5 (License): Likewise.
39332         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39333         * modules/crypto/gc-md2 (License): Likewise.
39334         * modules/crypto/gc-md4 (License): Likewise.
39335         * modules/crypto/gc-md5 (License): Likewise.
39336         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39337         * modules/crypto/gc-random (License): Likewise.
39338         * modules/crypto/gc-rijndael (License): Likewise.
39339         * modules/crypto/gc-sha1 (License): Likewise.
39340         * modules/crypto/md2 (License): Likewise.
39341         * modules/crypto/md4 (License): Likewise.
39342
39343 2007-07-30  Jim Meyering  <jim@meyering.net>
39344
39345         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39346         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39347         it has valid stat data.  This bug would cause du not to count the
39348         sizes of inaccessible directories.
39349         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39350         in <http://bugzilla.redhat.com/250077>.
39351
39352 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39353             Bruno Haible  <bruno@clisp.org>
39354
39355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39356         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39357         #include_next, gives a diagnostic about it, but reports no error in
39358         the exit code.
39359         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39360
39361 2007-07-24  Ben Pfaff  <blp@gnu.org>
39362
39363         Improve name: "count-one-bits" is better than "popcount".
39364         * MODULES.html.sh: Update name.
39365         * lib/popcount.h: Renamed lib/count-one-bits.h.
39366         (popcount): Renamed count_one_bits.
39367         (popcountl): Renamed count_one_bits_l.
39368         (popcountll): Renamed count_one_bits_ll.
39369         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39370         * modules/popcount: Renamed module/count-one-bits.
39371         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39372         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39373
39374 2007-07-23  Ben Pfaff  <blp@gnu.org>
39375
39376         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39377         better code generation, and add U to large constants to avoid
39378         warnings, in non-GCC case.
39379         Suggested by Bruno Haible.
39380
39381 2007-07-23  Ben Pfaff  <blp@gnu.org>
39382
39383         * lib/popcount.h: Use verify_true instead of if...abort.
39384         * modules/popcount: Depend on verify module.
39385         Suggested by Jim Meyering.
39386
39387 2007-07-23  Bruno Haible  <bruno@clisp.org>
39388
39389         * gnulib-tool (func_import): Create a .cvsignore file also when the
39390         directory is not yet in CVS but the toplevel directory is. When
39391         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39392         Reported by Karl Berry.
39393
39394 2007-07-22  Ben Pfaff  <blp@gnu.org>
39395
39396         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39397         case.
39398         Suggested by Eric Blake.
39399
39400 2007-07-22  Ben Pfaff  <blp@gnu.org>
39401
39402         New module: popcount.
39403         * MODULES.html.sh: Add popcount.
39404         * modules/popcount: New file.
39405         * modules/popcount-tests: New file.
39406         * tests/test-popcount.c: New file.
39407         * lib/popcount.h: New file.
39408         * m4/popcount.m4: New file.
39409
39410 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39411
39412         * build-aux/announce-gen: Update to GPLv3.
39413
39414         * build-aux/config.guess: Update from config.
39415
39416 2007-07-21  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39419         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39420
39421 2007-07-20  Jim Meyering  <jim@meyering.net>
39422
39423         * check-module: Diagnose a self-dependency.
39424
39425 2007-07-19  Bruno Haible  <bruno@clisp.org>
39426
39427         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39428         empty.
39429         Reported by Eric Blake.
39430
39431 2007-07-18  Bruno Haible  <bruno@clisp.org>
39432
39433         * gnulib-tool: New options --po-base, --po-domain.
39434         (func_usage): Document them.
39435         (pobase, po_domain): New variables.
39436         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39437         DEFAULT_TEXT_DOMAIN.
39438         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39439         (func_import): Consider pobase and po_domain. Create a po/ directory.
39440         (func_create_testdir): Set pobase and po_domain to empty.
39441         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39442         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39443
39444 2007-07-18  Bruno Haible  <bruno@clisp.org>
39445
39446         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39447         EXTRA_DIST augmentation for files in build-aux/.
39448
39449 2007-07-16  Bruno Haible  <bruno@clisp.org>
39450
39451         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39452         * modules/getdelim (License): Likewise.
39453
39454 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39455
39456         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39457         * modules/d-type (License): Likewise.
39458         * modules/extensions (License): Likewise.
39459         * modules/fnmatch (License): Likewise.
39460         * modules/fseeko (License): Likewise.
39461         * modules/getaddrinfo (License): Likewise.
39462         * modules/getline (License): Likewise.
39463         * modules/getlogin_r (License): Likewise.
39464         * modules/getpass (License): Likewise.
39465         * modules/gettimeofday (License): Likewise.
39466         * modules/glob (License): Likewise.
39467         * modules/inet_ntop (License): Likewise.
39468         * modules/malloc (License): Likewise.
39469         * modules/malloca (License): Likewise.
39470         * modules/memmem (License): Likewise.
39471         * modules/mempcpy (License): Likewise.
39472         * modules/memset (License): Likewise.
39473         * modules/minmax (License): Likewise.
39474         * modules/mktime (License): Likewise.
39475         * modules/netinet_in (License): Likewise.
39476         * modules/pathmax (License): Likewise.
39477         * modules/poll (License): Likewise.
39478         * modules/regex (License): Likewise.
39479         * modules/snprintf (License): Likewise.
39480         * modules/stdbool (License): Likewise.
39481         * modules/stdint (License): Likewise.
39482         * modules/stdio (License): Likewise.
39483         * modules/strcase (License): Likewise.
39484         * modules/strcasestr (License): Likewise.
39485         * modules/strdup (License): Likewise.
39486         * modules/string (License): Likewise.
39487         * modules/strndup (License): Likewise.
39488         * modules/strnlen (License): Likewise.
39489         * modules/strpbrk (License): Likewise.
39490         * modules/strptime (License): Likewise.
39491         * modules/strsep (License): Likewise.
39492         * modules/sys_select (License): Likewise.
39493         * modules/sys_socket (License): Likewise.
39494         * modules/sys_stat (License): Likewise.
39495         * modules/sys_time (License): Likewise.
39496         * modules/time (License): Likewise.
39497         * modules/time_r (License): Likewise.
39498         * modules/timegm (License): Likewise.
39499         * modules/unistd (License): Likewise.
39500         * modules/vsnprintf (License): Likewise.
39501         * modules/wctype (License): Likewise.
39502
39503 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39504
39505         * modules/argz (License): LGPLv2+.
39506
39507 2007-07-15  Karl Berry  <karl@gnu.org>
39508
39509         * doc/gnulib.texi: revise node structure per new fdl.texi.
39510
39511 2007-07-14  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39514         the output file.
39515         * lib/uniname/uninames.h: Regenerated.
39516
39517 2007-07-14  Karl Berry  <karl@gnu.org>
39518
39519         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39520         omitting sectioning and index commands.
39521
39522 2007-07-13  Bruno Haible  <bruno@clisp.org>
39523
39524         New gnulib-tool option --more-symlinks.
39525         * gnulib-tool (func_usage): Document --more-symlinks.
39526         (do_copyrights): New variable.
39527         Recognize option --more-symlinks.
39528         (func_import): Don't add a copyright notice transform to
39529         sed_transform_lib_file if do_copyrights is empty.
39530
39531 2007-07-13  Bruno Haible  <bruno@clisp.org>
39532
39533         * lib/vasnprintf.c (decimal_point_char): Define also if
39534         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39535         && !NEED_PRINTF_DIRECTIVE_A.
39536         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39537         Gary V. Vaughan <gary@gnu.org>.
39538
39539 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39540
39541         * lib/inttypes_.h: Undo previous change, since it was fixed
39542         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39543
39544 2007-07-13  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39547         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39548
39549 2007-07-13  Jim Meyering  <jim@meyering.net>
39550
39551         df: Don't fail for Tru64's "file-on-file mount".
39552         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39553         so we fall through and use statfs instead.  Details here:
39554         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39555         Reported by Albert Chin.
39556
39557 2007-07-13  Bruno Haible  <bruno@clisp.org>
39558
39559         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39560         * modules/configmake (License): Likewise.
39561         * modules/gettext (License): Likewise.
39562         * modules/gettext-h (License): Likewise.
39563         * modules/include_next (License): Likewise.
39564         * modules/link-warning (License): Likewise.
39565         * modules/localcharset (License): Likewise.
39566         * modules/localename (License): Likewise.
39567         * modules/lock (License): Likewise.
39568         * modules/relocatable-lib-lgpl (License): Likewise.
39569         * modules/size_max (License): Likewise.
39570         * modules/vasnprintf (License): Likewise.
39571         * modules/wchar (License): Likewise.
39572         * modules/xsize (License): Likewise.
39573
39574 2007-07-13  Bruno Haible  <bruno@clisp.org>
39575
39576         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39577         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39578
39579 2007-07-12  Bruno Haible  <bruno@clisp.org>
39580
39581         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39582         in the modules files.
39583
39584 2007-07-11  Karl Berry  <karl@gnu.org>
39585
39586         * MODULES.html.sh (func_module): use
39587          sed -e '\|^'"${includefile}"'$|d'
39588          instead of /.../d, to avoid errors on $includefile's containing /.
39589
39590 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39591
39592         * gnulib-tool (func_import): Avoid duplication of --avoid
39593         statements
39594         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39595         names to `_' in variable names.
39596
39597 2007-07-10  Eric Blake  <ebb9@byu.net>
39598
39599         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39600         * NEWS: Document this change.
39601
39602 2007-07-08  Bruno Haible  <bruno@clisp.org>
39603
39604         Update to Unicode 5.0.
39605         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39606         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39607         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39608         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39609         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39610         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39611         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39612         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39613         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39614         U+10A3F, U+1D242..U+1D244.
39615         (nonspacing_table_ind): Update.
39616         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39617         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39618
39619 2007-07-08  Bruno Haible  <bruno@clisp.org>
39620
39621         Update to Unicode 5.0.
39622         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39623         code transform. Extend the name index field of unicode_name_to_code and
39624         unicode_code_to_name from 16 to 24 bits.
39625         * lib/uniname/uniname.c (unicode_character_name,
39626         unicode_name_character): Add the range 0x12xxx to the code transform.
39627         * lib/uniname/uninames.h: Regenerated.
39628         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39629
39630 2007-07-07  Bruno Haible  <bruno@clisp.org>
39631
39632         * modules/wcwidth-tests: New file.
39633         * tests/test-wcwidth.c: New file.
39634
39635         Work around MacOS X wcwidth() bug.
39636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39637         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39638         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39639         original wcwidth in non-UTF-8 locales.
39640         * modules/wcwidth (Depends-on): Add localcharset, streq,
39641         uniwidth/width.
39642         * doc/functions/wcwidth.texi: Update.
39643
39644 2007-07-07  Bruno Haible  <bruno@clisp.org>
39645
39646         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39647         (wcwidth): New declaration.
39648         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39649         macros.
39650         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39651         here. Prepare for creating <wchar.h> unconditionally.
39652         * modules/wchar (Depends-on): Add link-warning.
39653         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39654         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39655         * lib/wcwidth.h: Remove file.
39656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39657         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39658         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39659         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39660         (Include): Replace wcwidth.h with <wchar.h>.
39661         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39662         * lib/mbchar.h: Don't include wcwidth.h.
39663         * lib/mbswidth.c: Likewise.
39664         * NEWS: Mention the change.
39665
39666 2007-07-07  Bruno Haible  <bruno@clisp.org>
39667
39668         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39669         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39670         definition with an external declaration.
39671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39672         defined as a function. Remove AC_C_INLINE requirement.
39673         * modules/wcwidth (Files): Add lib/wcwidth.c.
39674         (Makefile.am): Remove redundant statement.
39675
39676 2007-07-07  Bruno Haible  <bruno@clisp.org>
39677
39678         * MODULES.html.sh (Unicode string functions): Add the new modules.
39679
39680         * tests/uniwidth/test-u32-strwidth.c: New file.
39681         * modules/uniwidth/u32-strwidth-tests: New file.
39682
39683         * lib/uniwidth/u32-strwidth.c: New file.
39684         * modules/uniwidth/u32-strwidth: New file.
39685
39686         * tests/uniwidth/test-u16-strwidth.c: New file.
39687         * modules/uniwidth/u16-strwidth-tests: New file.
39688
39689         * lib/uniwidth/u16-strwidth.c: New file.
39690         * modules/uniwidth/u16-strwidth: New file.
39691
39692         * tests/uniwidth/test-u8-strwidth.c: New file.
39693         * modules/uniwidth/u8-strwidth-tests: New file.
39694
39695         * lib/uniwidth/u8-strwidth.c: New file.
39696         * modules/uniwidth/u8-strwidth: New file.
39697
39698         * tests/uniwidth/test-u32-width.c: New file.
39699         * modules/uniwidth/u32-width-tests: New file.
39700
39701         * lib/uniwidth/u32-width.c: New file.
39702         * modules/uniwidth/u32-width: New file.
39703
39704         * tests/uniwidth/test-u16-width.c: New file.
39705         * modules/uniwidth/u16-width-tests: New file.
39706
39707         * lib/uniwidth/u16-width.c: New file.
39708         * modules/uniwidth/u16-width: New file.
39709
39710         * tests/uniwidth/test-u8-width.c: New file.
39711         * modules/uniwidth/u8-width-tests: New file.
39712
39713         * lib/uniwidth/u8-width.c: New file.
39714         * modules/uniwidth/u8-width: New file.
39715
39716         * tests/uniwidth/test-uc_width.c: New file.
39717         * modules/uniwidth/width-tests: New file.
39718
39719         * lib/uniwidth/width.c: New file, from GNU libiconv.
39720         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39721         * modules/uniwidth/width: New file.
39722
39723         * lib/uniwidth.h: New file, from GNU libiconv.
39724         * modules/uniwidth/base: New file.
39725
39726 2007-07-07  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/uniname.h: New file, from GNU gettext.
39729         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39730         * lib/uniname/uninames.h: New file, from GNU gettext.
39731         * lib/uniname/uniname.c: New file, from GNU gettext.
39732         * tests/uniname/test-uninames.sh: New file.
39733         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39734         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39735         * modules/uniname/base: New file.
39736         * modules/uniname/uniname: New file.
39737         * modules/uniname/uniname-tests: New file.
39738         * MODULES.html.sh (Unicode string functions): Add the new modules.
39739
39740 2007-07-06  Bruno Haible  <bruno@clisp.org>
39741
39742         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39743
39744 2007-07-06  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39747         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39748         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39749         include <sys/time.h>.
39750         Reported by Eric Blake.
39751
39752 2007-07-06  Eric Blake  <ebb9@byu.net>
39753
39754         Fix testing canonicalize on cygwin.
39755         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39756         Revert patch from 2007-06-19.
39757         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39758         canonicalize module is also in use.
39759         * tests/test-canonicalize.c: New file.
39760         * tests/test-canonicalize.sh: Likewise.
39761         * modules/canonicalize-tests: Likewise.
39762
39763 2007-07-06  Jim Meyering  <jim@meyering.net>
39764
39765         * lib/getugroups.c (getugroups): Detect getgrent failure.
39766         Adjust comment to reflect reality: this function may return -1.
39767
39768 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39769
39770         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39771         the new TP address.
39772         (usage): Fix typo
39773         (gnulib_mk): New variable.
39774
39775 2007-07-05  Jim Meyering  <jim@meyering.net>
39776
39777         Don't let endgrent clobber errno, no matter how improbable.
39778         * lib/getugroups.c (getugroups): Save and restore errno around
39779         endgrent call.
39780
39781         Close the group DB even when failing with 2^31 or more members.
39782         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39783
39784 2007-07-04  Jim Meyering  <jim@meyering.net>
39785
39786         * lib/getugroups.h: New file.
39787         * lib/getugroups.c: Include "getugroups.h".
39788         Remove uses of "register" keyword.
39789         Move local variable, "cp", down into scope where used.
39790         Give "username" parameter the "const" attribute.
39791         * modules/getugroups (Files): Add lib/getugroups.h
39792
39793 2007-07-04  Karl Berry  <karl@gnu.org>
39794
39795         * MODULES.html.sh (func_all_modules): Complete rename of
39796         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39797
39798 2007-07-02  Bruno Haible  <bruno@clisp.org>
39799
39800         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39801         mode, when inttypes.h comes from gnulib.
39802         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39803
39804 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39805
39806         * NEWS: Mention lgpl module name change.
39807
39808         * modules/lgpl-2.1: Renamed from lgpl.
39809
39810         * NEWS: Mention gpl module name change.
39811
39812         * modules/gpl-3.0: New file, based on gpl-2.0.
39813
39814         * modules/gpl-2.0: Renamed from gpl.
39815
39816         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39817         doc/gpl-2.0.texi.
39818
39819 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39820
39821         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39822         #define __STDC_LIMIT_MACROS temporarily while including
39823         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39824         Problem reported by Joel E. Denny in
39825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39826
39827 2007-07-01  Bruno Haible  <bruno@clisp.org>
39828
39829         * lib/unistdio.h: New file.
39830         * lib/unistdio/u-asnprintf.h: New file.
39831         * lib/unistdio/u-asprintf.h: New file.
39832         * lib/unistdio/u-printf-args.c: New file.
39833         * lib/unistdio/u-printf-args.h: New file.
39834         * lib/unistdio/u-printf-parse.h: New file.
39835         * lib/unistdio/u-snprintf.h: New file.
39836         * lib/unistdio/u-sprintf.h: New file.
39837         * lib/unistdio/u-vasprintf.h: New file.
39838         * lib/unistdio/u-vsnprintf.h: New file.
39839         * lib/unistdio/u-vsprintf.h: New file.
39840         * lib/unistdio/ulc-asnprintf.c: New file.
39841         * lib/unistdio/ulc-asprintf.c: New file.
39842         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39843         * lib/unistdio/ulc-printf-parse.c: New file.
39844         * lib/unistdio/ulc-snprintf.c: New file.
39845         * lib/unistdio/ulc-sprintf.c: New file.
39846         * lib/unistdio/ulc-vasnprintf.c: New file.
39847         * lib/unistdio/ulc-vasprintf.c: New file.
39848         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39849         * lib/unistdio/ulc-vsnprintf.c: New file.
39850         * lib/unistdio/ulc-vsprintf.c: New file.
39851         * lib/unistdio/u8-asnprintf.c: New file.
39852         * lib/unistdio/u8-asprintf.c: New file.
39853         * lib/unistdio/u8-printf-parse.c: New file.
39854         * lib/unistdio/u8-snprintf.c: New file.
39855         * lib/unistdio/u8-sprintf.c: New file.
39856         * lib/unistdio/u8-vasnprintf.c: New file.
39857         * lib/unistdio/u8-vasprintf.c: New file.
39858         * lib/unistdio/u8-vsnprintf.c: New file.
39859         * lib/unistdio/u8-vsprintf.c: New file.
39860         * lib/unistdio/u8-u8-asnprintf.c: New file.
39861         * lib/unistdio/u8-u8-asprintf.c: New file.
39862         * lib/unistdio/u8-u8-snprintf.c: New file.
39863         * lib/unistdio/u8-u8-sprintf.c: New file.
39864         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39865         * lib/unistdio/u8-u8-vasprintf.c: New file.
39866         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39867         * lib/unistdio/u8-u8-vsprintf.c: New file.
39868         * lib/unistdio/u16-asnprintf.c: New file.
39869         * lib/unistdio/u16-asprintf.c: New file.
39870         * lib/unistdio/u16-printf-parse.c: New file.
39871         * lib/unistdio/u16-snprintf.c: New file.
39872         * lib/unistdio/u16-sprintf.c: New file.
39873         * lib/unistdio/u16-vasnprintf.c: New file.
39874         * lib/unistdio/u16-vasprintf.c: New file.
39875         * lib/unistdio/u16-vsnprintf.c: New file.
39876         * lib/unistdio/u16-vsprintf.c: New file.
39877         * lib/unistdio/u16-u16-asnprintf.c: New file.
39878         * lib/unistdio/u16-u16-asprintf.c: New file.
39879         * lib/unistdio/u16-u16-snprintf.c: New file.
39880         * lib/unistdio/u16-u16-sprintf.c: New file.
39881         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39882         * lib/unistdio/u16-u16-vasprintf.c: New file.
39883         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39884         * lib/unistdio/u16-u16-vsprintf.c: New file.
39885         * lib/unistdio/u32-asnprintf.c: New file.
39886         * lib/unistdio/u32-asprintf.c: New file.
39887         * lib/unistdio/u32-printf-parse.c: New file.
39888         * lib/unistdio/u32-snprintf.c: New file.
39889         * lib/unistdio/u32-sprintf.c: New file.
39890         * lib/unistdio/u32-vasnprintf.c: New file.
39891         * lib/unistdio/u32-vasprintf.c: New file.
39892         * lib/unistdio/u32-vsnprintf.c: New file.
39893         * lib/unistdio/u32-vsprintf.c: New file.
39894         * lib/unistdio/u32-u32-asnprintf.c: New file.
39895         * lib/unistdio/u32-u32-asprintf.c: New file.
39896         * lib/unistdio/u32-u32-snprintf.c: New file.
39897         * lib/unistdio/u32-u32-sprintf.c: New file.
39898         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39899         * lib/unistdio/u32-u32-vasprintf.c: New file.
39900         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39901         * lib/unistdio/u32-u32-vsprintf.c: New file.
39902         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39903         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39904         * tests/unistdio/test-ulc-printf1.h: New file.
39905         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39906         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39907         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39908         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39909         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39910         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39911         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39912         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39913         * tests/unistdio/test-u8-asnprintf1.c: New file.
39914         * tests/unistdio/test-u8-asnprintf1.h: New file.
39915         * tests/unistdio/test-u8-printf1.h: New file.
39916         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39917         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39918         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39919         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39920         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39921         * tests/unistdio/test-u8-vasprintf1.c: New file.
39922         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39923         * tests/unistdio/test-u8-vsprintf1.c: New file.
39924         * tests/unistdio/test-u16-asnprintf1.c: New file.
39925         * tests/unistdio/test-u16-asnprintf1.h: New file.
39926         * tests/unistdio/test-u16-printf1.h: New file.
39927         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39928         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39929         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39930         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39931         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39932         * tests/unistdio/test-u16-vasprintf1.c: New file.
39933         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39934         * tests/unistdio/test-u16-vsprintf1.c: New file.
39935         * tests/unistdio/test-u32-asnprintf1.c: New file.
39936         * tests/unistdio/test-u32-asnprintf1.h: New file.
39937         * tests/unistdio/test-u32-printf1.h: New file.
39938         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39939         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39940         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39941         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39942         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39943         * tests/unistdio/test-u32-vasprintf1.c: New file.
39944         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39945         * tests/unistdio/test-u32-vsprintf1.c: New file.
39946         * modules/unistdio/base: New file.
39947         * modules/unistdio/u-printf-args: New file.
39948         * modules/unistdio/ulc-asnprintf: New file.
39949         * modules/unistdio/ulc-asprintf: New file.
39950         * modules/unistdio/ulc-fprintf: New file.
39951         * modules/unistdio/ulc-printf-parse: New file.
39952         * modules/unistdio/ulc-snprintf: New file.
39953         * modules/unistdio/ulc-sprintf: New file.
39954         * modules/unistdio/ulc-vasnprintf: New file.
39955         * modules/unistdio/ulc-vasprintf: New file.
39956         * modules/unistdio/ulc-vfprintf: New file.
39957         * modules/unistdio/ulc-vsnprintf: New file.
39958         * modules/unistdio/ulc-vsprintf: New file.
39959         * modules/unistdio/u8-asnprintf: New file.
39960         * modules/unistdio/u8-asprintf: New file.
39961         * modules/unistdio/u8-printf-parse: New file.
39962         * modules/unistdio/u8-snprintf: New file.
39963         * modules/unistdio/u8-sprintf: New file.
39964         * modules/unistdio/u8-vasnprintf: New file.
39965         * modules/unistdio/u8-vasprintf: New file.
39966         * modules/unistdio/u8-vsnprintf: New file.
39967         * modules/unistdio/u8-vsprintf: New file.
39968         * modules/unistdio/u8-u8-asnprintf: New file.
39969         * modules/unistdio/u8-u8-asprintf: New file.
39970         * modules/unistdio/u8-u8-snprintf: New file.
39971         * modules/unistdio/u8-u8-sprintf: New file.
39972         * modules/unistdio/u8-u8-vasnprintf: New file.
39973         * modules/unistdio/u8-u8-vasprintf: New file.
39974         * modules/unistdio/u8-u8-vsnprintf: New file.
39975         * modules/unistdio/u8-u8-vsprintf: New file.
39976         * modules/unistdio/u16-asnprintf: New file.
39977         * modules/unistdio/u16-asprintf: New file.
39978         * modules/unistdio/u16-printf-parse: New file.
39979         * modules/unistdio/u16-snprintf: New file.
39980         * modules/unistdio/u16-sprintf: New file.
39981         * modules/unistdio/u16-vasnprintf: New file.
39982         * modules/unistdio/u16-vasprintf: New file.
39983         * modules/unistdio/u16-vsnprintf: New file.
39984         * modules/unistdio/u16-vsprintf: New file.
39985         * modules/unistdio/u16-u16-asnprintf: New file.
39986         * modules/unistdio/u16-u16-asprintf: New file.
39987         * modules/unistdio/u16-u16-snprintf: New file.
39988         * modules/unistdio/u16-u16-sprintf: New file.
39989         * modules/unistdio/u16-u16-vasnprintf: New file.
39990         * modules/unistdio/u16-u16-vasprintf: New file.
39991         * modules/unistdio/u16-u16-vsnprintf: New file.
39992         * modules/unistdio/u16-u16-vsprintf: New file.
39993         * modules/unistdio/u32-asnprintf: New file.
39994         * modules/unistdio/u32-asprintf: New file.
39995         * modules/unistdio/u32-printf-parse: New file.
39996         * modules/unistdio/u32-snprintf: New file.
39997         * modules/unistdio/u32-sprintf: New file.
39998         * modules/unistdio/u32-vasnprintf: New file.
39999         * modules/unistdio/u32-vasprintf: New file.
40000         * modules/unistdio/u32-vsnprintf: New file.
40001         * modules/unistdio/u32-vsprintf: New file.
40002         * modules/unistdio/u32-u32-asnprintf: New file.
40003         * modules/unistdio/u32-u32-asprintf: New file.
40004         * modules/unistdio/u32-u32-snprintf: New file.
40005         * modules/unistdio/u32-u32-sprintf: New file.
40006         * modules/unistdio/u32-u32-vasnprintf: New file.
40007         * modules/unistdio/u32-u32-vasprintf: New file.
40008         * modules/unistdio/u32-u32-vsnprintf: New file.
40009         * modules/unistdio/u32-u32-vsprintf: New file.
40010         * modules/unistdio/ulc-asnprintf-tests: New file.
40011         * modules/unistdio/ulc-vasnprintf-tests: New file.
40012         * modules/unistdio/ulc-vasprintf-tests: New file.
40013         * modules/unistdio/ulc-vsnprintf-tests: New file.
40014         * modules/unistdio/ulc-vsprintf-tests: New file.
40015         * modules/unistdio/u8-asnprintf-tests: New file.
40016         * modules/unistdio/u8-vasnprintf-tests: New file.
40017         * modules/unistdio/u8-vasprintf-tests: New file.
40018         * modules/unistdio/u8-vsnprintf-tests: New file.
40019         * modules/unistdio/u8-vsprintf-tests: New file.
40020         * modules/unistdio/u16-asnprintf-tests: New file.
40021         * modules/unistdio/u16-vasnprintf-tests: New file.
40022         * modules/unistdio/u16-vasprintf-tests: New file.
40023         * modules/unistdio/u16-vsnprintf-tests: New file.
40024         * modules/unistdio/u16-vsprintf-tests: New file.
40025         * modules/unistdio/u32-asnprintf-tests: New file.
40026         * modules/unistdio/u32-vasnprintf-tests: New file.
40027         * modules/unistdio/u32-vasprintf-tests: New file.
40028         * modules/unistdio/u32-vsnprintf-tests: New file.
40029         * modules/unistdio/u32-vsprintf-tests: New file.
40030         * MODULES.html.sh (Unicode string functions): Add the new modules.
40031
40032 2007-07-01  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/sprintf.c (sprintf): Limit the available length estimation,
40035         to avoid address wraparound.
40036         * lib/vsprintf.c (vsprintf): Likewise.
40037         * modules/sprintf-posix (Dependencies): Add stdint.
40038         * modules/vsprintf-posix (Dependencies): Likewise.
40039
40040 2007-07-01  Bruno Haible  <bruno@clisp.org>
40041
40042         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40043         Windows PATH as well. Conservative double-quoting. Comments.
40044
40045 2007-07-01  Bruno Haible  <bruno@clisp.org>
40046             Eric Blake  <ebb9@byu.net>
40047             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40048
40049         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40050         empty components in $PATH, denoting '.'.
40051
40052 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40053
40054         * gnulib-tool: Fix indentation.
40055         (func_create_megatestdir): Likewise.
40056         Report by Bruno Haible.
40057
40058 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40059
40060         Sync from Automake.
40061         * build-aux/gnupload: Fix shell portability issues with for loops.
40062         Report by Karl Berry.
40063
40064 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40065
40066         * build-aux/maint.mk (POURL): Use translationproject.org.
40067
40068 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40069             Bruno Haible  <bruno@clisp.org>
40070
40071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40072         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40073         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40074         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40075         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40076
40077 2007-06-27  Bruno Haible  <bruno@clisp.org>
40078
40079         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40080         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40081
40082 2007-06-26  Karl Berry  <karl@gnu.org>
40083
40084         * MODULES.html.sh: remove xreadlink-with-size.
40085
40086 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40087
40088         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40089         method that I hope also handles the double-include problem noted
40090         by Bruno Haible in
40091         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40092
40093 2007-06-23  Bruno Haible  <bruno@clisp.org>
40094
40095         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40096         Don't let the 'mostlyclean' target fail if the last subdirectory could
40097         not be removed.
40098         Reported by Karl Berry.
40099
40100 2007-06-23  Bruno Haible  <bruno@clisp.org>
40101
40102         * gnulib-tool (echo): Add a speedier workaround for ksh.
40103         * tests/test-echo.sh: Likewise.
40104
40105 2007-06-23  Bruno Haible  <bruno@clisp.org>
40106
40107         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40108         * tests/test-echo.sh: Likewise.
40109
40110 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40111
40112         * gnulib-tool (IFS): Initialize early, so we don't set it to
40113         empty later.
40114         (self_abspathname): Rewrite algorithm to set it, reindent.
40115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40116         (func_create_megatestdir): Merge some sed scripts.
40117
40118 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40119
40120         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40121         exposed by Sun Studio 11 cc on Solaris 8.
40122
40123 2007-06-22  Bruno Haible  <bruno@clisp.org>
40124
40125         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40126         backslashes.
40127         * tests/test-echo.sh: New file.
40128
40129 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40130
40131         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40132         simplify `sed_replace_build_aux' scripts, they are portable but
40133         echoing them with `echo' is not.
40134         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40135
40136 2007-06-21  Karl Berry  <karl@gnu.org>
40137
40138         * config/srclist.txt: guess we can't handle the licenses via
40139         srclist at the moment.
40140
40141 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40142
40143         * MODULES.html.sh: Add include_next.
40144         * modules/include_next: New file.
40145
40146 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40147
40148         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40149         INCLUDE_NEXT.
40150         (gl_CHECK_NEXT_HEADERS): New macro.
40151         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40152         the obsolescent gl_ABSOLUTE_HEADER.
40153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40154         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40155         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40156         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40157         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40158         * m4/math_h.m4 (gl_MATH_H): Likewise.
40159         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40160         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40161         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40162         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40163         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40164         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40165         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40167         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40169         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40170         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40171         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40172         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40173         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40174         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40175         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40176         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40177         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40178         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40179         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40180         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40181         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40182         * lib/float_.h: Likewise.
40183         * lib/inttypes_.h: Likewise.
40184         * lib/math_.h: Likewise.
40185         * lib/search_.h: Likewise.
40186         * lib/signal_.h: Likewise.
40187         * lib/stdint_.h: Likewise.
40188         * lib/stdio_.h: Likewise.
40189         * lib/stdlib_.h: Likewise.
40190         * lib/string_.h: Likewise.
40191         * lib/sys_stat_.h: Likewise.
40192         * lib/sys_time_.h: Likewise.
40193         * lib/time_.h: Likewise.
40194         * lib/unistd_.h: Likewise.
40195         * lib/wchar_.h: Likewise.
40196         * lib/wctype_.h: Likewise.
40197         * lib/dirent_.h: Likewise.
40198         * lib/iconv_.h: Likewise.
40199         * lib/locale_.h: Likewise.
40200         * lib/netinet_in_.h: Likewise.
40201         * lib/sys_select_.h: Likewise.
40202         * lib/sys_socket_.h: Likewise.
40203         * lib/sysexits_.h: Likewise.
40204         * modules/fcntl (Depends-on): Depend on include_next, not
40205         absolute_header.
40206         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40207         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40208         * modules/fchdir: Likewise.
40209         * modules/float: Likewise.
40210         * modules/iconv_open: Likewise.
40211         * modules/inttypes: Likewise.
40212         * modules/locale: Likewise.
40213         * modules/math: Likewise.
40214         * modules/netinet_in: Likewise.
40215         * modules/search: Likewise.
40216         * modules/signal: Likewise.
40217         * modules/stdint: Likewise.
40218         * modules/stdio: Likewise.
40219         * modules/stdlib: Likewise.
40220         * modules/string: Likewise.
40221         * modules/sys_select: Likewise.
40222         * modules/sys_socket: Likewise.
40223         * modules/sys_stat: Likewise.
40224         * modules/sys_time: Likewise.
40225         * modules/sysexits: Likewise.
40226         * modules/time: Likewise.
40227         * modules/unistd: Likewise.
40228         * modules/wchar: Likewise.
40229         * modules/wctype: Likewise.
40230         * modules/sys_stat: Change maintainer to "all".
40231         * modules/unistd: Likewise.
40232
40233 2007-06-20  Karl Berry  <karl@gnu.org>
40234
40235         * config/srclist.txt: track www changes in license files.
40236
40237 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40238
40239         * build-aux/bootstrap: Remove stray dot.
40240         Make sure build_aux settings are honored when linking
40241         gnulib_extra_files.
40242
40243 2007-06-19  Eric Blake  <ebb9@byu.net>
40244
40245         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40246         Allow compilation on cygwin.
40247
40248 2007-06-19  Jim Meyering  <jim@meyering.net>
40249
40250         xreadlink-with-size: Remove module.  No longer used.
40251         Ex-callers now use xreadlink or mreadlink-with-size.
40252         * modules/xreadlink-with-size: Remove module.
40253         * lib/xreadlink-with-size.c: Remove file.
40254         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40255         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40256         just before the function definition *is* accurate.
40257
40258         Eliminate one way canonicalize_filename_mode could exit.
40259         * lib/canonicalize.c (canonicalize_filename_mode):
40260         Use mreadlink_with_size, not xreadlink_with_size.
40261
40262 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40263
40264         Detect porting problems to FreeBSD/arm, which has time_t wider than
40265         long int.  Original problem reported for GNU diff by Xin Li in
40266         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40267         * modules/getdate (Depends-on): Add intprops, verify.
40268         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40269         is an integer type no wider than long int.
40270
40271 2007-06-18  Jim Meyering  <jim@meyering.net>
40272
40273         New module: mreadlink-with-size.
40274         * MODULES.html.sh: Add mreadlink-with-size.
40275         * modules/mreadlink-with-size: New module
40276         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40277         not xreadlink-with-size.
40278         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40279
40280 2007-06-16  Bruno Haible  <bruno@clisp.org>
40281
40282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40283         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40284         Reported by Gary V. Vaughan <gary@gnu.org>.
40285
40286 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40287
40288         Revamp lchown so that it lives in unistd.h where it belongs.
40289         * lib/lchown.h: Remove.
40290         * lib/dirchownmod.c: Don't include lib/lchown.h.
40291         * lib/fchownat.c: Likewise.
40292         * lib/openat.c: Likewise.
40293         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40294         does not follow symlinks.
40295         (EOPNOTSUPP): Define if not defined.
40296         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40297         is defined to 0.
40298         (lchown): New decl.
40299         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40300         Do not check for lchown decl.
40301         Set REPLACE_LCHOWN.
40302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40303         REPLACE_LCHOWN.
40304         * modules/chown: Make it clear it follows symlinks.
40305         * modules/lchown: Make it clear it doesn't follow symlinks.
40306         (Files): Remove lib/lchown.h
40307         (Depends-on): Add unistd.
40308         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40309         (Include): Include <unistd.h>, not "lchown.h".
40310         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40311         REPLACE_LCHOWN.
40312
40313 2007-06-15  Jim Meyering  <jim@meyering.net>
40314
40315         Change license (GPL to LGPL) of fsusage and dependents.
40316         * modules/fsusage (License): Change to LGPL.
40317         * modules/full-read (License): Likewise.
40318         * modules/full-write (License): Likewise.
40319         * modules/safe-read (License): Likewise.
40320         * modules/safe-write (License): Likewise.
40321
40322 2007-06-14  Ben Pfaff  <blp@gnu.org>
40323
40324         Missing part of allocsa -> malloca transition.
40325         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40326         gl_MALLOCA.
40327
40328 2007-06-12  Bruno Haible  <bruno@clisp.org>
40329
40330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40331         to ia64, x86_64, i386.
40332         Reported by Eric Blake.
40333
40334 2007-06-12  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40337         cross-compiling to x86_64.
40338
40339 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40340
40341         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40342         glitch reported by Ralf Wildenhues in
40343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40344
40345         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40346         Vin Shelton.
40347
40348 2007-06-11  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40351         replacement string.
40352         Reported by Eric Blake.
40353
40354 2007-06-10  Bruno Haible  <bruno@clisp.org>
40355
40356         Prepare vasnprintf code for use with Unicode strings.
40357         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40358         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40359         TYPE_U32_STRING.
40360         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40361         a_u32_string variants.
40362         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40363         * lib/printf-args.c: Don't include config.h and the specification
40364         header if PRINTF_FETCHARGS is already defined.
40365         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40366         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40367         TYPE_U16_STRING, TYPE_U32_STRING.
40368         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40369         u16_directive, u16_directives, u32_directive, u32_directives): New
40370         types.
40371         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40372         New declarations.
40373         * lib/printf-parse.c: Don't include config.h and the specification
40374         header if PRINTF_PARSE is already defined. Eliminate the set of
40375         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40376         them now. Include c-ctype.h.
40377         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40378         directive and CHAR_T_ONLY_ASCII.
40379         * lib/vasnprintf.c: Don't include config.h and the specification header
40380         if VASNPRINTF is already defined.
40381         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40382         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40383         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40384         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40385         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40386         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40387         code accordingly.
40388         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40389         pad_ourselves also in this case, with the 'c' and 's' directives, and
40390         with a different notion of "width".
40391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40392
40393 2007-06-10  Bruno Haible  <bruno@clisp.org>
40394
40395         * modules/unistr/u32-mbsnlen: New file.
40396         * lib/unistr/u32-mbsnlen.c: New file.
40397
40398         * modules/unistr/u16-mbsnlen: New file.
40399         * lib/unistr/u16-mbsnlen.c: New file.
40400
40401         * modules/unistr/u8-mbsnlen: New file.
40402         * lib/unistr/u8-mbsnlen.c: New file.
40403
40404         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40405         declarations.
40406
40407 2007-06-10  Bruno Haible  <bruno@clisp.org>
40408
40409         * lib/string_.h (mbsnlen): New declaration.
40410         * lib/mbsnlen.c: New file.
40411         * m4/mbsnlen.m4: New file.
40412         * modules/mbsnlen: New file.
40413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40414         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40415         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40416
40417 2007-06-10  Bruno Haible  <bruno@clisp.org>
40418
40419         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40420
40421 2007-06-10  Bruno Haible  <bruno@clisp.org>
40422
40423         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40424         * lib/mbuiter.h: Likewise.
40425
40426 2007-06-10  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40429         declaration.
40430
40431 2007-06-10  Karl Berry  <karl@gnu.org>
40432
40433         * config/srclist.txt: remove gettext entries, Bruno prefers
40434         to update individually.
40435
40436 2007-06-10  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40439         'maxlen'. Ensure only length + width bytes are allocated, not
40440         length + 1 + width.
40441
40442 2007-06-09  Bruno Haible  <bruno@clisp.org>
40443
40444         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40445         (CHAR_T): Remove macro.
40446         (VASNPRINTF): Update.
40447
40448 2007-06-09  Bruno Haible  <bruno@clisp.org>
40449
40450         * MODULES.html.sh (Unicode string functions): Add the new modules.
40451
40452         * modules/uniconv/u32-conv-to-enc: New file.
40453         * lib/uniconv/u32-conv-to-enc.c: New file.
40454         * modules/uniconv/u32-conv-to-enc-tests: New file.
40455         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40456
40457         * modules/uniconv/u16-conv-to-enc: New file.
40458         * lib/uniconv/u16-conv-to-enc.c: New file.
40459         * lib/uniconv/u-conv-to-enc.h: New file.
40460         * modules/uniconv/u16-conv-to-enc-tests: New file.
40461         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40462
40463         * modules/uniconv/u8-conv-to-enc: New file.
40464         * lib/uniconv/u8-conv-to-enc.c: New file.
40465         * modules/uniconv/u8-conv-to-enc-tests: New file.
40466         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40467
40468         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40469         u32_conv_to_encoding): New declarations.
40470
40471 2007-06-09  Bruno Haible  <bruno@clisp.org>
40472
40473         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40474
40475 2007-06-09  Bruno Haible  <bruno@clisp.org>
40476
40477         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40478         * modules/malloca: Renamed from modules/allocsa, updated.
40479         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40480         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40481         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40482         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40483         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40484         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40485         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40486         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40487         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40488         * modules/c-strcasestr (Depends-on): Update.
40489         * lib/c-strcasestr.c: Update.
40490         * modules/c-strstr (Depends-on): Update.
40491         * lib/c-strstr.c: Update.
40492         * modules/canonicalize-lgpl (Depends-on): Update.
40493         * lib/canonicalize-lgpl.c: Update.
40494         * modules/clean-temp (Depends-on): Update.
40495         * lib/clean-temp.c: Update.
40496         * modules/csharpcomp (Depends-on): Update.
40497         * lib/csharpcomp.c: Update.
40498         * modules/csharpexec (Depends-on): Update.
40499         * lib/csharpexec.c: Update.
40500         * modules/javacomp (Depends-on): Update.
40501         * lib/javacomp.c: Update.
40502         * modules/javaexec (Depends-on): Update.
40503         * lib/javaexec.c: Update.
40504         * modules/mbscasestr (Depends-on): Update.
40505         * lib/mbscasestr.c: Update.
40506         * modules/mbsstr (Depends-on): Update.
40507         * lib/mbsstr.c: Update.
40508         * modules/setenv (Depends-on): Update.
40509         * lib/setenv.c: Update.
40510         * modules/strcasestr (Depends-on): Update.
40511         * lib/strcasestr.c: Update.
40512         * modules/striconveha (Depends-on): Update.
40513         * lib/striconveha.c: Update.
40514         * modules/relocatable-prog-wrapper (Files): Update.
40515         * lib/relocwrapper.c: Update.
40516         * build-aux/install-reloc: Update.
40517         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40518
40519 2007-06-08  Bruno Haible  <bruno@clisp.org>
40520
40521         Port to uClibc.
40522         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40523         * lib/fpurge.c (fpurge): Likewise.
40524         * lib/freading.c (freading): Likewise.
40525         * lib/fseeko.c (rpl_fseeko): Likewise.
40526         * lib/fseterr.c (fseterr): Likewise.
40527         * lib/fwriting.c (fwriting): Likewise.
40528         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40529
40530 2007-06-08  Bruno Haible  <bruno@clisp.org>
40531
40532         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40533         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40534         * modules/gettext (Files): Add m4/intlmacosx.m4.
40535
40536 2007-06-07  Bruno Haible  <bruno@clisp.org>
40537
40538         * modules/localename-tests: New file.
40539         * tests/test-localename.c: New file.
40540
40541         New module 'localename'.
40542         * lib/localename.h: New file.
40543         * lib/localename.c: New file, from GNU gettext.
40544         * m4/localename.m4: New file.
40545         * modules/localename: New file.
40546
40547 2007-06-07  Bruno Haible  <bruno@clisp.org>
40548
40549         Work around the lack of <wchar.h> on some builds of uClibc.
40550         * doc/headers/wchar.texi: Update.
40551         * lib/wchar_.h: Include <wchar.h> only if it exists.
40552         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40553         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40554         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40555         doesn't exist.
40556         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40557         * modules/mbfile (Depends-on): Add wchar.
40558         * modules/mbiter (Depends-on): Likewise.
40559         * modules/mbuiter (Depends-on): Likewise.
40560         Reported by Simon Josefsson.
40561
40562 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40563
40564         Work around problem reported by Steven M. Schweda in
40565         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40566         Tru64 5.1B with the Compaq compiler environment installed declares
40567         an 'isblank' function but does not define it in the C library.
40568         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40569         * lib/regex_internal.h (isblank): Likewise.
40570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40572
40573 2007-06-05  Bruno Haible  <bruno@clisp.org>
40574
40575         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40576         ia64.
40577         * modules/printf-safe: New file.
40578         * modules/fprintf-posix (Depends-on): Add printf-safe.
40579         * modules/printf-posix (Depends-on): Likewise.
40580         * modules/snprintf-posix (Depends-on): Likewise.
40581         * modules/sprintf-posix (Depends-on): Likewise.
40582         * modules/vasnprintf-posix (Depends-on): Likewise.
40583         * modules/vasprintf-posix (Depends-on): Likewise.
40584         * modules/vfprintf-posix (Depends-on): Likewise.
40585         * modules/vprintf-posix (Depends-on): Likewise.
40586         * modules/vsnprintf-posix (Depends-on): Likewise.
40587         * modules/vsprintf-posix (Depends-on): Likewise.
40588         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40589         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40590         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40591         "no" on i386, x86_64, ia64.
40592         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40593         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40594         on i386, x86_64, ia64.
40595         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40596         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40597         on i386, x86_64, ia64.
40598         * tests/test-vasnprintf-posix.c: Include float.h.
40599         (LDBL80_WORDS): New macro.
40600         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40601         on i386, x86_64, ia64.
40602         * tests/test-vasprintf-posix.c: Include float.h.
40603         (LDBL80_WORDS): New macro.
40604         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40605         on i386, x86_64, ia64.
40606         * tests/test-snprintf-posix.c: Include float.h.
40607         * tests/test-sprintf-posix.c: Likewise.
40608         * tests/test-vsnprintf-posix.c: Likewise.
40609         * tests/test-vsprintf-posix.c: Likewise.
40610
40611 2007-06-05  Bruno Haible  <bruno@clisp.org>
40612
40613         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40614         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40615         non-IEEE numbers on i386, x86_64, ia64.
40616         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40617         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40618         * tests/test-isnanl.h: Include float.h.
40619         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40620
40621 2007-06-05  Bruno Haible  <bruno@clisp.org>
40622
40623         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40624         also the %a / %A. Handle the %a / %A code before this extra handling.
40625
40626 2007-06-05  Bruno Haible  <bruno@clisp.org>
40627
40628         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40629         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40630
40631 2007-06-05  Bruno Haible  <bruno@clisp.org>
40632
40633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40634         typo in variable name.
40635
40636 2007-06-05  Eric Blake  <ebb9@byu.net>
40637
40638         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40639         Reported by Simon Josefsson.
40640
40641 2007-06-04  Bruno Haible  <bruno@clisp.org>
40642
40643         Avoid test failures on some PowerPC platforms.
40644         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40645         Define differently for PowerPC.
40646         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40647         Reported by Gary V. Vaughan <gary@gnu.org>.
40648
40649 2007-06-02  Bruno Haible  <bruno@clisp.org>
40650
40651         Fix test-stdint failure on FreeBSD/ia64.
40652         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40653         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40654         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40655         * doc/headers/stdint.texi: Update.
40656
40657 2007-06-01  Bruno Haible  <bruno@clisp.org>
40658
40659         * tests/test-binary-io.c (main): Pass a third argument to open().
40660         Reported by Gary V. Vaughan <gary@gnu.org>.
40661
40662 2007-06-01  Bruno Haible  <bruno@clisp.org>
40663
40664         * doc/functions/frexpl.texi: Update for mingw.
40665
40666 2007-06-01  Bruno Haible  <bruno@clisp.org>
40667
40668         * tests/test-lseek.c (main): Disable test of errno for invalid third
40669         argument.
40670         * doc/functions/lseek.texi: Update.
40671         Reported by Gary V. Vaughan <gary@gnu.org>.
40672
40673 2007-05-28  Bruno Haible  <bruno@clisp.org>
40674
40675         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40676
40677 2007-05-31  Eric Blake  <ebb9@byu.net>
40678
40679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40680         cross compiling.
40681
40682 2007-05-30  Eric Blake  <ebb9@byu.net>
40683         and Bruno Haible  <bruno@clisp.org>
40684
40685         Work around mingw test failures exposed by m4-1.4.9b.
40686         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40687         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40688         moment.
40689
40690 2007-05-30  Bruno Haible  <bruno@clisp.org>
40691
40692         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40693         assuming that they are closed. Needed on HP-UX 11.
40694
40695 2007-05-29  Bruno Haible  <bruno@clisp.org>
40696
40697         Fix a problem with #include_next.
40698         * lib/dirent_.h: Split the double-inclusion guard.
40699         * lib/fcntl_.h: Likewise.
40700         * lib/float_.h: Likewise.
40701         * lib/iconv_.h: Likewise.
40702         * lib/inttypes_.h: Likewise.
40703         * lib/locale_.h: Likewise.
40704         * lib/math_.h: Likewise.
40705         * lib/netinet_in_.h: Likewise.
40706         * lib/search_.h: Likewise.
40707         * lib/signal_.h: Likewise.
40708         * lib/stdint_.h: Likewise.
40709         * lib/stdio_.h: Likewise.
40710         * lib/stdlib_.h: Likewise.
40711         * lib/string_.h: Likewise.
40712         * lib/sys_select_.h: Likewise.
40713         * lib/sys_socket_.h: Likewise.
40714         * lib/sys_stat_.h: Likewise.
40715         * lib/sys_time_.h: Likewise.
40716         * lib/sysexits_.h: Likewise.
40717         * lib/time_.h: Likewise.
40718         * lib/unistd_.h: Likewise.
40719         * lib/wchar_.h: Likewise.
40720         * lib/wctype_.h: Likewise.
40721
40722 2007-05-29  Bruno Haible  <bruno@clisp.org>
40723
40724         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40725         for the moment.
40726
40727 2007-05-29  Bruno Haible  <bruno@clisp.org>
40728
40729         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40730         invocation.
40731         Reported by Eric Blake.
40732
40733 2007-05-29  Bruno Haible  <bruno@clisp.org>
40734
40735         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40736         compiling case.
40737
40738 2007-05-29  Eric Blake  <ebb9@byu.net>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40742         cross compiles.
40743
40744 2007-05-28  Eric Blake  <ebb9@byu.net>
40745
40746         * modules/closein-tests (test_closein_LDADD): Support test on
40747         cygwin with libtool.
40748
40749 2007-05-28  Bruno Haible  <bruno@clisp.org>
40750
40751         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40752         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40753         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40754         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40755         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40756         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40757         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40758         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40759         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40760
40761 2007-05-28  Eric Blake  <ebb9@byu.net>
40762
40763         Unconditionally include <config.h> in unit tests.
40764         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40765         * tests/test-allocsa.c, tests/test-arcfour.c,
40766         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40767         tests/test-array_list.c, tests/test-array_oset.c,
40768         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40769         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40770         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40771         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40772         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40773         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40774         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40775         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40776         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40777         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40778         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40779         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40780         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40781         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40782         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40783         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40784         test-md5.c, test-memmem.c, test-printf-posix.c,
40785         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40786         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40787         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40788         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40789         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40790         test-vasnprintf-posix2.c, test-vasnprintf.c,
40791         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40792         test-vfprintf-posix.c, test-vprintf-posix.c,
40793         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40794         test-xvasprintf.c: Likewise.
40795
40796 2007-05-28  Bruno Haible  <bruno@clisp.org>
40797
40798         * gnulib-tool (func_import): Remember the --with-tests command-line
40799         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40800         Reported by Eric Blake.
40801
40802 2007-05-28  Bruno Haible  <bruno@clisp.org>
40803
40804         * modules/ftell-tests: New file.
40805         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40806         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40807
40808         * lib/ftell.c: New file.
40809         * modules/ftell: New file.
40810         * m4/ftell.m4: New file.
40811         * doc/functions/ftell.texi: Update.
40812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40813         REPLACE_FTELL.
40814         * lib/stdio_.h (rpl_ftell): New declaration.
40815         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40816         REPLACE_FTELL.
40817
40818 2007-05-28  Eric Blake  <ebb9@byu.net>
40819
40820         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40821
40822 2007-05-28  Bruno Haible  <bruno@clisp.org>
40823
40824         * modules/fseek-tests: New file.
40825         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40826         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40827
40828         * lib/fseek.c: New file.
40829         * modules/fseek: New file.
40830         * m4/fseek.m4: New file.
40831         * doc/functions/fseek.texi: Update.
40832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40833         REPLACE_FSEEK.
40834         * lib/stdio_.h (rpl_fseek): New declaration.
40835         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40836         REPLACE_FSEEK.
40837
40838 2007-05-28  Bruno Haible  <bruno@clisp.org>
40839
40840         * lib/stdio_.h (fflush): More comments.
40841
40842 2007-05-28  Bruno Haible  <bruno@clisp.org>
40843
40844         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40845         runtime test.
40846
40847 2007-05-28  Eric Blake  <ebb9@byu.net>
40848
40849         Improve lseek module.
40850         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40851         * lib/unistd_.h (lseek): Scale back link warning message.
40852         * tests/test-lseek.c: Beef up test.
40853         * tests/test-lseek.sh: Exercise more facets of lseek.
40854         Reported by Bruno Haible.
40855
40856 2007-05-28  Bruno Haible  <bruno@clisp.org>
40857
40858         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40859         to define.
40860
40861 2007-05-27  Bruno Haible  <bruno@clisp.org>
40862
40863         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40864
40865 2007-05-27  Bruno Haible  <bruno@clisp.org>
40866
40867         * modules/openmp: New file.
40868         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40869         Noah Misch.
40870
40871 2007-05-26  Bruno Haible  <bruno@clisp.org>
40872
40873         * modules/chdir-long (Depends-on): Add fchdir.
40874         * modules/chdir-safer (Depends-on): Likewise.
40875         * modules/fts (Depends-on): Likewise.
40876         * modules/fts-lgpl (Depends-on): Likewise.
40877         * modules/openat (Depends-on): Likewise.
40878         * modules/savewd (Depends-on): Likewise.
40879
40880 2007-05-24  Eric Blake  <ebb9@byu.net>
40881
40882         Fix lseek on mingw.
40883         * modules/lseek: New module.
40884         * m4/lseek.m4: New file.
40885         * lib/lseek.c: New file.
40886         * modules/lseek-tests: New file.
40887         * tests/test-lseek.c: New file.
40888         * tests/test-lseek.sh: New file.
40889         * MODULES.html.sh: Document lseek module.
40890         * modules/fflush (Depends-on): Add lseek, fseeko.
40891         * modules/fseeko (Depends-on): Likewise.
40892         * modules/ftello (Depends-on): Likewise.
40893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40894         broken.
40895         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40896         broken.
40897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40898         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40899         * lib/ftello.c (rpl_ftello): Likewise.
40900         * tests/test-fseeko.c (main): Test this.
40901         * tests/test-fseeko.sh: Likewise.
40902         * tests/test-ftello.c (main): Likewise.
40903         * tests/test-ftello.sh: Likewise.
40904         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40905         implies replacing fseek.
40906         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40907         HAVE_FTELLO.
40908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40909         * modules/unistd (Makefile.am): Likewise.
40910         * lib/unistd_.h (lseek): Declare a replacement.
40911         * doc/functions/lseek.texi (lseek): Document this fix.
40912         * doc/functions/fseek.texi (fseek): Likewise.
40913         * doc/functions/ftell.texi (ftell): Likewise.
40914
40915 2007-05-24  Bruno Haible  <bruno@clisp.org>
40916
40917         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40918         in the printed representation of a NaN.
40919         * tests/test-vasprintf-posix.c (test_function): Likewise.
40920         * tests/test-snprintf-posix.h (test_function): Likewise.
40921         * tests/test-sprintf-posix.h (test_function): Likewise.
40922         Reported by Eric Blake.
40923
40924 2007-05-23  Eric Blake  <ebb9@byu.net>
40925
40926         Fix fseeko/ftello on cygwin 1.5.24.
40927         * doc/functions/fseeko.texi (fseeko): Document the fix.
40928         * doc/functions/ftello.texi (ftello): Document the fix.
40929         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40930         * doc/functions/stdout.text (stdout): New file.
40931         * doc/functions/stderr.text (stderr): New file.
40932         * doc/gnulib.texi (Function Substitutes): Use new files.
40933         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40934         prior to 1.7.0.
40935         * tests/test-ftello.c (main): Likewise for ftello.
40936         * tests/test-fseeko.sh: New file.
40937         * tests/test-ftello.sh: New file.
40938         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40939         with seekable stdin.
40940         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40942         (gl_REPLACE_FSEEKO): New macro.
40943         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40944         * modules/fseeko (Files): Distribute fseeko.c.
40945         * modules/ftello (Files): Distribute ftello.c.
40946         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40947         mode.
40948         * lib/ftello.c (rpl_ftello): New file.
40949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40950         fseeko, ftello.
40951         (gl_STDIN_LARGE_OFFSET): New macro.
40952         * modules/stdio (Makefile.am): Perform the replacement.
40953         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40954
40955 2007-05-23  Bruno Haible  <bruno@clisp.org>
40956
40957         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40958         GNULIB_POSIXCHECK is defined.
40959
40960 2007-05-21  Bruno Haible  <bruno@clisp.org>
40961
40962         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40963         Check also the output for NaN arguments. When cross-compiling, guess
40964         no on IRIX.
40965         * lib/vasnprintf.c: Update comments.
40966         * tests/test-vasnprintf-posix.c (strisnan): New function.
40967         (test_function): Use it.
40968         * tests/test-vasprintf-posix.c (strisnan): New function.
40969         (test_function): Use it.
40970         * tests/test-snprintf-posix.h (strisnan): New function.
40971         (test_function): Use it.
40972         * tests/test-sprintf-posix.h (strisnan): New function.
40973         (test_function): Use it.
40974         Reported by Eric Blake.
40975
40976 2007-05-20  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40979         numbers that fails on BeOS.
40980         * doc/functions/frexpl.texi: Update.
40981
40982 2007-05-20  Jim Meyering  <jim@meyering.net>
40983
40984         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40985         forced upon us by glibc-2.6.
40986
40987 2007-05-20  Bruno Haible  <bruno@clisp.org>
40988
40989         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40990         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40991         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40992         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40993         NEED_PRINTF_INFINITE.
40994         (is_infinitel): New function.
40995         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40997         gl_PREREQ_VASNPRINTF_INFINITE.
40998         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41000         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41001         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41002         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41003         gl_PREREQ_VASNPRINTF_INFINITE.
41004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41005         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41008         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41010         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41011         * doc/functions/fprintf.texi: Update.
41012         * doc/functions/printf.texi: Update.
41013         * doc/functions/snprintf.texi: Update.
41014         * doc/functions/sprintf.texi: Update.
41015         * doc/functions/vfprintf.texi: Update.
41016         * doc/functions/vprintf.texi: Update.
41017         * doc/functions/vsnprintf.texi: Update.
41018         * doc/functions/vsprintf.texi: Update.
41019
41020 2007-05-20  Bruno Haible  <bruno@clisp.org>
41021
41022         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41023         was not found in libc.
41024         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41025
41026 2007-05-20  Bruno Haible  <bruno@clisp.org>
41027
41028         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41029         printed as "-nan" instead of "nan".
41030         * tests/test-vasprintf-posix.c (test_function): Likewise.
41031         * tests/test-snprintf-posix.h (test_function): Likewise.
41032         * tests/test-sprintf-posix.h (test_function): Likewise.
41033         Needed for HP-UX 11.
41034
41035 2007-05-20  Jim Meyering  <jim@meyering.net>
41036
41037         Fix buggy test for the fchownat-deref bug.
41038         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41039         symlink required for the run-test.  Without it, this test would
41040         always declare that fchownat doesn't work, and client code would
41041         unnecessarily use the replacement function with fixed libc.
41042         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41043         Reported by Greg Schafer.
41044
41045 2007-05-19  Bruno Haible  <bruno@clisp.org>
41046
41047         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41048         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41049         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41050         Needed for IRIX 6.5 and Solaris 2.5.1.
41051
41052 2007-05-19  Bruno Haible  <bruno@clisp.org>
41053
41054         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41055         (test_function): Skip tests involving -0.0 on platforms where
41056         -0.0 = 0.0.
41057         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41058         (test_function): Skip tests involving -0.0 on platforms where
41059         -0.0 = 0.0.
41060         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41061         (test_function): Skip tests involving -0.0 on platforms where
41062         -0.0 = 0.0.
41063         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41064         (test_function): Skip tests involving -0.0 on platforms where
41065         -0.0 = 0.0.
41066         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41067         tests.
41068         * tests/test-printf-posix.h (test_function): Likewise.
41069         * tests/test-printf-posix.output: Remove all -0.0 related results.
41070         Needed for IRIX 6.5.
41071
41072 2007-05-19  Bruno Haible  <bruno@clisp.org>
41073
41074         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41075         printed as "nan0x7fffffff" instead of "nan".
41076         * tests/test-vasprintf-posix.c (test_function): Likewise.
41077         * tests/test-snprintf-posix.h (test_function): Likewise.
41078         * tests/test-sprintf-posix.h (test_function): Likewise.
41079         * tests/test-fprintf-posix.h (NaN): Remove macro.
41080         (test_function): Remove all NaN related tests.
41081         * tests/test-printf-posix.h (NaN): Remove macro.
41082         (test_function): Remove all NaN related tests.
41083         * tests/test-printf-posix.output: Remove all NaN related results.
41084         Needed for IRIX 6.5.
41085
41086 2007-05-19  Bruno Haible  <bruno@clisp.org>
41087
41088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41090
41091 2007-05-19  Bruno Haible  <bruno@clisp.org>
41092
41093         * lib/float_.h: New file.
41094         * m4/float_h.m4: New file.
41095         * modules/float: New file.
41096         * modules/isnanl (Dependencies): Add float.
41097         * modules/isnanl-nolibm (Dependencies): Likewise.
41098         * modules/mathl (Dependencies): Likewise.
41099         * modules/printf-frexpl (Dependencies): Likewise.
41100         * modules/signbit (Dependencies): Likewise.
41101         * modules/vasnprintf (Dependencies): Likewise.
41102         * doc/headers/float.texi: Update.
41103
41104 2007-05-19  Jim Meyering  <jim@meyering.net>
41105
41106         * lib/utimens.c (gl_futimens): Rename from futimens,
41107         now that glibc-2.6 declares futimens.
41108         * lib/utimens.h: Likewise.
41109
41110 2007-05-19  Bruno Haible  <bruno@clisp.org>
41111
41112         Avoid test failures on mingw.
41113         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41114         * tests/test-printf-posix.sh: Likewise.
41115         * tests/test-vfprintf-posix.sh: Likewise.
41116         * tests/test-vprintf-posix.sh: Likewise.
41117
41118 2007-05-19  Bruno Haible  <bruno@clisp.org>
41119
41120         Fix *printf result for NaN, Inf, -0.0 on mingw.
41121         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41122         * lib/vasnprintf.c: Include math.h and isnan.h.
41123         (is_infinite_or_zero): New function.
41124         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41125         values in the %f, %F, %e, %E, %g, %G directives.
41126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41127         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41128         gl_PRINTF_INFINITE and test its result. Invoke
41129         gl_PREREQ_VASNPRINTF_INFINITE.
41130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41137         * doc/functions/fprintf.texi: Update.
41138         * doc/functions/printf.texi: Update.
41139         * doc/functions/snprintf.texi: Update.
41140         * doc/functions/sprintf.texi: Update.
41141         * doc/functions/vfprintf.texi: Update.
41142         * doc/functions/vprintf.texi: Update.
41143         * doc/functions/vsnprintf.texi: Update.
41144         * doc/functions/vsprintf.texi: Update.
41145
41146 2007-05-19  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41149         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41150         Instead of multiplying with 10^k, set extra_zeroes to k.
41151         (scale10_round_long_double): Remove function.
41152
41153 2007-05-18  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41156         introduced on 2007-05-06.
41157
41158 2007-05-18  Bruno Haible  <bruno@clisp.org>
41159
41160         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41161         %g directives.
41162         * tests/test-vasprintf-posix.c (test_function): Likewise.
41163         * tests/test-snprintf-posix.h (test_function): Likewise.
41164         * tests/test-sprintf-posix.h (test_function): Likewise.
41165
41166 2007-05-18  Bruno Haible  <bruno@clisp.org>
41167
41168         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41169         (strmatch): New function.
41170         (test_function): Test the %f directive on numbers of various exponents.
41171         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41172         (strmatch): New function.
41173         (test_function): Test the %f directive on numbers of various exponents.
41174         * tests/test-snprintf-posix.h (strmatch): New function.
41175         (test_function): Test the %f directive on numbers of various exponents.
41176         * tests/test-sprintf-posix.h (strmatch): New function.
41177         (test_function): Test the %f directive on numbers of various exponents.
41178         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41179         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41180         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41181         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41182
41183 2007-05-18  Bruno Haible  <bruno@clisp.org>
41184
41185         Add support for 'long double' number output.
41186         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41187         * lib/vasnprintf.c: Include math.h and float+.h.
41188         (mp_limb_t): New type.
41189         (GMP_LIMB_BITS): New macro.
41190         (mp_twolimb_t): New type.
41191         (GMP_TWOLIMB_BITS): New macro.
41192         (mpn_t): New type.
41193         (multiply, divide, convert_to_decimal, decode_long_double,
41194         scale10_round_long_double, scale10_round_decimal_long_double,
41195         floorlog10l): New functions.
41196         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41197         for the %f, %F, %e, %E, %g, %G directives.
41198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41200         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41201         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41209         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41210         * modules/snprintf-posix (Depends-on): Likewise.
41211         * modules/sprintf-posix (Depends-on): Likewise.
41212         * modules/vasnprintf-posix (Depends-on): Likewise.
41213         * modules/vasprintf-posix (Depends-on): Likewise.
41214         * modules/vfprintf-posix (Depends-on): Likewise.
41215         * modules/vsnprintf-posix (Depends-on): Likewise.
41216         * modules/vsprintf-posix (Depends-on): Likewise.
41217         * modules/vasnprintf (Files): Add lib/float+.h.
41218         * doc/functions/fprintf.texi: Update.
41219         * doc/functions/printf.texi: Update.
41220         * doc/functions/snprintf.texi: Update.
41221         * doc/functions/sprintf.texi: Update.
41222         * doc/functions/vfprintf.texi: Update.
41223         * doc/functions/vprintf.texi: Update.
41224         * doc/functions/vsnprintf.texi: Update.
41225         * doc/functions/vsprintf.texi: Update.
41226
41227 2007-05-18  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41230
41231 2007-05-18  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41234         for printing 64-bit integers. Needed for mingw.
41235
41236 2007-05-18  Bruno Haible  <bruno@clisp.org>
41237
41238         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41239         gl_FUNC_FREXPL_WORKS.
41240         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41241
41242 2007-05-18  Bruno Haible  <bruno@clisp.org>
41243
41244         * modules/frexpl-nolibm-tests: New file.
41245
41246         * modules/frexpl-nolibm: New file.
41247         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41248
41249 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41250
41251         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41252         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41253         GCC 4.2, which otherwise issues a lot of warnings.
41254         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41255         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41256         Likewise.
41257         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41258         * modules/iconv_open (iconv.h): Likewise.
41259         * modules/locale (locale.h): Likewise.
41260         * modules/netinet_in (netinet/in.h): Likewise.
41261         * modules/sys_select (sys_select.h): Likewise.
41262         * modules/sys_socket (sys/socket.h): Likewise.
41263         * modules/sys_stat (sys/stat.h): Likewise.
41264         * modules/sysexits (sysexits.h): Likewise.
41265         * modules/unistd (unistd.h): Likewise.
41266
41267 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41268
41269         * modules/closein-tests (Makefile.am): Distribute
41270         `test-closein.sh'.
41271
41272 2007-05-17  Bruno Haible  <bruno@clisp.org>
41273
41274         * tests/test-printf-posix.output: Renamed from
41275         tests/test-fprintf-posix.out.
41276         * modules/fprintf-posix-tests: Update.
41277         * modules/printf-posix-tests: Update.
41278         * modules/vfprintf-posix-tests: Update.
41279         * modules/vprintf-posix-tests: Update.
41280         * tests/test-fprintf-posix.sh: Update.
41281         * tests/test-printf-posix.sh: Update.
41282         * tests/test-vfprintf-posix.sh: Update.
41283         * tests/test-vprintf-posix.sh: Update.
41284         Reported by Ralf Wildenhues.
41285
41286 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41287
41288         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41289         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41290         GCC 4.2, which otherwise issues a lot of warnings.
41291         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41292         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41293         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41294         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41295         it should no longer be needed.
41296         * lib/string_.h: Likewise.
41297         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41298         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41299         * modules/inttypes (inttypes.h): Likewise.
41300         * modules/math (math.h): Likewise.
41301         * modules/search (search.h): Likewise.
41302         * modules/signal (signal.h): Likewise.
41303         * modules/stdint (stdint.h): Likewise.
41304         * modules/stdio (stdio.h): Likewise.
41305         * modules/stdlib (stdlib.h): Likewise.
41306         * modules/string (string.h): Likewise.
41307         * modules/sys_time (sys/time.h): Likewise.
41308         * modules/time (time.h): Likewise.
41309         * modules/wchar (wchar.h): Likewise.
41310         * modules/wctype (wtype.h): Likewise.
41311
41312 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41313
41314         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41315
41316 2007-05-13  Bruno Haible  <bruno@clisp.org>
41317
41318         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41319         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41320         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41321         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41322         (gl_PREREQ_STRTOK_R): Don't require it here.
41323
41324 2007-05-13  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41327         when used in C++ mode.
41328
41329 2007-05-12  Bruno Haible  <bruno@clisp.org>
41330
41331         * lib/linebuffer.h: Tweak doc.
41332         * lib/linebuffer.c: Likewise.
41333
41334 2007-05-12  James Youngman  <jay@gnu.org>
41335
41336         * lib/linebuffer.c (readlinebuffer_delim): New function,
41337         like readlinebuffer, but use a caller-specified delimiter.
41338         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41339         as the delimiter.
41340         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41341
41342 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41343
41344         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41345         * modules/openat (Files): Remove openat-die.c.
41346         (Depends-on): Add openat-die.
41347         * modules/openat-die: New module.
41348
41349 2007-05-06  Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41352         Update with info about Cygwin.
41353         * doc/functions/fprintf.texi: Update.
41354         * doc/functions/printf.texi: Update.
41355         * doc/functions/snprintf.texi: Update.
41356         * doc/functions/sprintf.texi: Update.
41357         * doc/functions/vfprintf.texi: Update.
41358         * doc/functions/vprintf.texi: Update.
41359         * doc/functions/vsnprintf.texi: Update.
41360         * doc/functions/vsprintf.texi: Update.
41361         Reported by Eric Blake.
41362
41363 2007-05-06  Bruno Haible  <bruno@clisp.org>
41364
41365         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41366         padding ourselves for the floating-point directives.
41367         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41370         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41371         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41378         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41379         * tests/test-snprintf-posix.h (test_function): Also check the width
41380         and some flags in the %f directive.
41381         * tests/test-sprintf-posix.h (test_function): Likewise.
41382         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41383         * tests/test-vasprintf-posix.c (test_function): Likewise.
41384         * doc/functions/fprintf.texi: Update.
41385         * doc/functions/printf.texi: Update.
41386         * doc/functions/snprintf.texi: Update.
41387         * doc/functions/sprintf.texi: Update.
41388         * doc/functions/vfprintf.texi: Update.
41389         * doc/functions/vprintf.texi: Update.
41390         * doc/functions/vsnprintf.texi: Update.
41391         * doc/functions/vsprintf.texi: Update.
41392
41393 2007-05-06  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41396         pass the ' flag character to sprintf or snprintf.
41397         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41400         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41401         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41409         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41410         flag.
41411         * tests/test-sprintf-posix.h (test_function): Likewise.
41412         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41413         * tests/test-vasprintf-posix.c (test_function): Likewise.
41414         * doc/functions/fprintf.texi: Update.
41415         * doc/functions/printf.texi: Update.
41416         * doc/functions/snprintf.texi: Update.
41417         * doc/functions/sprintf.texi: Update.
41418         * doc/functions/vfprintf.texi: Update.
41419         * doc/functions/vprintf.texi: Update.
41420         * doc/functions/vsnprintf.texi: Update.
41421         * doc/functions/vsprintf.texi: Update.
41422
41423 2007-05-01  Bruno Haible  <bruno@clisp.org>
41424
41425         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41426
41427 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41428
41429         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41430         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41431
41432 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41435         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41437
41438 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41439
41440         * lib/argp-help.c (struct hol_entry): New member `ord'.
41441         (HOL_ENTRY_PTRCMP): Use ord for comparison
41442         (hol_sort): Initialize ord.
41443
41444 2007-05-01  Bruno Haible  <bruno@clisp.org>
41445
41446         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41447         Reported by Eric Blake.
41448         * doc/gnulib.texi (Function Substitutes): Update.
41449
41450 2007-05-01  Bruno Haible  <bruno@clisp.org>
41451
41452         * doc/functions.texi: Remove file, now redundant through
41453         doc/functions/*.texi.
41454
41455 2007-05-01  Bruno Haible  <bruno@clisp.org>
41456
41457         * modules/argp (Depends-on): Add sleep.
41458
41459 2007-05-01  Bruno Haible  <bruno@clisp.org>
41460
41461         * modules/sleep-tests: New file.
41462         * tests/test-sleep.c: New file.
41463
41464         * modules/sleep: New file.
41465         * lib/sleep.c: New file.
41466         * m4/sleep.m4: New file.
41467         * lib/unistd_.h (sleep): New declaration.
41468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41469         HAVE_SLEEP.
41470         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41471         * doc/functions/sleep.texi: Document the sleep module.
41472
41473 2007-05-01  Bruno Haible  <bruno@clisp.org>
41474
41475         * lib/sigprocmask.h: Remove file.
41476         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41477         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41479         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41480         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41481         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41482         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41483         HAVE_SIGSET_T as a shell variable.
41484         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41485         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41486         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41487         (Depends-on): Add signal. Remove verify.
41488         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41489         (Include): Mention <signal.h> instead of sigprocmask.h.
41490         * NEWS: Mention the change.
41491         * lib/fatal-signal.c: Don't include sigprocmask.h.
41492
41493 2007-05-01  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/signal: New file.
41496         * lib/signal_.h: New file.
41497         * m4/signal_h.m4: New file.
41498
41499 2007-05-01  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41502         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41503         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41504         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41505
41506 2007-05-01  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41509         configure time.
41510         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41511         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41512         * modules/sys_stat (Makefile.am): Substitute their values into
41513         sys/stat.h.
41514
41515 2007-05-01  Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41518         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41519         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41520
41521 2007-05-01  Bruno Haible  <bruno@clisp.org>
41522
41523         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41524         'assert' module here.
41525
41526 2007-05-01  Bruno Haible  <bruno@clisp.org>
41527
41528         * doc/functions/*.texi: New files.
41529         * doc/functions/google-ranking.txt: New file.
41530         * doc/gnulib.texi (Function Substitutes): New chapter.
41531         (ctime, inet_ntoa): Remove sections.
41532         * doc/ctime.texi: Remove file.
41533         * doc/inet_ntoa.texi: Remove file.
41534         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41535         dependencies.
41536         (%.info): New rule, specifying a --reference-limit.
41537
41538 2007-05-01  Bruno Haible  <bruno@clisp.org>
41539
41540         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41541
41542 2007-05-01  Bruno Haible  <bruno@clisp.org>
41543
41544         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41545         the portability of 'mkdir' to mingw systems.
41546
41547 2007-05-01  Bruno Haible  <bruno@clisp.org>
41548
41549         * doc/headers/google-ranking.txt: New file.
41550
41551 2007-04-30  Eric Blake  <ebb9@byu.net>
41552
41553         Prefer fseeko to fseek.
41554         * modules/getpass (Depends-on): Add fseeko.
41555         * lib/getpass.c (getpass): Use fseeko, not fseek.
41556
41557 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41558
41559         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41560         assumes the sorting is stable, while most qsort implementations
41561         are not.  Use argument addresses to ensure they never compare as
41562         equal.
41563
41564         * tests/test-argp-2.sh (usage-indent test): Fix output
41565         (func_compare): Restore diff options
41566         * tests/test-argp.c: Restore #include "progname.h"
41567
41568 2007-04-29  Bruno Haible  <bruno@clisp.org>
41569
41570         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41572         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41574         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41575         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41576         (TESTS, check_PROGRAMS): Add test-snprintf.
41577         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41578         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41579         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41580         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41581         assertions that fail on HP-UX, OSF/1, or IRIX.
41582         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41583
41584 2007-04-29  Bruno Haible  <bruno@clisp.org>
41585
41586         * MODULES.html.sh (posix_functions): Remove 'contents'.
41587
41588 2007-04-29  Karl Berry  <karl@gnu.org>
41589
41590         * config/srclist.txt (gendocs_template_min): new entry.
41591
41592 2007-04-29  Bruno Haible  <bruno@clisp.org>
41593
41594         Work around fpurge bug on BSD systems.
41595         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41596         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41597         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41598         fpurge to rpl_fpurge if the system already has this function.
41599         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41600         the case where the system already has this function. Correct invariants
41601         on BSD systems.
41602         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41603         BSD systems.
41604
41605 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41606
41607         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41608         proposed by Sven Verdoolaege.
41609
41610         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41611         options.
41612         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41613         (usage and help tests): Update
41614
41615 2007-04-29  Bruno Haible  <bruno@clisp.org>
41616
41617         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41618         Print more information in case of failure. Disable a test on BeOS.
41619
41620 2007-04-29  Bruno Haible  <bruno@clisp.org>
41621
41622         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41623         This helps debugging on systems on which no gdb is available.
41624
41625 2007-04-29  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/freading.h: Improve comments.
41628         * lib/fwriting.h: Likewise.
41629         * tests/test-freading.c (main): Don't check freading immediately after
41630         repositioning. Needed for glibc.
41631
41632 2007-04-29  Bruno Haible  <bruno@clisp.org>
41633
41634         * lib/freading.c (freading): Trivial simplification.
41635
41636 2007-04-28  Bruno Haible  <bruno@clisp.org>
41637
41638         * tests/test-fwriting.c (main): Also test the interaction between
41639         fflush and fwriting.
41640         * modules/fwriting-tests (Depends-on): Add fflush.
41641
41642         * tests/test-freading.c (main): Also test the interaction between
41643         fflush and freading.
41644         * modules/freading-tests (Depends-on): Add fflush.
41645
41646 2007-04-28  Bruno Haible  <bruno@clisp.org>
41647
41648         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41649         fseeko and ftello.
41650         Suggested by Eric Blake.
41651
41652 2007-04-28  Jim Meyering  <jim@meyering.net>
41653
41654         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41655         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41656         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41657
41658 2007-04-27  Eric Blake  <ebb9@byu.net>
41659
41660         * doc/headers/assert.texi (assert.h): Document assert module use.
41661
41662 2007-04-27  Bruno Haible  <bruno@clisp.org>
41663
41664         * doc/headers/*.texi: New files.
41665         * doc/gnulib.texi (Header File Substitutes): New chapter.
41666         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41667         dependencies.
41668         (standards.info ,standards.html, standards.dvi): Update dependencies.
41669         (mostlyclean, clean): New targets.
41670
41671 2007-04-27  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41674         * modules/sysexits (Files, Makefile.am): Update.
41675
41676         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41677         * modules/sys_socket (Files, Makefile.am): Update.
41678
41679         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41680         * modules/sys_stat (Files, Makefile.am): Update.
41681
41682 2007-04-27  Eric Blake  <ebb9@byu.net>
41683
41684         * lib/freading.h: Improve comments.
41685         * lib/fwriting.h: Likewise.
41686         * lib/fflush.c: Likewise.
41687
41688         Fix closein for mingw.
41689         * modules/closein-tests: Add tests for closein.
41690         * tests/test-closein.c: New file.
41691         * tests/test-closein.sh: Likewise.
41692         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41693         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41694
41695 2007-04-27  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41698         version is < 6.
41699         * lib/math_.h [__DECC]: Likewise.
41700         * lib/stdio_.h [__DECC]: Likewise.
41701         * lib/stdlib_.h [__DECC]: Likewise.
41702         * lib/string_.h [__DECC]: Likewise.
41703         * lib/time_.h [__DECC]: Likewise.
41704         * lib/wchar_.h [__DECC]: Likewise.
41705         * lib/wctype_.h [__DECC]: Likewise.
41706
41707 2007-04-27  Bruno Haible  <bruno@clisp.org>
41708
41709         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41710
41711 2007-04-27  Bruno Haible  <bruno@clisp.org>
41712
41713         * lib/fflush.c: Add comments.
41714         * modules/fpurge-tests (Depends-on): Add fflush.
41715         * modules/freadable-tests (Depends-on): Likewise.
41716         * modules/fwritable-tests (Depends-on): Likewise.
41717
41718 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41719
41720         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41721         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41722         Report by Bruno Haible <bruno@clisp.org>.
41723
41724 2007-04-26  Eric Blake  <ebb9@byu.net>
41725
41726         Fix fflush on mingw.
41727         * modules/fflush (Depends-on): Add freading.
41728         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41729         but unread data.
41730
41731 2007-04-26  Eric Blake  <ebb9@byu.net>
41732         and Bruno Haible  <bruno@clisp.org>
41733
41734         Implement freading and fwriting.
41735         * lib/freading.c: New file.
41736         * lib/freading.h: Likewise.
41737         * m4/freading.m4: Likewise.
41738         * modules/freading: Likewise.
41739         * modules/freading-tests: Likewise.
41740         * tests/test-freading.c: Likewise.
41741         * lib/fwriting.c: New file.
41742         * lib/fwriting.h: Likewise.
41743         * m4/fwriting.m4: Likewise.
41744         * modules/fwriting: Likewise.
41745         * modules/fwriting-tests: Likewise.
41746         * tests/test-fwriting.c: Likewise.
41747         * MODULES.html.sh (File stream based Input/Output): Mention them.
41748
41749 2007-04-26  Bruno Haible  <bruno@clisp.org>
41750
41751         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41752         'long' when we assume it.
41753         Suggested by Eric Blake.
41754
41755 2007-04-26  Bruno Haible  <bruno@clisp.org>
41756
41757         Ensure fseeko, ftello are declared on glibc systems.
41758         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41759         * modules/fseeko (configure.ac-early): Likewise.
41760         * modules/ftello (configure.ac-early): Likewise.
41761         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41762         AC_FUNC_FSEEKO for this.
41763         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41764         (gl_CHECK_FSEEKO): Remove macro.
41765
41766 2007-04-26  Bruno Haible  <bruno@clisp.org>
41767
41768         * tests/test-fflush.c (main): Also check the ftell result after
41769         fflush and fseek/fseeko.
41770         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41771         file descriptor position cache in the stream.
41772         * lib/fseeko.c (rpl_fseeko): Likewise.
41773
41774 2007-04-26  Bruno Haible  <bruno@clisp.org>
41775
41776         * modules/fflush-tests (Depends-on): Add fseeko.
41777
41778 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41779             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41780
41781         * lib/argz_.h: ensure error_t definition is obtained in same
41782         mechanism system argz.h would have.
41783         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41784         argz facilities are known bad.  Err on the side of caution if
41785         cross-compiling.
41786
41787 2007-04-25  Eric Blake  <ebb9@byu.net>
41788
41789         * lib/fpurge.c (includes): Use stdlib.h for free.
41790         * tests/test-fflush.c (main): Also test fflush-fseeko.
41791
41792 2007-04-25  Bruno Haible  <bruno@clisp.org>
41793
41794         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41795         * lib/fseeko.c: New file.
41796         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41797         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41798         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41799         gl_FUNC_FSEEKO.
41800         (gl_FUNC_FSEEKO): Invoke it.
41801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41802         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41803         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41804
41805 2007-04-25  Bruno Haible  <bruno@clisp.org>
41806
41807         * modules/fflush (Depends-on): Add ftello.
41808
41809 2007-04-25  Bruno Haible  <bruno@clisp.org>
41810
41811         * modules/ftello-tests: New file.
41812         * tests/test-ftello.c: New file.
41813
41814         * modules/ftello: New file.
41815         * m4/ftello.m4: New file.
41816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41817         HAVE_FTELLO.
41818         * lib/stdio_.h (ftello): New declaration.
41819         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41820         HAVE_FTELLO.
41821
41822 2007-04-25  Bruno Haible  <bruno@clisp.org>
41823
41824         * modules/fseeko-tests: New file.
41825         * tests/test-fseeko.c: New file.
41826
41827         * modules/fseeko: New file.
41828         * m4/fseeko.m4: New file.
41829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41830         HAVE_FSEEKO.
41831         * lib/stdio_.h (fseeko): New declaration.
41832         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41833         HAVE_FSEEKO.
41834
41835 2007-04-25  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41838
41839 2007-04-25  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41842         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41843         * tests/test-unistd.c: Likewise.
41844         * tests/test-fcntl.c: Likewise.
41845
41846 2007-04-23  Eric Blake  <ebb9@byu.net>
41847
41848         * lib/fflush.c: Fix missing include.
41849         Reported by Bruno Haible.
41850
41851 2007-04-23  Bruno Haible  <bruno@clisp.org>
41852
41853         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41854         Reported by Eric Blake.
41855
41856 2007-04-23  Bruno Haible  <bruno@clisp.org>
41857
41858         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41859
41860 2007-04-23  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41863
41864 2007-04-23  Bruno Haible  <bruno@clisp.org>
41865
41866         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41867         Needed on HP-UX 11.
41868
41869 2007-04-16  Eric Blake  <ebb9@byu.net>
41870
41871         Make fflush rely on fpurge.
41872         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41873         open coding all variants.
41874         * modules/fflush (Depends-on): Add fpurge and unistd.
41875         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41876         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41877
41878         Fix --with-tests compilation on cygwin.
41879         * modules/argmatch-tests (Makefile.am): List gnulib library first
41880         in LDADD.
41881         * modules/argp-tests (Makefile.am): Likewise.
41882         * modules/array-list-tests (Makefile.am): Likewise.
41883         * modules/array-oset-tests (Makefile.am): Likewise.
41884         * modules/avltree-list-tests (Makefile.am): Likewise.
41885         * modules/avltree-oset-tests (Makefile.am): Likewise.
41886         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41887         * modules/carray-list-tests (Makefile.am): Likewise.
41888         * modules/dirname-tests (Makefile.am): Likewise.
41889         * modules/frexp-tests (Makefile.am): Likewise.
41890         * modules/isnanl-tests (Makefile.am): Likewise.
41891         * modules/linked-list-tests (Makefile.am): Likewise.
41892         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41893         * modules/lock-tests (Makefile.am): Likewise.
41894         * modules/rbtree-list-tests (Makefile.am): Likewise.
41895         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41896         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41897         * modules/tls-tests (Makefile.am): Likewise.
41898         * modules/tsearch-tests (Makefile.am): Likewise.
41899         * modules/xvasprintf-tests (Makefile.am): Likewise.
41900
41901         Fix fpurge for cygwin.
41902         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41903         value.
41904         * modules/fpurge-tests (Depends-on): Clean up trash.
41905
41906 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41907
41908         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41909
41910         * m4/autobuild.m4: Re-indent.
41911
41912 2007-04-13  Bruno Haible  <bruno@clisp.org>
41913
41914         * modules/fpurge-tests: New file.
41915         * tests/test-fpurge.c: New file.
41916
41917         * modules/fpurge: New file.
41918         * lib/fpurge.h: New file.
41919         * lib/fpurge.c: New file.
41920         * m4/fpurge.m4: New file.
41921
41922 2007-04-13  Bruno Haible  <bruno@clisp.org>
41923
41924         * modules/fbufmode-tests: New file.
41925         * tests/test-fbufmode.c: New file.
41926
41927         * modules/fbufmode: New file.
41928         * lib/fbufmode.h: New file.
41929         * lib/fbufmode.c: New file.
41930         * m4/fbufmode.m4: New file.
41931
41932 2007-04-13  Bruno Haible  <bruno@clisp.org>
41933
41934         * modules/fwritable-tests: New file.
41935         * tests/test-fwritable.c: New file.
41936
41937         * modules/fwritable: New file.
41938         * lib/fwritable.h: New file.
41939         * lib/fwritable.c: New file.
41940         * m4/fwritable.m4: New file.
41941
41942 2007-04-13  Bruno Haible  <bruno@clisp.org>
41943
41944         * modules/freadable-tests: New file.
41945         * tests/test-freadable.c: New file.
41946
41947         * modules/freadable: New file.
41948         * lib/freadable.h: New file.
41949         * lib/freadable.c: New file.
41950         * m4/freadable.m4: New file.
41951
41952 2007-04-13  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41955         MOSTLYCLEANFILES.
41956
41957 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41960         gzip bootstrap.conf to avoid dragging in i18n machinery.
41961         (gnulib_tool_option): Use it.
41962
41963 2007-04-13  Bruno Haible  <bruno@clisp.org>
41964
41965         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41966         %F directives.
41967         * tests/test-vasprintf-posix.c (test_function): Likewise.
41968         * tests/test-snprintf-posix.h (test_function): Likewise.
41969         * tests/test-sprintf-posix.h (test_function): Likewise.
41970         * tests/test-fprintf-posix.h (test_function): Likewise.
41971         * tests/test-printf-posix.h (test_function): Likewise.
41972         * tests/test-fprintf-posix.out: Likewise.
41973
41974 2007-04-13  Bruno Haible  <bruno@clisp.org>
41975
41976         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41977         * modules/tls-tests (configure.ac): Likewise.
41978         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41979
41980 2007-04-13  Bruno Haible  <bruno@clisp.org>
41981
41982         * lib/tls.c (glthread_tls_get): Fix return type.
41983         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41984
41985 2007-04-12  Eric Blake  <ebb9@byu.net>
41986
41987         * modules/gettime (Depends-on): Remove gettime.
41988         Reported by Dmitry V. Levin.
41989
41990 2007-04-12  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/fflush (Include): Mention <stdio.h>.
41993         * modules/strtoimax (Include): Mention <inttypes.h>.
41994         * modules/strtoumax (Include): Likewise.
41995
41996 2007-04-12  Eric Blake  <ebb9@byu.net>
41997
41998         * .cvsignore: New file.
41999         * .gitignore: Likewise.
42000
42001 2007-04-12  Bruno Haible  <bruno@clisp.org>
42002
42003         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42004         not before, since $(LDADD) often contains libgnu.a.
42005         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42006         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42007         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42008         Needed on Cygwin.
42009
42010 2007-04-12  Eric Blake  <ebb9@byu.net>
42011
42012         Work around glibc's failure to flush stdin on fclose.
42013         * lib/closein.c (close_stdin): Flush stdin before closing.
42014
42015         Work around glibc's failure to reset seekable stdin on exit.
42016         * modules/closein: New module.
42017         * lib/closein.c: New file.
42018         * lib/closein.h: Likewise.
42019         * m4/closein.m4: Likewise.
42020         * MODULES.html.sh (File stream based Input/Output): Document it.
42021
42022 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42023
42024         * gnulib-tool: Rename generated 'autobuild' script to
42025         'do-autobuild' in --create-megatestdir output.
42026
42027         * doc/gnulib.texi (Build robot for gnulib): Fix.
42028
42029 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42030
42031         * modules/sysexits (Depends-on): Add absolute-header.
42032
42033 2007-04-12  Eric Blake  <ebb9@byu.net>
42034
42035         No need to preserve errno on success.
42036         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42037         Reported by Bruno Haible.
42038
42039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42040
42041         * MODULES.html.sh (Support for maintaining and releasing
42042         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42043
42044 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42045
42046         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42047
42048 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42049
42050         * modules/autobuild: New module.
42051
42052         * m4/autobuild.m4: New file.
42053
42054 2007-04-11  Bruno Haible  <bruno@clisp.org>
42055
42056         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42057         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42058         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42082         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42083         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42084         Reported by Eric Blake.
42085
42086 2007-04-11  Bruno Haible  <bruno@clisp.org>
42087
42088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42089
42090 2007-04-10  Bruno Haible  <bruno@clisp.org>
42091
42092         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42093         for NaN and Infinity. Needed on FreeBSD 6.1.
42094         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42095         regarding results for "%010a" of Infinity and NaN.
42096         * tests/test-vasprintf-posix.c (test_function): Likewise.
42097         * tests/test-snprintf-posix.h (test_function): Likewise.
42098         * tests/test-sprintf-posix.h (test_function): Likewise.
42099         * tests/test-fprintf-posix.h (test_function): Likewise.
42100         * tests/test-printf-posix.h (test_function): Likewise.
42101         * tests/test-fprintf-posix.out: Likewise.
42102
42103 2007-04-10  Bruno Haible  <bruno@clisp.org>
42104
42105         * modules/locale-tests: New file.
42106         * tests/test-locale.c: New file.
42107
42108         * modules/locale: New file.
42109         * lib/locale_.h: New file.
42110         * m4/locale_h.m4: New file.
42111
42112 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42113             Bruno Haible  <bruno@clisp.org>
42114
42115         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42116         be determined, test for availability of the copysignf, copysign,
42117         copysignl functions.
42118         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42119         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42120         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42121
42122 2007-04-09  Eric Blake  <ebb9@byu.net>
42123
42124         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42125         * modules/stdio (Makefile.am): Support fflush.
42126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42127         * modules/fflush: New file.
42128         * lib/fflush.c: Likewise.
42129         * m4/fflush.m4: Likewise.
42130         * modules/fflush-tests: New test.
42131         * tests/test-fflush.c: Likewise.
42132         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42133
42134 2007-04-06  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42137         (VASNPRINTF): Use signbit for faster determination whether to print a
42138         minus sign.
42139         * modules/vasnprintf (Files): Remove lib/float+.h.
42140         * modules/fprintf-posix (Depends-on): Add signbit.
42141         * modules/snprintf-posix (Depends-on): Likewise.
42142         * modules/sprintf-posix (Depends-on): Likewise.
42143         * modules/vasnprintf-posix (Depends-on): Likewise.
42144         * modules/vasprintf-posix (Depends-on): Likewise.
42145         * modules/vfprintf-posix (Depends-on): Likewise.
42146         * modules/vsnprintf-posix (Depends-on): Likewise.
42147         * modules/vsprintf-posix (Depends-on): Likewise.
42148
42149 2007-04-06  Bruno Haible  <bruno@clisp.org>
42150
42151         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42152         * tests/test-frexpl.c (main): Likewise.
42153         * tests/test-ldexpl.c (main): Likewise.
42154         * modules/frexp-tests (Depends-on): Add signbit.
42155         * modules/frexpl-tests (Depdends-on): Likewise.
42156         * modules/ldexpl-tests (Depdends-on): Likewise.
42157
42158 2007-04-06  Bruno Haible  <bruno@clisp.org>
42159
42160         * modules/signbit-tests: New file.
42161         * tests/test-signbit.c: New file.
42162
42163         * modules/signbit: New file.
42164         * lib/signbitf.c: New file.
42165         * lib/signbitd.c: New file.
42166         * lib/signbitl.c: New file.
42167         * m4/signbit.m4: New file.
42168         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42169         (signbit): New macro.
42170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42171         REPLACE_SIGNBIT.
42172         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42173         REPLACE_FREXPL into math.h.
42174
42175 2007-04-06  Bruno Haible  <bruno@clisp.org>
42176
42177         * modules/isnanf-nolibm-tests: New file.
42178         * tests/test-isnanf.c: New file.
42179
42180         * modules/isnanf-nolibm: New file.
42181         * lib/isnanf.h: New file.
42182         * lib/isnanf.c: New file.
42183         * lib/isnan.c: Consider the USE_FLOAT macro.
42184         * m4/isnanf.m4: New file.
42185
42186 2007-04-06  Bruno Haible  <bruno@clisp.org>
42187
42188         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42189         (Link): New section.
42190
42191         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42192
42193 2007-04-06  Bruno Haible  <bruno@clisp.org>
42194
42195         Assume the 'long double' type.
42196         * m4/longdouble.m4: Remove file.
42197         * config/srclist.txt: Don't mention longdouble.m4.
42198         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42199         * lib/float+.h: Likewise.
42200         * lib/frexp.c: Likewise.
42201         * lib/printf-args.h: Likewise.
42202         * lib/printf-args.c: Likewise.
42203         * lib/printf-frexp.c: Likewise.
42204         * lib/printf-parse.c: Likewise.
42205         * lib/vasnprintf.c: Likewise.
42206         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42207         * m4/intl.m4: Likewise.
42208         * m4/isnanl.m4: Likewise.
42209         * m4/printf.m4: Likewise.
42210         * m4/printf-frexpl.m4: Likewise.
42211         * m4/vasnprintf.m4: Likewise.
42212         * modules/allocsa (Files): Remove m4/longdouble.m4.
42213         * modules/gettext (Files): Likewise.
42214         * modules/relocatable-prog-wrapper (Files): Likewise.
42215         * modules/vasnprintf (Files): Likewise.
42216         * modules/isnanl (Files): Likewise.
42217         (Include): Simplify.
42218         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42219         (Include): Simplify.
42220         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42221         (Include): Simplify.
42222         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42223         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42224         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42225         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42226         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42227         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42228         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42229         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42230         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42231         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42232         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42233         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42234         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42235         * tests/test-isnanl.c: Likewise.
42236         * tests/test-snprintf-posix.h: Likewise.
42237         * tests/test-sprintf-posix.h: Likewise.
42238         * tests/test-vasnprintf-posix.c: Likewise.
42239         * tests/test-vasnprintf-posix2.c: Likewise.
42240         * tests/test-vasprintf-posix.c: Likewise.
42241
42242 2007-04-06  Bruno Haible  <bruno@clisp.org>
42243
42244         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42245         * lib/math_.h [__DECC]: Include the overridden include file through
42246         #include_next, outside the double-inclusion guard.
42247         * lib/stdio_.h [__DECC]: Likewise.
42248         * lib/stdlib_.h [__DECC]: Likewise.
42249         * lib/string_.h [__DECC]: Likewise.
42250         * lib/time_.h [__DECC]: Likewise.
42251         * lib/wchar_.h [__DECC]: Likewise.
42252         * lib/wctype_.h [__DECC]: Likewise.
42253         * lib/inttypes_.h [__DECC]: Likewise.
42254         Reported by Albert Chin <china@thewrittenword.com> in
42255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42256
42257 2007-04-04  Eric Blake  <ebb9@byu.net>
42258
42259         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42260         1.5.x.
42261
42262 2007-04-04  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42265         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42266
42267 2007-04-04  Bruno Haible  <bruno@clisp.org>
42268
42269         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42270         results for "%010a" of Infinity and NaN.
42271         * tests/test-vasprintf-posix.c (test_function): Likewise.
42272         * tests/test-snprintf-posix.h (test_function): Likewise.
42273         * tests/test-sprintf-posix.h (test_function): Likewise.
42274         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42275         * tests/test-printf-posix.h (test_function): Likewise.
42276         * tests/test-fprintf-posix.out: Update.
42277         Needed for FreeBSD 6.1.
42278
42279 2007-04-04  Bruno Haible  <bruno@clisp.org>
42280
42281         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42282         directly used by the gnulib modules nor by gnulib-tool.
42283
42284 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42285
42286         * DEPENDENCIES: Give overall description of version dependency
42287         desirability.  Use more-typical names for apps.
42288         Add shell, coreutils, diffutils, grep, tar, gzip.
42289
42290 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42291
42292         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42293
42294 2007-04-04  Karl Berry  <karl@gnu.org>
42295
42296         * MODULES.html.sh (func_module): missing '.
42297
42298 2007-04-03  Bruno Haible  <bruno@clisp.org>
42299
42300         * modules/argmatch-tests (Makefile.am): New variable
42301         test_argmatch_LDADD.
42302         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42303         * modules/array-list-tests (Makefile.am): New variable
42304         test_array_list_LDADD.
42305         * modules/array-oset-tests (Makefile.am): New variable
42306         test_array_oset_LDADD.
42307         * modules/avltree-list-tests (Makefile.am): New variable
42308         test_avltree_list_LDADD.
42309         * modules/avltree-oset-tests (Makefile.am): New variable
42310         test_avltree_oset_LDADD.
42311         * modules/avltreehash-list-tests (Makefile.am): New variable
42312         test_avltreehash_list_LDADD.
42313         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42314         test_canonicalize_lgpl_LDADD.
42315         * modules/carray-list-tests (Makefile.am): New variable
42316         test_carray_list_LDADD.
42317         * modules/dirname-tests (Makefile.am): New variable
42318         test_dirname_LDADD.
42319         * modules/linked-list-tests (Makefile.am): New variable
42320         test_linked_list_LDADD.
42321         * modules/linkedhash-list-tests (Makefile.am): New variable
42322         test_linkedhash_list_LDADD.
42323         * modules/rbtree-list-tests (Makefile.am): New variable
42324         test_rbtree_list_LDADD.
42325         * modules/rbtree-oset-tests (Makefile.am): New variable
42326         test_rbtree_oset_LDADD.
42327         * modules/rbtreehash-list-tests (Makefile.am): New variable
42328         test_rbtreehash_list_LDADD.
42329         * modules/xvasprintf-tests (Makefile.am): New variable
42330         test_xvasprintf_LDADD.
42331         Reported by Eric Blake.
42332
42333 2007-04-03  Eric Blake  <ebb9@byu.net>
42334
42335         * DEPENDENCIES: Weaken m4 requirements.
42336
42337 2007-04-03  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42340         * modules/isnanl-tests (configure.ac): Likewise.
42341
42342 2007-04-03  Ben Pfaff  <blp@gnu.org>
42343
42344         * modules/iconv_open: Add $(srcdir)/ to source directory
42345         references in Makefile fragments that call gperf, to fix VPATH
42346         builds.
42347
42348 2007-04-03  Bruno Haible  <bruno@clisp.org>
42349
42350         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42351         * lib/ldexpl.c: Undo last change.
42352
42353 2007-04-03  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/printf-frexpl (Depends-on): Undo last change.
42356         (Files): Add m4/ldexpl.m4.
42357
42358 2007-04-03  Bruno Haible  <bruno@clisp.org>
42359
42360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42361         * modules/isnanl (Link): New section.
42362
42363         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42364         * modules/frexp (Link): New section.
42365
42366         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42367         * modules/frexpl (Link): New section.
42368
42369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42370         * modules/ldexpl (Link): New section.
42371
42372 2007-04-03  Bruno Haible  <bruno@clisp.org>
42373
42374         * modules/TEMPLATE-EXTENDED: New file.
42375         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42376
42377 2007-04-03  Bruno Haible  <bruno@clisp.org>
42378
42379         * DEPENDENCIES: New file.
42380         Suggested by Simon Josefsson.
42381
42382 2007-04-03  Bruno Haible  <bruno@clisp.org>
42383
42384         * doc/gnulib.texi: Escape @.
42385
42386 2007-04-03  James Youngman  <jay@gnu.org>
42387         and Paul Eggert  <eggert@cs.ucla.edu>
42388
42389         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42390         birthtime on all systems that have birthtime, not just those which
42391         use st_birthtimensec rather than st_birthtim.  Putting zero in
42392         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42393         that the birth time is not available for files on an NFS mount.
42394
42395 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42396
42397         * modules/memxor: Move back from crypto/, suggested by Bruno.
42398         * modules/crypto/hmac-sha1: Fix memxor dependency.
42399
42400         * modules/crypto/gc: Moved from ../.
42401
42402 2007-04-02  Eric Blake  <ebb9@byu.net>
42403
42404         * lib/ldexpl.c (includes): Avoid libm.
42405
42406         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42407
42408 2007-04-02  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42411         on IRIX.
42412
42413 2007-04-02  Bruno Haible  <bruno@clisp.org>
42414
42415         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42416         x86 or x86_64 platforms running MacOS X.
42417         Reported by Ryan Schmidt <@ryandesign.com>.
42418
42419 2007-04-02  Bruno Haible  <bruno@clisp.org>
42420
42421         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42422         i386.
42423
42424 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42425
42426         * modules/crypto/arcfour: Moved from ../.
42427         * modules/crypto/arcfour-tests: Moved from ../.
42428         * modules/crypto/arctwo: Moved from ../.
42429         * modules/crypto/arctwo-tests: Moved from ../.
42430         * modules/crypto/des: Moved from ../.
42431         * modules/crypto/des-tests: Moved from ../.
42432         * modules/crypto/gc-arcfour: Moved from ../.
42433         * modules/crypto/gc-arcfour-tests: Moved from ../.
42434         * modules/crypto/gc-arctwo: Moved from ../.
42435         * modules/crypto/gc-arctwo-tests: Moved from ../.
42436         * modules/crypto/gc-des: Moved from ../.
42437         * modules/crypto/gc-des-tests: Moved from ../.
42438         * modules/crypto/gc-hmac-md5: Moved from ../.
42439         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42440         * modules/crypto/gc-hmac-sha1: Moved from ../.
42441         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42442         * modules/crypto/gc-md2: Moved from ../.
42443         * modules/crypto/gc-md2-tests: Moved from ../.
42444         * modules/crypto/gc-md4: Moved from ../.
42445         * modules/crypto/gc-md4-tests: Moved from ../.
42446         * modules/crypto/gc-md5: Moved from ../.
42447         * modules/crypto/gc-md5-tests: Moved from ../.
42448         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42449         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42450         * modules/crypto/gc-random: Moved from ../.
42451         * modules/crypto/gc-rijndael: Moved from ../.
42452         * modules/crypto/gc-rijndael-tests: Moved from ../.
42453         * modules/crypto/gc-sha1: Moved from ../.
42454         * modules/crypto/gc-sha1-tests: Moved from ../.
42455         * modules/crypto/gc-tests: Moved from ../.
42456         * modules/crypto/hmac-md5: Moved from ../.
42457         * modules/crypto/hmac-md5-tests: Moved from ../.
42458         * modules/crypto/hmac-sha1: Moved from ../.
42459         * modules/crypto/hmac-sha1-tests: Moved from ../.
42460         * modules/crypto/md2: Moved from ../.
42461         * modules/crypto/md2-tests: Moved from ../.
42462         * modules/crypto/md4: Moved from ../.
42463         * modules/crypto/md4-tests: Moved from ../.
42464         * modules/crypto/md5: Moved from ../.
42465         * modules/crypto/md5-tests: Moved from ../.
42466         * modules/crypto/memxor: Moved from ../.
42467         * modules/crypto/rijndael: Moved from ../.
42468         * modules/crypto/rijndael-tests: Moved from ../.
42469         * modules/crypto/sha1: Moved from ../.
42470
42471 2007-03-30  James Youngman  <jay@gnu.org>
42472
42473         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42474         rename() to change the ctime of a file (because ctime is unaffected
42475         by rename on jfs2 on AIX 5.1).
42476         (main): Start by doing cleanup, in case a previous run failed leaving
42477         test files behind.
42478
42479 2007-03-31  Bruno Haible  <bruno@clisp.org>
42480
42481         Support old proprietary implementations of iconv.
42482         * modules/iconv_open: New file.
42483         * lib/iconv_.h: New file.
42484         * m4/iconv_h.m4: New file.
42485         * lib/iconv_open.c: New file.
42486         * lib/iconv_open-aix.gperf: New file.
42487         * lib/iconv_open-hpux.gperf: New file.
42488         * lib/iconv_open-irix.gperf: New file.
42489         * lib/iconv_open-osf.gperf: New file.
42490         * m4/iconv_open.m4: New file.
42491         * modules/linebreak (Depends-on): Add iconv_open.
42492         * modules/striconv (Depends-on): Likewise.
42493         * modules/striconveh (Depends-on): Likewise.
42494         * modules/unicodeio (Depends-on): Likewise.
42495         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42496         (iconv_t)(-1).
42497         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42498         conversion if cd is (iconv_t)(-1).
42499         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42500         is not possible.
42501
42502 2007-03-31  Bruno Haible  <bruno@clisp.org>
42503
42504         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42505         work on Solaris either. Protect also second use of "autodetect_jp".
42506
42507 2007-03-31  Bruno Haible  <bruno@clisp.org>
42508
42509         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42510         the function is not present.
42511
42512 2007-03-31  Bruno Haible  <bruno@clisp.org>
42513
42514         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42515         the function is not present.
42516
42517 2007-03-31  Bruno Haible  <bruno@clisp.org>
42518
42519         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42520         a bug in HP-UX iconv_open().
42521
42522 2007-03-31  Bruno Haible  <bruno@clisp.org>
42523
42524         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42525         (Mathematics <math.h>): New section, add fpieee.
42526         (Input/output <stdio.h>): Add fseterr.
42527         (Mathematics <math.h>): New section, add printf-frexp.
42528         (Container data structures): Add sublist.
42529         (Core language properties): Add fpucw, inline.
42530         (Functions for greatest-width integer types <inttypes.h>): Add
42531         imaxabs, imaxdiv, inttypes.
42532         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42533         isnanl-nolibm, ldexp.
42534         (Mathematics <math.h>): New section, add printf-frexpl.
42535         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42536         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42537         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42538         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42539         (Unicode string functions): Add unistr/u*-mbtoucr.
42540         (Java): Add javacomp-script, javaexec-script.
42541         (C#): Add csharpcomp-script, csharpexec-script.
42542         (Support for building libraries and executables): Add havelib,
42543         relocatable-*.
42544         (Support for maintaining and releasing projects): Renamed from
42545         'Support for maintaining and release projects'. Add announce-gen.
42546
42547 2007-03-31  Bruno Haible  <bruno@clisp.org>
42548
42549         * README: Talk primarily about git.
42550         (git and CVS): Renamed from CVS.
42551         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42552         gnulib is available through git.
42553         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42554
42555 2007-03-30  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42558         * lib/poll_.h: Likewise.
42559         * lib/stat_.h: Likewise.
42560         * lib/sys_time_.h: Likewise.
42561         * lib/sysexit_.h: Likewise.
42562         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42563         * lib/stdbool_.h: Likewise.
42564         * lib/byteswap_.h: Add double-inclusion guard.
42565
42566 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42567
42568         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42569
42570 2007-03-30  Karl Berry  <karl@gnu.org>
42571
42572         * config/srclist-update: double space after USA in the license
42573         substitution, since that's how it's usually (?) written.
42574
42575 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42576
42577         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42578         reported by Bruno Haible.
42579
42580 2007-03-29  Bruno Haible  <bruno@clisp.org>
42581
42582         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42583         a bug in AIX iconv().
42584
42585 2007-03-29  Bruno Haible  <bruno@clisp.org>
42586
42587         * modules/ldexpl-tests: New file.
42588         * tests/test-ldexpl.c: New file.
42589
42590 2007-03-29  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/ldexpl.c: Include fpucw.h.
42593         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42594         multiplication.
42595         * modules/ldexpl (Depends-on): Add fpucw.
42596
42597 2007-03-29  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/ldexpl: New file.
42600         * m4/ldexpl.m4: New file.
42601         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42602         set.
42603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42604         REPLACE_LDEXPL.
42605         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42606         REPLACE_LDEXPL.
42607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42608         gl_FUNC_LDEXPL_WORKS.
42609         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42610         * modules/mathl (Files): Remove lib/ldexpl.c.
42611         (Depends-on): Add ldexpl.
42612
42613 2007-03-29  Bruno Haible  <bruno@clisp.org>
42614
42615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42616
42617 2007-03-29  Bruno Haible  <bruno@clisp.org>
42618
42619         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42620         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42621         and possibly also HP-UX.
42622         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42623         work on AIX, IRIX, HP-UX, OSF/1.
42624         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42625         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42626         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42627         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42628         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42629         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42630
42631 2007-03-29  Bruno Haible  <bruno@clisp.org>
42632
42633         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42634
42635 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42636
42637         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42638         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42639
42640 2007-03-29  Eric Blake  <ebb9@byu.net>
42641
42642         * lib/acl-internal.h: Remove redundant include.
42643         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42644         Cygwin when a file is locked.
42645
42646 2007-03-29  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42649         file.
42650         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42651
42652 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42653
42654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42655         try to remove a parent directory if the child couldn't be removed
42656         (except for the first rmdir, which could fail because the child
42657         doesn't exist).  Problem reported by Jeff Blaine in
42658         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42659
42660 2007-03-28  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/striconveh.c (utf8conv_carefully): New function.
42663         (mem_cd_iconveh_internal): Invoke it.
42664
42665 2007-03-28  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42668         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42669         input.
42670         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42671         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42672         unistr/u8-uctomb.
42673
42674 2007-03-28  Bruno Haible  <bruno@clisp.org>
42675
42676         * modules/unistr/u8-mbtoucr: New file.
42677         * lib/unistr/u8-mbtoucr.c: New file.
42678         * modules/unistr/u16-mbtoucr: New file.
42679         * lib/unistr/u16-mbtoucr.c: New file.
42680         * modules/unistr/u16-mbtoucr: New file.
42681         * lib/unistr/u16-mbtoucr.c: New file.
42682         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42683
42684 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42685             Bruno Haible  <bruno@clisp.org>
42686
42687         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42688         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42689         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42690
42691         * m4/stdio_h.m4: Add stubs for vasprintf too.
42692
42693         * modules/stdio: Support vasprintf in sed command.
42694
42695         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42696         vasprintf.h.  Add stdio module indicator.
42697
42698         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42699         vasprintf.h.
42700
42701         * lib/vasprintf.h: File removed.
42702
42703         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42704         * lib/vasprintf.c: Ditto.
42705         * lib/xvasprintf.c: Ditto.
42706         * tests/test-vasprintf-posix.c: Ditto.
42707         * tests/test-vasprintf.c: Ditto.
42708
42709 2007-03-27  Bruno Haible  <bruno@clisp.org>
42710
42711         Make vasnprintf multithread-safe.
42712         * lib/vasnprintf.c (decimal_point_char): New function.
42713         (VASNPRINTF): Use it.
42714         Suggested by Simon Josefsson.
42715
42716 2007-03-27  Eric Blake  <ebb9@byu.net>
42717
42718         Support sub-second birthtime on cygwin.
42719         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42720         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42721         (get_stat_birthtime): Also work with st_birthtim.
42722
42723 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42726         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42727         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42728         (get_stat_birthtime_ns): Simplify compile-time tests.
42729         (get_stat_birthtime): Change the API to look like
42730         get_stat_mtime etc., except return a negative tv_nsec on error.
42731         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42732         Don't check for "spare" fields.
42733         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42734         or for struct stat.st_birthtime, as these tests aren't used.
42735         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42736
42737 2007-03-27  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/stat-time.h: Include <sys/stat.h>.
42740
42741 2007-03-27  James Youngman  <jay@gnu.org>
42742
42743         * lib/stat-time.h (get_stat_birthtime): New function for
42744           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42745         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42746           and its variants.
42747         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42748         * modules/stat-time-test: New file.
42749         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42750
42751 2007-03-26  Bruno Haible  <bruno@clisp.org>
42752
42753         Better support of signalling NaNs.
42754         * lib/atanl.c: Include isnanl.h.
42755         (atanl): Perform test for NaN at the beginning of the function and
42756         through a call to isnanl.
42757         * lib/cosl.c: Include isnanl.h.
42758         (cosl): Perform test for NaN at the beginning of the function and
42759         through a call to isnanl.
42760         * lib/ldexpl.c: Include isnanl.h.
42761         (ldexpl): Perform test for NaN through a call to isnanl.
42762         * lib/logl.c: Include isnanl.h.
42763         (logl): Perform test for NaN at the beginning of the function and
42764         through a call to isnanl.
42765         * lib/sinl.c: Include isnanl.h.
42766         (sinl): Perform test for NaN at the beginning of the function and
42767         through a call to isnanl.
42768         * lib/sqrtl.c: Include isnanl.h.
42769         (sqrtl): Perform test for NaN at the beginning of the function and
42770         through a call to isnanl.
42771         * lib/tanl.c: Include isnanl.h.
42772         (tanl): Perform test for NaN at the beginning of the function and
42773         through a call to isnanl.
42774         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42775         * modules/mathl (Depends-on): Add isnanl.
42776
42777 2007-03-26  Eric Blake  <ebb9@byu.net>
42778
42779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42780         regression in logic sense of previous patch.
42781
42782 2007-03-26  Bruno Haible  <bruno@clisp.org>
42783
42784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42785         unportable shell command "if ! ...".
42786         Reported by Ralf Wildenhues.
42787
42788 2007-03-25  Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42791         <sysexits.h> file, and only add EX_CONFIG.
42792         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42793         absolute file name and whether it is sufficient. Substitute also
42794         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42795         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42796         ABSOLUTE_SYSEXITS_H into sysexits.h.
42797
42798 2007-03-25  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42801         hints is NULL.
42802
42803 2007-03-25  Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42806         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42807
42808 2007-03-25  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/vasnprintf.c: Include langinfo.h.
42811         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42812         multithread-safe.
42813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42822         Reported by Simon Josefsson.
42823
42824 2007-03-25  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42827         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42828         * modules/vasnprintf (Depends-on): Add stdint.
42829
42830 2007-03-25  Bruno Haible  <bruno@clisp.org>
42831
42832         * modules/fpieee: New file.
42833         * m4/fpieee.m4: New file.
42834         * modules/isnan-nolibm (Depends-on): Add fpieee.
42835         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42836         * modules/isnanl (Depends-on): Add fpieee.
42837
42838 2007-03-25  Bruno Haible  <bruno@clisp.org>
42839
42840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42841
42842 2007-03-25  Bruno Haible  <bruno@clisp.org>
42843
42844         Avoid test failures on IRIX 6.5.
42845         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42846         (main): Use it.
42847         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42848         macros.
42849         (main): Use them.
42850
42851 2007-03-25  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42854         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42855         exists but doesn't work.
42856         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42857         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42859         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42860
42861 2007-03-25  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42864         returns inf. Needed on IRIX 6.5.
42865
42866 2007-03-25  Bruno Haible  <bruno@clisp.org>
42867
42868         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42869         (main): Use isnanl instead of x != x idiom.
42870         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42871
42872         * tests/test-frexp.c: Include isnan.h.
42873         (main): Use isnan instead of x != x idiom.
42874         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42875
42876 2007-03-25  Bruno Haible  <bruno@clisp.org>
42877
42878         * tests/test-frexp.c (NaN): New function/macro.
42879         (main): Use it instead of 0.0 / 0.0.
42880         * tests/test-isnan.c (NaN): New function/macro.
42881         (main): Use it instead of 0.0 / 0.0.
42882         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42883         (test_function): Use it instead of 0.0 / 0.0.
42884         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42885         (test_function): Use it instead of 0.0 / 0.0.
42886         * tests/test-snprintf-posix.h (NaN): New function/macro.
42887         (test_function): Use it instead of 0.0 / 0.0.
42888         * tests/test-sprintf-posix.h (NaN): New function/macro.
42889         (test_function): Use it instead of 0.0 / 0.0.
42890         * tests/test-fprintf-posix.h (NaN): New function/macro.
42891         (test_function): Use it instead of 0.0 / 0.0.
42892         * tests/test-printf-posix.h (NaN): New function/macro.
42893         (test_function): Use it instead of 0.0 / 0.0.
42894
42895         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42896
42897 2007-03-25  Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42900
42901 2007-03-25  Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/regexec.c (merge_state_with_log): Make static.
42904
42905 2007-03-25  Bruno Haible  <bruno@clisp.org>
42906
42907         * lib/trigl.c (kernel_rem_pio2): Make static.
42908
42909 2007-03-25  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/sincosl.c (sincosl_table): Make static.
42912
42913 2007-03-25  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42916         if the compiler does not support C99.
42917
42918 2007-03-25  Bruno Haible  <bruno@clisp.org>
42919
42920         * modules/time (Makefile.am): Ensure all rule action lines start with a
42921         tab.
42922
42923 2007-03-24  Bruno Haible  <bruno@clisp.org>
42924
42925         * modules/tsearch-tests: New file.
42926         * tests/test-tsearch.sh: New file.
42927         * tests/test-tsearch.c: New file, mostly copied from glibc.
42928
42929         * modules/search-tests: New file.
42930         * tests/test-search.c: New file.
42931
42932         * modules/search: New file.
42933         * lib/search_.h: New file, incorporating lib/tsearch.h.
42934         * m4/search_h.m4: New file.
42935         * lib/tsearch.h: Remove file.
42936         * lib/tsearch.c: Include search.h instead of tsearch.h.
42937         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42938         HAVE_TSEARCH.
42939         * modules/tsearch (Files): Remove lib/tsearch.h.
42940         (Depends-on): Add search.
42941         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42942         (Include): Change tsearch.h into search.h.
42943
42944 2007-03-24  Bruno Haible  <bruno@clisp.org>
42945
42946         * modules/fpucw: New file.
42947         * lib/fpucw.h: New file.
42948         * lib/frexp.c: Include fpucw.h.
42949         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42950         (FUNC): Use them.
42951         * lib/printf-frexp.c: Include fpucw.h.
42952         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42953         (FUNC): Use them.
42954         * lib/vasnprintf.c: Include fpucw.h.
42955         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42956         'long double' calculations.
42957         * tests/test-frexpl.c: Include fpucw.h.
42958         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42959         * tests/test-printf-frexpl.c: Include fpucw.h.
42960         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42961         * modules/frexpl (Depends-on): Add fpucw.
42962         * modules/printf-frexpl (Depends-on): Likewise.
42963         * modules/fprintf-posix (Depends-on): Likewise.
42964         * modules/snprintf-posix (Depends-on): Likewise.
42965         * modules/sprintf-posix (Depends-on): Likewise.
42966         * modules/vasnprintf-posix (Depends-on): Likewise.
42967         * modules/vasprintf-posix (Depends-on): Likewise.
42968         * modules/vfprintf-posix (Depends-on): Likewise.
42969         * modules/vsnprintf-posix (Depends-on): Likewise.
42970         * modules/vsprintf-posix (Depends-on): Likewise.
42971         * modules/frexpl-tests (Depends-on): Likewise.
42972         * modules/printf-frexpl-tests (Depends-on): Likewise.
42973
42974 2007-03-24  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/float+.h: New file.
42977         * lib/isnan.c: Include float+.h.
42978         (SIZE): New macro.
42979         (FUNC): Compare only SIZE bytes of the value.
42980         * lib/vasnprintf.c: Include float+.h.
42981         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42982         SIZEOF_LDBL or SIZEOF_DBL bytes.
42983         * modules/isnan-nolibm (Files): Add lib/float+.h.
42984         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42985         * modules/isnanl (Files): Add lib/float+.h.
42986         * modules/vasnprintf (Files): Add lib/float+.h.
42987
42988 2007-03-24  Bruno Haible  <bruno@clisp.org>
42989
42990         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42991         include isnanl-nolibm.h.
42992
42993 2007-03-24  Bruno Haible  <bruno@clisp.org>
42994
42995         * tests/test-read-file.c (main): Don't produce spurious output for
42996         expected situations. Make the test fail if it encountered unexpected
42997         results.
42998
42999 2007-03-24  Bruno Haible  <bruno@clisp.org>
43000
43001         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43002         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43003
43004 2007-03-24  Bruno Haible  <bruno@clisp.org>
43005
43006         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43007
43008 2007-03-24  Bruno Haible  <bruno@clisp.org>
43009
43010         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43011         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43012
43013         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43014         * modules/utf8-ucs4: Turn into a symbolic link to module
43015         unistr/u8-mbtouc.
43016
43017         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43018         utf8-ucs4-unsafe.
43019         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43020         unistr/u8-mbtouc-unsafe.
43021
43022         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43023         * modules/utf16-ucs4: Turn into a symbolic link to module
43024         unistr/u16-mbtouc.
43025
43026         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43027         utf16-ucs4-unsafe.
43028         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43029         unistr/u16-mbtouc-unsafe.
43030
43031         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43032         * modules/ucs4-utf8: Turn into a symbolic link to module
43033         unistr/u8-ubtomb.
43034
43035         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43036         * modules/ucs4-utf16: Turn into a symbolic link to module
43037         unistr/u16-ubtomb.
43038
43039 2007-03-24  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43042         Enable the function only if HAVE_INLINE.
43043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43044         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43045         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43046         Enable the function only if HAVE_INLINE.
43047         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43048         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43049         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43050         Enable the function only if HAVE_INLINE.
43051         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43052         Enable the function only if HAVE_INLINE.
43053         * modules/utf8-ucs4: Update.
43054         * modules/utf8-ucs4-unsafe: Update.
43055         * modules/utf16-ucs4: Update.
43056         * modules/utf16-ucs4-unsafe: Update.
43057         * modules/ucs4-utf8: Update.
43058         * modules/ucs4-utf16: Update.
43059
43060 2007-03-24  Bruno Haible  <bruno@clisp.org>
43061
43062         * lib/utf8-ucs4.h: Remove file.
43063         * lib/utf8-ucs4-unsafe.h: Remove file.
43064         * lib/utf16-ucs4.h: Remove file.
43065         * lib/utf16-ucs4-unsafe.h: Remove file.
43066         * lib/ucs4-utf8.h: Remove file.
43067         * lib/ucs4-utf16.h: Remove file.
43068         * lib/unistr.h: Include their previous contents.
43069         * m4/utf-ucs4.m4: Remove file.
43070         * m4/ucs4-utf.m4: Remove file.
43071         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43072         (Depends-on): Add unistr/base.
43073         (configure.ac): Remove gl_UTF_UCS4.
43074         (Makefile.am): Update.
43075         (Include): Change to unistr.h.
43076         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43077         (Depends-on): Add unistr/base.
43078         (configure.ac): Remove gl_UTF_UCS4.
43079         (Makefile.am): Update.
43080         (Include): Change to unistr.h.
43081         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43082         (Depends-on): Add unistr/base.
43083         (configure.ac): Remove gl_UTF_UCS4.
43084         (Makefile.am): Update.
43085         (Include): Change to unistr.h.
43086         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43087         (Depends-on): Add unistr/base.
43088         (configure.ac): Remove gl_UTF_UCS4.
43089         (Makefile.am): Update.
43090         (Include): Change to unistr.h.
43091         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43092         (Depends-on): Add unistr/base.
43093         (configure.ac): Remove gl_UCS4_UTF.
43094         (Makefile.am): Update.
43095         (Include): Change to unistr.h.
43096         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43097         (Depends-on): Add unistr/base.
43098         (configure.ac): Remove gl_UCS4_UTF.
43099         (Makefile.am): Update.
43100         (Include): Change to unistr.h.
43101         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43102         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43103         utf8-ucs4-unsafe.h.
43104         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43105         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43106         utf16-ucs4-unsafe.h.
43107         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43108         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43109         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43110         * lib/unistr/u8-strchr.c: Likewise.
43111         * lib/unistr/u8-strrchr.c: Likewise.
43112         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43113         * lib/unistr/u16-strchr.c: Likewise.
43114         * lib/unistr/u16-strrchr.c: Likewise.
43115         * lib/striconveh.c: Update.
43116         * lib/linebreak.c: Update.
43117
43118 2007-03-24  Bruno Haible  <bruno@clisp.org>
43119
43120         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43121         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43122
43123 2007-03-22  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43126
43127 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43128
43129         * MODULES.html.sh (File system functions): New module write-any-file.
43130         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43131         * m4/write-any-file.m4: New files.
43132
43133 2007-03-23  Eric Blake  <ebb9@byu.net>
43134
43135         * gnulib-tool: Rearrange space-tab sequences, since some editors
43136         like to eat them.
43137
43138 2007-03-23  Eric Blake  <ebb9@byu.net>
43139
43140         * lib/version-etc.c (version_etc_va): Update license wording to
43141         be more concise.  Recommended by Richard Stallman.
43142
43143 2007-03-22  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/poll.c (MSG_PEEK): New fallback definition.
43146
43147 2007-03-22  Bruno Haible  <bruno@clisp.org>
43148
43149         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43150         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43151         (main): Update.
43152         Fixes a compilation error on BeOS.
43153
43154 2007-03-22  Bruno Haible  <bruno@clisp.org>
43155
43156         * modules/frexpl-tests: New file.
43157         * tests/test-frexpl.c: New file.
43158
43159         * modules/frexpl: New file.
43160         * m4/frexpl.m4: New file.
43161         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43162         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43164         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43165         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43166         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43167
43168 2007-03-22  Bruno Haible  <bruno@clisp.org>
43169
43170         * lib/frexpl.c: Share code with lib/frexp.c.
43171         * modules/mathl (Files): Add lib/frexp.c.
43172         (Depends-on): Add isnanl-nolibm.
43173
43174 2007-03-22  Bruno Haible  <bruno@clisp.org>
43175
43176         * modules/printf-frexp (Files): Add m4/frexp.m4.
43177         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43178         only if the found frexp function actually works.
43179
43180 2007-03-22  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/frexp.c: Remove older implementation that uses divisions.
43183
43184 2007-03-21  Bruno Haible  <bruno@clisp.org>
43185
43186         * modules/frexp-tests: New file.
43187         * tests/test-frexp.c: New file.
43188
43189         * modules/frexp: New file.
43190         * lib/frexp.c: New file.
43191         * m4/frexp.m4: New file.
43192         * lib/math_.h (frexp): New declaration.
43193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43194         REPLACE_FREXP.
43195         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43196
43197 2007-03-21  Bruno Haible  <bruno@clisp.org>
43198
43199         * modules/isnanl-tests: New file.
43200         * tests/test-isnanl.c: New file.
43201
43202         * modules/isnanl: New file.
43203         * lib/isnanl.h: New file.
43204         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43205         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43206         gl_FUNC_ISNANL_WORKS.
43207         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43208         New macros.
43209
43210 2007-03-21  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43213         lib/isnanl.h.
43214         (Include): Update.
43215         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43216         * lib/vasnprintf.c: Update.
43217         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43218         tests/test-isnanl.h, remove tests/test-isnanl.c.
43219         (Makefile.am): Update.
43220         * tests/test-isnanl-nolibm.c: New file.
43221         * tests/test-isnanl.h: New file.
43222         * tests/test-isnanl.c: Remove file.
43223
43224 2007-03-21  Jim Meyering  <jim@meyering.net>
43225
43226         When trying to open ".", treat ESTALE like EACCES.
43227         * lib/savewd.c (savewd_save): Resort to forking not just upon
43228         failure with EACCES, but also when errno is ESTALE.
43229
43230 2007-03-20  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43233         Needed on AIX 5.1. Reported by Matthew Woehlke.
43234
43235 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43236
43237         Suggestions by Bruno Haible:
43238         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43239         our own.
43240         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43241         * modules/acl (Depends-on): Add gettext.
43242
43243 2007-03-19  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/iconvme: Remove file.
43246         * lib/iconvme.h: Remove file.
43247         * lib/iconvme.c: Remove file.
43248         * m4/iconvme.m4: Remove file.
43249
43250 2007-03-19  Bruno Haible  <bruno@clisp.org>
43251
43252         * doc/relocatable-maint.texi: Break long shell script line.
43253         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43254
43255 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43256
43257         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43258         handle file_has_acl.
43259         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43260         * lib/acl.c: Move header inclusions and related macro defns into
43261         lib/acl-internal.h.
43262         (S_ISLNK): Remove defn, since that's now done for us.
43263         (file_has_acl): Move to lib/file-has-acl.c.
43264         Call acl_trivial if available.  This is the crucial part of the fix.
43265         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43266         shared within the library.  Rewrite a bit, partly to make it compatible
43267         with the GNU coding style.
43268         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43269         Remove unnecessary double-quotes.
43270         Don't test for acl_to_text; the build will catch that.
43271         Replace acl_entries if it doesn't exist and it is needed.
43272         Check for -lsec and acl_trivial (as used on Solaris 10).
43273         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43274         lib/file-has-acl.c.
43275         (Depends-on): Add sys_stat, for S_ISLNK.
43276
43277 2007-03-19  Ben Pfaff  <blp@gnu.org>
43278
43279         * doc/gnulib.texi: Fix typos.
43280         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43281
43282 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43283
43284         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43285         If size is zero here, buf must be zero.
43286
43287 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43288
43289         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43290         <bruno@clisp.org>.
43291
43292 2007-03-18  Bruno Haible  <bruno@clisp.org>
43293
43294         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43295         Suggested by Eric Blake.
43296
43297 2007-03-18  Ben Pfaff  <blp@gnu.org>
43298
43299         * doc/relocatable.texi: Recommend using as prefix a directory
43300         that does not exist and will never be created.  Based on
43301         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43302         and others.
43303
43304 2007-03-17  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/fchownat.c: Include lchown.h.
43307
43308 2007-03-17  Bruno Haible  <bruno@clisp.org>
43309
43310         Fix endless loop when the given allocated size was > INT_MAX.
43311         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43312         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43313         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43314         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43315         * lib/sprintf.c (sprintf): Likewise.
43316
43317 2007-03-17  Bruno Haible  <bruno@clisp.org>
43318
43319         * tests/test-argp-2.sh (func_compare): Output a context diff.
43320
43321 2007-03-17  Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43324         locale's decimal-point character.
43325
43326 2007-03-17  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43329         before comparing it. Needed because on some platforms (e.g. x86) a
43330         'long double' occupies less bytes than sizeof (long double).
43331
43332 2007-03-17  Bruno Haible  <bruno@clisp.org>
43333
43334         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43335         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43336         * tests/test-getaddrinfo.c (simple): Likewise.
43337         * tests/test-read-file.c (main): Likewise.
43338
43339 2007-03-17  Bruno Haible  <bruno@clisp.org>
43340
43341         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43342
43343 2007-03-17  Bruno Haible  <bruno@clisp.org>
43344
43345         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43346         unused variable.
43347
43348 2007-03-17  Bruno Haible  <bruno@clisp.org>
43349
43350         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43351         * tests/test-c-strncasecmp.c: Likewise.
43352
43353 2007-03-17  Bruno Haible  <bruno@clisp.org>
43354
43355         * modules/stdlib (Depends-on): Add unistd.
43356         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43357         Needed for MacOS X 10.3.
43358
43359 2007-03-17  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43362
43363 2007-03-17  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43366
43367 2007-03-17  Bruno Haible  <bruno@clisp.org>
43368
43369         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43370         to reflect files copied from gnulib (with or without modifications).
43371         Suggested by Jim Meyering.
43372
43373 2007-03-17  Eric Blake  <ebb9@byu.net>
43374
43375         * NEWS: Document stdlib change from 2007-02-18.
43376
43377 2007-03-17  Jim Meyering  <jim@meyering.net>
43378
43379         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43380         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43381         someone uses a name containing shell meta-characters.
43382         Reported by Alfred M. Szmidt.
43383
43384         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43385
43386 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43387
43388         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43389         and copy gettext configuration files only if configure.ac contains
43390         a use of AM_GNU_GETTEXT_VERSION.
43391
43392 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43393
43394         * build-aux/bootstrap (gnulib_name): New variable.
43395         (gnulib_tool_options): Use it.
43396
43397 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43398
43399         * tests/test-des.c: Use new namespace.
43400
43401 2007-03-15  Bruno Haible  <bruno@clisp.org>
43402
43403         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43404         Reported by James Youngman <jay@gnu.org>.
43405
43406 2007-03-15  Bruno Haible  <bruno@clisp.org>
43407
43408         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43409         declared prototype. Needed with cc on OSF/1 5.1.
43410
43411 2007-03-15  Bruno Haible  <bruno@clisp.org>
43412
43413         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43414         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43415         (struct gl_list_implementation): Add dispose_fn argument to the
43416         'create_empty', 'create' methods.
43417         (struct gl_list_impl_base): Add field 'dispose_fn'.
43418         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43419         argument.
43420         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43421         dispose_fn argument.
43422         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43423         dispose_fn on the dropped values.
43424         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43425         dispose_fn argument.
43426         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43427         dropped values.
43428         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43429         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43430         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43431         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43432         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43433         argument.
43434         (gl_tree_list_free): Call dispose_fn on the dropped values.
43435         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43436         the dropped values.
43437         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43438         Add dispose_fn argument.
43439         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43440         Call dispose_fn on the dropped values.
43441         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43442         Add dispose_fn argument.
43443         (gl_sublist_create): Initialize the 'dispose_fn' field.
43444         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43445         * tests/test-array_list.c (main): Update.
43446         * tests/test-carray_list.c (main): Update.
43447         * tests/test-avltree_list.c (main): Update.
43448         * tests/test-rbtree_list.c (main): Update.
43449         * tests/test-avltreehash_list.c (main): Update.
43450         * tests/test-rbtreehash_list.c (main): Update.
43451         * tests/test-linked_list.c (main): Update.
43452         * tests/test-linkedhash_list.c (main): Update.
43453         * tests/test-array_oset.c (main): Update.
43454
43455 2007-03-15  Bruno Haible  <bruno@clisp.org>
43456
43457         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43458         (gl_oset_create_empty): Add dispose_fn argument.
43459         (struct gl_oset_implementation): Add dispose_fn argument to
43460         'create_empty' method.
43461         (struct gl_oset_impl_base): Add dispose_fn field.
43462         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43463         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43464         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43465         values.
43466         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43467         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43468         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43469         dropped value.
43470         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43471         dropped value.
43472         * tests/test-array_oset.c (main): Update.
43473         * tests/test-avltree_oset.c (main): Update.
43474         * tests/test-rbtree_oset.c (main): Update.
43475         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43476
43477 2007-03-13  Bruno Haible  <bruno@clisp.org>
43478
43479         * tests/test-stdbool.c (i): Update after last patch.
43480
43481 2007-03-12  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43484         the iswprint macro. Needed on Solaris 2.5.1.
43485
43486 2007-03-12  Bruno Haible  <bruno@clisp.org>
43487
43488         * tests/test-printf-frexp.c (main): Declare x as volatile.
43489
43490 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43491
43492         * doc/gnulib.texi (Build robot for gnulib): New section.
43493
43494 2007-03-12  Jim Meyering  <jim@meyering.net>
43495
43496         * build-aux/bootstrap: New file.
43497         * build-aux/bootstrap.conf: New file, from coreutils.
43498
43499 2007-03-11  Bruno Haible  <bruno@clisp.org>
43500
43501         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43502
43503 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43504
43505         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43506         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43507         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43508
43509 2007-03-11  Bruno Haible  <bruno@clisp.org>
43510
43511         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43512         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43513
43514 2007-03-11  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43517         formula. Needed for SunPRO C 5.0.
43518
43519 2007-03-11  Bruno Haible  <bruno@clisp.org>
43520
43521         * modules/long-options (Depends-on): Add getopt.
43522
43523 2007-03-11  Bruno Haible  <bruno@clisp.org>
43524
43525         * modules/modechange (Depends-on): Add stdbool.
43526
43527 2007-03-11  Bruno Haible  <bruno@clisp.org>
43528
43529         * modules/i-ring (Depends-on): Add stdbool.
43530
43531 2007-03-11  Bruno Haible  <bruno@clisp.org>
43532
43533         * modules/gc-des (Depends-on): Add stdbool.
43534
43535 2007-03-11  Bruno Haible  <bruno@clisp.org>
43536
43537         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43538
43539 2007-03-11  Bruno Haible  <bruno@clisp.org>
43540
43541         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43542
43543 2007-03-11  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43546
43547 2007-03-11  Bruno Haible  <bruno@clisp.org>
43548
43549         * lib/vasnprintf.c (sprintf): Undefine.
43550
43551 2007-03-11  Bruno Haible  <bruno@clisp.org>
43552
43553         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43554         initializers in SunPRO C and Compaq C compilers.
43555
43556 2007-03-11  Bruno Haible  <bruno@clisp.org>
43557
43558         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43559         decrementing code ANSI C compliant.
43560
43561 2007-03-11  Bruno Haible  <bruno@clisp.org>
43562
43563         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43564         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43565
43566 2007-03-11  Bruno Haible  <bruno@clisp.org>
43567
43568         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43569         <stdbool.h> substitute doesn't pass.
43570
43571 2007-03-11  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43574
43575 2007-03-11  Bruno Haible  <bruno@clisp.org>
43576
43577         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43578         script, for submission to autobuild.josefsson.org.
43579
43580 2007-03-10  Bruno Haible  <bruno@clisp.org>
43581
43582         * modules/canonicalize-lgpl-tests: New file.
43583         * tests/test-canonicalize-lgpl.sh: New file.
43584         * tests/test-canonicalize-lgpl.c: New file.
43585
43586         * modules/c-strcase-tests: New file.
43587         * tests/test-c-strcase.sh: New file.
43588         * tests/test-c-strcasecmp.c: New file.
43589         * tests/test-c-strncasecmp.c: New file.
43590
43591         * modules/atexit-tests: New file.
43592         * tests/test-atexit.sh: New file.
43593         * tests/test-atexit.c: New file.
43594
43595 2007-03-10  Bruno Haible  <bruno@clisp.org>
43596
43597         * tests/test-binary-io.sh: Use temporary filenames that are not so
43598         likely to clash with those of other tests (in a parallel make).
43599         * tests/test-binary-io.c: Likewise.
43600
43601 2007-03-10  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43604         fallback; use #error instead.
43605         Suggested by Simon Josefsson.
43606
43607 2007-03-10  Bruno Haible  <bruno@clisp.org>
43608
43609         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43610         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43611         first and the last.
43612
43613 2007-03-10  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43616
43617 2007-03-10  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43620         "make distcheck".
43621         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43622         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43623         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43624
43625 2007-03-10  Bruno Haible  <bruno@clisp.org>
43626
43627         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43628         variable.
43629         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43630         variable.
43631
43632 2007-03-09  Eric Blake  <ebb9@byu.net>
43633         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43634
43635         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43636         types are not being provided by gnulib.
43637         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43638         types are supported.
43639
43640 2007-03-10  Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/stdio_.h (__attribute__): New macro.
43643         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43644         vsprintf): Specify __attribute__ __format__ for GCC.
43645         Suggested by Eric Blake.
43646
43647 2007-03-09  Bruno Haible  <bruno@clisp.org>
43648
43649         * modules/printf-posix-tests: New file.
43650         * tests/test-printf-posix.sh: New file.
43651         * tests/test-printf-posix.c: New file.
43652
43653         * modules/printf-posix: New file.
43654         * lib/printf.c: New file.
43655         * m4/printf-posix-rpl.m4: New file.
43656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43657         REPLACE_PRINTF.
43658         * lib/stdio_.h (printf): New declaration.
43659         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43660         ____strfmon____): New macros.
43661         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43662         REPLACE_PRINTF.
43663
43664 2007-03-09  Bruno Haible  <bruno@clisp.org>
43665
43666         * tests/test-vasnprintf-posix2.sh: New file.
43667         * tests/test-vasnprintf-posix2.c: New file.
43668         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43669         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43670         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43671
43672         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43673         a locale dependent decimal point, rather than always '.'.
43674
43675 2007-03-09  Eric Blake  <ebb9@byu.net>
43676
43677         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43678         spite of platforms like Tandem/NSK that define it to -1.
43679
43680 2007-03-08  Bruno Haible  <bruno@clisp.org>
43681
43682         * modules/vprintf-posix-tests: New file.
43683         * tests/test-vprintf-posix.sh: New file.
43684         * tests/test-vprintf-posix.c: New file.
43685         * tests/test-printf-posix.h: New file.
43686
43687         * modules/vprintf-posix: New file.
43688         * lib/vprintf.c: New file.
43689         * m4/vprintf-posix.m4: New file.
43690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43691         REPLACE_VPRINTF.
43692         * lib/stdio_.h (vprintf): New declaration.
43693         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43694         REPLACE_VPRINTF.
43695
43696 2007-03-08  Bruno Haible  <bruno@clisp.org>
43697
43698         * modules/fprintf-posix-tests: New file.
43699         * tests/test-fprintf-posix.sh: New file.
43700         * tests/test-fprintf-posix.c: New file.
43701
43702         * modules/fprintf-posix: New file.
43703         * lib/fprintf.c: New file.
43704         * m4/fprintf-posix.m4: New file.
43705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43706         REPLACE_FPRINTF.
43707         * lib/stdio_.h (fprintf): New declaration.
43708         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43709         REPLACE_FPRINTF.
43710
43711 2007-03-08  Bruno Haible  <bruno@clisp.org>
43712
43713         * modules/vfprintf-posix-tests: New file.
43714         * tests/test-vfprintf-posix.sh: New file.
43715         * tests/test-vfprintf-posix.c: New file.
43716         * tests/test-fprintf-posix.h: New file.
43717         * tests/test-fprintf-posix.out: New file.
43718
43719         * modules/vfprintf-posix: New file.
43720         * lib/vfprintf.c: New file.
43721         * m4/vfprintf-posix.m4: New file.
43722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43723         REPLACE_VFPRINTF.
43724         * lib/stdio_.h (vfprintf): New declaration.
43725         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43726         REPLACE_VFPRINTF.
43727
43728 2007-03-08  Bruno Haible  <bruno@clisp.org>
43729
43730         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43731
43732 2007-03-08  Bruno Haible  <bruno@clisp.org>
43733
43734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43735         instead of 'expr' invocations.
43736         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43740         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43741         Suggested by Paul Eggert.
43742
43743 2007-03-08  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/fseterr-tests: New file.
43746         * tests/test-fseterr.c: New file.
43747
43748         * modules/fseterr: New file.
43749         * lib/fseterr.h: New file.
43750         * lib/fseterr.c: New file.
43751
43752 2007-03-08  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43755         * lib/getopt_.h: Likewise.
43756         * lib/mbswidth.h: Likewise.
43757         * lib/setenv.h: Likewise.
43758         * lib/vasnprintf.h: Likewise.
43759         * lib/vasprintf.h: Likewise.
43760         * lib/verror.h: Likewise.
43761         * lib/xsetenv.h: Likewise.
43762         * lib/xvasprintf.h: Likewise.
43763
43764 2007-03-08  Jim Meyering  <jim@meyering.net>
43765
43766         * users.txt: Add parted.
43767
43768         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43769
43770 2007-03-07  Bruno Haible  <bruno@clisp.org>
43771
43772         * m4/printf.m4: Make the shell script snippets copy&pastable.
43773
43774 2007-03-02  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/netinet_in_.h: New file.
43777         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43778         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43779         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43780         (Depends-on): Add absolute-header.
43781         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43782         into netinet/in.h.
43783
43784 2007-03-03  Bruno Haible  <bruno@clisp.org>
43785
43786         * lib/sys_select_.h: New file.
43787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43788         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43789         * modules/sys_select (Files): Add lib/sys_select_.h.
43790         (Depends-on): Add absolute-header.
43791         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43792         into sys/select.h.
43793
43794 2007-03-02  Bruno Haible  <bruno@clisp.org>
43795
43796         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43797         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43798         values.
43799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43800         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43801         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43802         * modules/sys_socket (Depends-on): Add absolute-header.
43803         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43804         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43805         (Include): Remove requirement of inclusion of <sys/types.h>.
43806
43807 2007-03-02  Bruno Haible  <bruno@clisp.org>
43808
43809         * lib/byteswap_.h (bswap_32): Fix formula.
43810
43811 2007-03-06  Bruno Haible  <bruno@clisp.org>
43812
43813         * modules/sprintf-posix-tests: New file.
43814         * tests/test-sprintf-posix.c: New file.
43815
43816         * modules/sprintf-posix: New file.
43817         * lib/sprintf.c: New file.
43818         * m4/sprintf-posix.m4: New file.
43819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43820         REPLACE_SPRINTF.
43821         * lib/stdio_.h (sprintf): New declaration.
43822         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43823         REPLACE_SPRINTF.
43824
43825 2007-03-06  Bruno Haible  <bruno@clisp.org>
43826
43827         * modules/vsprintf-posix-tests: New file.
43828         * tests/test-vsprintf-posix.c: New file.
43829         * tests/test-sprintf-posix.h: New file.
43830
43831         * modules/vsprintf-posix: New file.
43832         * lib/vsprintf.c: New file.
43833         * m4/vsprintf-posix.m4: New file.
43834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43835         REPLACE_VSPRINTF.
43836         * lib/stdio_.h (vsprintf): New declaration.
43837         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43838         REPLACE_VSPRINTF.
43839
43840 2007-03-06  Bruno Haible  <bruno@clisp.org>
43841
43842         * modules/vsnprintf (Depend-on): Remove minmax.
43843
43844 2007-03-06  Bruno Haible  <bruno@clisp.org>
43845
43846         * modules/snprintf-posix-tests: New file.
43847         * tests/test-snprintf-posix.c: New file.
43848
43849         * modules/snprintf-posix: New file.
43850         * m4/snprintf-posix.m4: New file.
43851         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43852         gl_FUNC_SNPRINTF.
43853         (gl_FUNC_SNPRINTF): Invoke it.
43854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43855         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43856         is set.
43857         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43858
43859 2007-03-06  Bruno Haible  <bruno@clisp.org>
43860
43861         * modules/vsnprintf-posix-tests: New file.
43862         * tests/test-vsnprintf-posix.c: New file.
43863         * tests/test-snprintf-posix.h: New file.
43864
43865         * modules/vsnprintf-posix: New file.
43866         * m4/vsnprintf-posix.m4: New file.
43867         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43868         gl_FUNC_VSNPRINTF.
43869         (gl_FUNC_VSNPRINTF): Invoke it.
43870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43871         * lib/stdio_.h (vsnprintf): Define as a replacement if
43872         REPLACE_VSNPRINTF is set.
43873         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43874
43875 2007-03-06  Bruno Haible  <bruno@clisp.org>
43876
43877         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43879
43880 2007-03-06  Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43883         (asinl): Declare also if HAVE_DECL_ASINL is set.
43884         (atanl): Declare also if HAVE_DECL_ATANL is set.
43885         (ceill): Declare also if HAVE_DECL_CEILL is set.
43886         (cosl): Declare also if HAVE_DECL_COSL is set.
43887         (expl): Declare also if HAVE_DECL_EXPL is set.
43888         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43889         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43890         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43891         (logl): Declare also if HAVE_DECL_LOGL is set.
43892         (sinl): Declare also if HAVE_DECL_SINL is set.
43893         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43894         (tanl): Declare also if HAVE_DECL_TANL is set.
43895         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43897         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43898         declaration of frexpl, ldexpl.
43899         * modules/printf-frexpl (Depends-on): Add math.
43900         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43901
43902 2007-03-05  Bruno Haible  <bruno@clisp.org>
43903
43904         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43905         frexpl and ldexpl are declared.
43906         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43907
43908 2007-03-05  Bruno Haible  <bruno@clisp.org>
43909
43910         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43911         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43912
43913 2007-03-05  Bruno Haible  <bruno@clisp.org>
43914
43915         * lib/stdio_.h: Include <stddef.h>.
43916
43917 2007-03-05  Bruno Haible  <bruno@clisp.org>
43918
43919         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43920
43921 2007-03-05  Bruno Haible  <bruno@clisp.org>
43922
43923         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43924         NetBSD 4, from Ralf Wildenhues.
43925
43926 2007-03-04  Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/vasprintf.h: Update #if logic for the case when the functions
43929         exist but are overridden.
43930
43931 2007-03-04  Bruno Haible  <bruno@clisp.org>
43932
43933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43934         implementations: glibc-2.4 and MacOS X 10.3.
43935         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43936         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43937         * tests/test-vasprintf-posix.c (test_function): Likewise.
43938
43939 2007-03-04  Bruno Haible  <bruno@clisp.org>
43940
43941         * modules/vasprintf-posix-tests: New file.
43942         * tests/test-vasprintf-posix.c: New file.
43943
43944         * modules/vasprintf-posix: New file.
43945         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43946         defined.
43947         * m4/vasprintf-posix.m4: New file.
43948         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43949         gl_FUNC_VASPRINTF.
43950         (gl_FUNC_VASPRINTF): Invoke it.
43951         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43952         here.
43953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43954
43955 2007-03-04  Bruno Haible  <bruno@clisp.org>
43956
43957         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43958         REPLACE_GETTIMEOFDAY.
43959         * modules/sys_time (Makefile.am): Likewise.
43960         * m4/sys_time_h.m4: Likewise.
43961         * m4/gettimeofday.m4: Likewise.
43962
43963 2007-03-04  Bruno Haible  <bruno@clisp.org>
43964
43965         * modules/vasnprintf-posix-tests: New file.
43966         * tests/test-vasnprintf-posix.c: New file.
43967
43968         * modules/vasnprintf-posix: New file.
43969         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43970         printf-frexpl.h.
43971         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43972         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43973         REPLACE_VASNPRINTF is defined.
43974         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43975         gl_FUNC_VASNPRINTF.
43976         (gl_FUNC_VASNPRINTF): Invoke it.
43977         * m4/vasnprintf-posix.m4: New file.
43978         * m4/printf.m4: New file.
43979
43980 2007-03-04  Bruno Haible  <bruno@clisp.org>
43981
43982         Compile progreloc.c only if --enable-relocatable is specified.
43983         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43984         if --enable-relocatable was specified.
43985         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43986         lib_SOURCES.
43987
43988 2007-03-04  Jim Meyering  <jim@meyering.net>
43989
43990         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43991         Use it consistently, rather than enumerating errno constants.
43992
43993 2007-03-04  Bruno Haible  <bruno@clisp.org>
43994
43995         * modules/xvasprintf-tests: New file.
43996         * tests/test-xvasprintf.c: New file.
43997
43998         * modules/vasprintf-tests: New file.
43999         * tests/test-vasprintf.c: New file.
44000
44001         * modules/vasnprintf-tests: New file.
44002         * tests/test-vasnprintf.c: New file.
44003
44004         * modules/vsnprintf-tests: New file.
44005         * tests/test-vsnprintf.c: New file.
44006
44007         * modules/snprintf-tests: New file.
44008         * tests/test-snprintf.c: New file.
44009
44010 2007-03-04  Bruno Haible  <bruno@clisp.org>
44011
44012         Compile relocatable.c only if --enable-relocatable is specified.
44013         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44014         gl_RELOCATABLE_LIBRARY.
44015         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44016         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44017         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44018         gl_RELOCATABLE_LIBRARY.
44019         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44020         (Makefile.am): Remove lib_SOURCES.
44021         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44022         gl_RELOCATABLE_LIBRARY.
44023         (Makefile.am): Remove lib_SOURCES.
44024         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44025         always.
44026         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44027         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44028
44029 2007-03-04  Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/argmatch-tests: New file.
44032         * tests/test-argmatch.c: New file.
44033
44034         * tests/test-allocsa.c (main): Halve the number of loop runs.
44035
44036         * modules/alloca-opt-tests: New file.
44037         * tests/test-alloca-opt.c: New file.
44038
44039 2007-03-04  Jim Meyering  <jim@meyering.net>
44040
44041         Work around difference between Linux ACLs and Solaris 10 ZFS.
44042         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44043         for EINVAL.
44044
44045 2007-03-03  Bruno Haible  <bruno@clisp.org>
44046
44047         * modules/relocatable-prog (Depends-on): Add back progreloc's
44048         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44049
44050 2007-03-03  Bruno Haible  <bruno@clisp.org>
44051
44052         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44053         * modules/relocatable-lib: New file.
44054
44055 2007-03-03  Bruno Haible  <bruno@clisp.org>
44056
44057         * modules/relocatable-prog: Renamed from modules/relocatable.
44058         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44059
44060 2007-03-03  Bruno Haible  <bruno@clisp.org>
44061
44062         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44063         m4/relocatable-lib.m4.
44064         (Depends-on): Remove 'relocatable'.
44065         (configure.ac): Add gl_RELOCATABLE_NOP.
44066
44067 2007-03-03  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/relocatable-prog-wrapper: New file.
44070         * modules/relocatable (Depends-on): Add it. Remove all other
44071         dependencies except progname.
44072         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44073
44074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44075         (gl_FUNC_STRERROR): Nop.
44076         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44077
44078         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44079         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44080
44081         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44082         (gl_FUNC_READLINK): Update.
44083
44084         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44085
44086 2007-03-03  Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44089         * modules/xreadlink (Depends-on): Add unistd.
44090         * modules/xreadlink-with-size (Depends-on): Likewise.
44091
44092 2007-03-03  Bruno Haible  <bruno@clisp.org>
44093
44094         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44095         extracted from gt_FUNC_SETENV.
44096         (gt_FUNC_SETENV): Remove macro.
44097         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44098         remove gt_FUNC_SETENV.
44099
44100 2007-03-03  Bruno Haible  <bruno@clisp.org>
44101
44102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44103         ENABLE_RELOCATABLE here.
44104         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44105
44106 2007-03-03  Bruno Haible  <bruno@clisp.org>
44107
44108         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44109         * tests/test-rbtreehash_list.c: Include progname.h.
44110         (main): Call set_program_name.
44111
44112         * modules/rbtree-oset-tests (Depends-on): Add progname.
44113         * tests/test-rbtree_oset.c: Include progname.h.
44114         (main): Call set_program_name.
44115
44116         * modules/rbtree-list-tests (Depends-on): Add progname.
44117         * tests/test-rbtree_list.c: Include progname.h.
44118         (main): Call set_program_name.
44119
44120         * modules/linked-list-tests (Depends-on): Add progname.
44121         * tests/test-linked_list.c: Include progname.h.
44122         (main): Call set_program_name.
44123
44124 2007-03-03  Bruno Haible  <bruno@clisp.org>
44125
44126         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44127         All uses of __restrict changed to _Restrict_.
44128         * lib/glob_.h (__restrict): Remove macro.
44129
44130 2007-03-02  Bruno Haible  <bruno@clisp.org>
44131
44132         * modules/gettext (configure.ac): Require gettext infrastructure
44133         from version 0.16.1.
44134
44135 2007-03-02  Bruno Haible  <bruno@clisp.org>
44136
44137         * modules/linkedhash-list-tests (Depends-on): Add progname.
44138         * tests/test-linkedhash_list.c: Include progname.h.
44139         (main): Call set_program_name.
44140
44141         * modules/carray-list-tests (Depends-on): Add progname.
44142         * tests/test-carray_list.c: Include progname.h.
44143         (main): Call set_program_name.
44144
44145         * modules/avltreehash-list-tests (Depends-on): Add progname.
44146         * tests/test-avltreehash_list.c: Include progname.h.
44147         (main): Call set_program_name.
44148
44149         * modules/avltree-oset-tests (Depends-on): Add progname.
44150         * tests/test-avltree_oset.c: Include progname.h.
44151         (main): Call set_program_name.
44152
44153         * modules/avltree-list-tests (Depends-on): Add progname.
44154         * tests/test-avltree_list.c: Include progname.h.
44155         (main): Call set_program_name.
44156
44157         * modules/array-oset-tests (Depends-on): Add progname.
44158         * tests/test-array_oset.c: Include progname.h.
44159         (main): Call set_program_name.
44160
44161         * modules/array-list-tests (Depends-on): Add progname.
44162         * tests/test-array_list.c: Include progname.h.
44163         (main): Call set_program_name.
44164
44165         * modules/argp-tests (Depends-on): Add progname.
44166         * tests/test-argp.c: Include argp.h first. Include progname.h.
44167         (main): Call set_program_name.
44168
44169 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * doc/gnulib-tool.texi (Initial import): Reword description of
44172         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44173         limited effect even if defined after the first system include.
44174
44175 2007-03-01  Bruno Haible  <bruno@clisp.org>
44176
44177         * build-aux/config.libpath: Update to libtool-1.5.22.
44178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44179
44180 2007-03-01  Bruno Haible  <bruno@clisp.org>
44181
44182         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44183         foo_CFLAGS.
44184         Reported by Ralf Wildenhues.
44185
44186 2007-03-01  Bruno Haible  <bruno@clisp.org>
44187
44188         * build-aux/install-reloc: Remove object files left over by some
44189         compilers.
44190         Reported by Ralf Wildenhues.
44191
44192 2007-03-01  Bruno Haible  <bruno@clisp.org>
44193
44194         * build-aux/install-reloc: Break long lines.
44195
44196 2007-03-01  Bruno Haible  <bruno@clisp.org>
44197
44198         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44199         Reported by Ralf Wildenhues.
44200
44201 2007-03-01  Bruno Haible  <bruno@clisp.org>
44202
44203         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44204         include ordering constraints.
44205
44206 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44207
44208         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44210         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44211         as another example.
44212         * lib/time_.h: Fix misspelling.
44213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44214         Require gl_HEADER_TIME_H_DEFAULTS.
44215         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44216         * m4/time_r.m4 (gl_TIME_R): Likewise.
44217         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44218
44219 2007-03-01  Bruno Haible  <bruno@clisp.org>
44220
44221         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44222         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44223
44224 2007-03-01  Jim Meyering  <jim@meyering.net>
44225
44226         * modules/xreadlink (Maintainer): Add my name.
44227         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44228
44229 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44230             Bruno Haible  <bruno@clisp.org>
44231
44232         * build-aux/install-reloc: Compile also c-ctype.c.
44233         * build-aux/relocatable.sh.in: New file.
44234         * doc/relocatable.texi: New file.
44235         * doc/relocatable-maint.texi: New file.
44236         * doc/gnulib.texi: Include relocatable-maint.texi.
44237         * lib/progreloc.c: Include unistd.h unconditionally.
44238         * lib/relocwrapper.c: Include unistd.h unconditionally.
44239         Include c-ctype.h.
44240         (add_dotbin): Use c_tolower.
44241         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44242         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44243         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44244         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44245         to m4/relocatable-lib.m4.
44246         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44247         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44248         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44249         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44250         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44251         * modules/relocatable: New file.
44252         * modules/relocatable-lib: New file.
44253         * modules/relocatable-script: New file.
44254
44255 2007-02-28  Bruno Haible  <bruno@clisp.org>
44256
44257         Import --enable-relocatable infrastructure.
44258         * build-aux/config.libpath: New file, from GNU gettext.
44259         * build-aux/install-reloc: New file, from GNU gettext.
44260         * build-aux/reloc-ldflags: New file, from GNU gettext.
44261         * lib/relocatable.h: New file, from GNU gettext.
44262         * lib/relocatable.c: New file, from GNU gettext.
44263         * lib/relocwrapper.c: New file, from GNU gettext.
44264         * m4/relocatable.m4: New file, from GNU gettext.
44265
44266 2007-02-28  Bruno Haible  <bruno@clisp.org>
44267
44268         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44269
44270         * modules/xreadlink: New file, from GNU gettext with modifications.
44271         * lib/xreadlink.c: New file, from GNU gettext.
44272         * lib/xreadlink.h: Add comments.
44273         (xreadlink): New declaration.
44274
44275         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44276         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44277         lib/xreadlink-with-size.c.
44278         (configure.ac): Remove gl_XREADLINK invocation.
44279         (Makefile.am): Augment lib_SOURCES.
44280         * m4/xreadlink.m4: Remove file.
44281         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44282         (xreadlink_with_size): Renamed from xreadink.
44283         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44284         * modules/canonicalize (Depends-on): Replace xreadlink with
44285         xreadlink-with-size.
44286         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44287
44288 2007-02-25  Jim Meyering  <jim@meyering.net>
44289
44290         * build-aux/announce-gen: When complaining about excess arguments,
44291         list them.
44292
44293 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44294
44295         * README: Document signed integer overflow situation more
44296         accurately.
44297
44298 2007-02-25  Bruno Haible  <bruno@clisp.org>
44299
44300         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44301         'a' or 'A' conversion.
44302
44303 2007-02-25  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/filename: Renamed from modules/pathname.
44306         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44307         lib/concatpath.c with lib/concat-filename.c.
44308         (Makefile.am): Update.
44309         (Include): Replace pathname.h with filename.h.
44310         * lib/filename.h: Renamed from lib/pathname.h.
44311         (concatenated_filename): Renamed from concatenated_pathname.
44312         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44313         (concatenated_filename): Renamed from concatenated_pathname.
44314         * lib/findprog.c: Include filename.h instead of pathname.h.
44315         (find_in_path): Update.
44316         * lib/javacomp.c: Include filename.h instead of pathname.h.
44317         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44318         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44319         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44320         is_oldgcj_14_13_usable, is_javac_usable): Update.
44321         * lib/javaexec.c: Include filename.h instead of pathname.h.
44322         (execute_java_class): Update.
44323         * modules/findprog: Update.
44324         * modules/javacomp: Update.
44325         * modules/javaexec: Update.
44326         * MODULES.html.sh (File system functions): Add 'filename', remove
44327         'pathname'.
44328
44329 2007-02-25  Bruno Haible  <bruno@clisp.org>
44330
44331         * modules/printf-frexpl-tests: New file.
44332         * tests/test-printf-frexpl.c: New file.
44333
44334         * modules/printf-frexpl: New file.
44335         * lib/printf-frexpl.h: New file.
44336         * lib/printf-frexpl.c: New file.
44337         * m4/printf-frexpl.m4: New file.
44338
44339 2007-02-25  Bruno Haible  <bruno@clisp.org>
44340
44341         * modules/printf-frexp-tests: New file.
44342         * tests/test-printf-frexp.c: New file.
44343
44344         * modules/printf-frexp: New file.
44345         * lib/printf-frexp.h: New file.
44346         * lib/printf-frexp.c: New file.
44347         * m4/printf-frexp.m4: New file.
44348
44349 2007-02-25  Bruno Haible  <bruno@clisp.org>
44350
44351         Assume automake >= 1.10 for the tests.
44352         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44353         * modules/arctwo-tests: Likewise.
44354         * modules/argp-tests: Likewise.
44355         * modules/avltree-list-tests: Likewise.
44356         * modules/avltree-oset-tests: Likewise.
44357         * modules/avltreehash-list-tests: Likewise.
44358         * modules/carray-list-tests: Likewise.
44359         * modules/crc-tests: Likewise.
44360         * modules/des-tests: Likewise.
44361         * modules/gc-arcfour-tests: Likewise.
44362         * modules/gc-arctwo-tests: Likewise.
44363         * modules/gc-des-tests: Likewise.
44364         * modules/gc-hmac-md5-tests: Likewise.
44365         * modules/gc-hmac-sha1-tests: Likewise.
44366         * modules/gc-md2-tests: Likewise.
44367         * modules/gc-md4-tests: Likewise.
44368         * modules/gc-md5-tests: Likewise.
44369         * modules/gc-pbkdf2-sha1-tests: Likewise.
44370         * modules/gc-rijndael-tests: Likewise.
44371         * modules/gc-sha1-tests: Likewise.
44372         * modules/gc-tests: Likewise.
44373         * modules/getaddrinfo-tests: Likewise.
44374         * modules/hmac-md5-tests: Likewise.
44375         * modules/hmac-sha1-tests: Likewise.
44376         * modules/linked-list-tests: Likewise.
44377         * modules/linkedhash-list-tests: Likewise.
44378         * modules/lock-tests: Likewise.
44379         * modules/md2-tests: Likewise.
44380         * modules/md4-tests: Likewise.
44381         * modules/md5-tests: Likewise.
44382         * modules/rbtree-list-tests: Likewise.
44383         * modules/rbtree-oset-tests: Likewise.
44384         * modules/rbtreehash-list-tests: Likewise.
44385         * modules/read-file-tests: Likewise.
44386         * modules/rijndael-tests: Likewise.
44387         * modules/stdint-tests: Likewise.
44388         * modules/tls-tests: Likewise.
44389
44390 2007-02-24  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44393         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44394         function; instead check whether isnan with a double argument links.
44395         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44396         function; instead check whether isnan with a 'long double' argument
44397         links.
44398         Reported by Eric Blake <ebb9@byu.net>.
44399
44400 2007-02-24  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44403         defined.
44404         * lib/isnanl.c: Remove all code. Just include isnan.c.
44405         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44406
44407 2007-02-25  Jim Meyering  <jim@meyering.net>
44408
44409         Avoid conflicting types for 'unsetenv' on FreeBSD.
44410         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44411         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44412         in stdlib.h.
44413
44414 2007-02-24  Bruno Haible  <bruno@clisp.org>
44415
44416         * modules/isnanl-nolibm-tests: New file.
44417         * tests/test-isnanl.c: New file.
44418
44419         * modules/isnanl-nolibm: New file.
44420         * lib/isnanl.h: New file.
44421         * lib/isnanl.c: New file.
44422         * m4/isnanl.m4: New file.
44423
44424 2007-02-24  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/isnan-nolibm-tests: New file.
44427         * tests/test-isnan.c: New file.
44428
44429         * modules/isnan-nolibm: New file.
44430         * lib/isnan.h: New file.
44431         * lib/isnan.c: New file.
44432         * m4/isnan.m4: New file.
44433
44434 2007-02-24  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44437         assume that an exponent fits in 20 bits.
44438
44439 2007-02-24  Jim Meyering  <jim@meyering.net>
44440
44441         * m4/regex.m4: Update the description of the configure-time option,
44442         --without-included-regex, to state accurately what the defaults are,
44443         and perhaps to give people an idea why using this option is risky.
44444
44445 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44448         loops on small arguments.  This attempts to avoid the problem
44449         Bruno Haible reported for AIX 4.3.2 in
44450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44451
44452 2007-02-23  Bruno Haible  <bruno@clisp.org>
44453
44454         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44455         Needed for help2man.
44456
44457 2007-02-23  Karl Berry  <karl@gnu.org>
44458
44459         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44460         exists, foo.h should be cvs-ignored, not committed.
44461
44462 2007-02-23  Eric Blake  <ebb9@byu.net>
44463
44464         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44465         * lib/stat-time.h (includes): Likewise.
44466         * lib/utimecmp.c (includes): Likewise.
44467         * lib/utimens.h (includes): Likewise.
44468         * lib/getdate.y (includes): Also include "timespec.h" for use
44469         internal to the module.
44470         * modules/utimens (Depends-on): Revert yesterday's patch.
44471         * modules/nanosleep (Depends-on): Add missing dependency.
44472
44473 2007-02-22  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/glob.c: Don't include getlogin_r.h.
44476
44477 2007-02-22  Jim Meyering  <jim@meyering.net>
44478
44479         * modules/utimens (Depends-on): Add timespec, required for
44480         utimens.h's inclusion of timespec.h.
44481
44482 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44483
44484         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44485         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44486         Schwab in
44487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44488         I'll try to think of a better way to fix the Solaris problem.
44489
44490         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44491         like glibc; on Solaris 10, it fails with errno == EINVAL.
44492         POSIX says the behavior is unspecified if the first argument is NULL,
44493         so play it safe and never pass NULL to the system getcwd.
44494
44495 2007-02-21  Jim Meyering  <jim@meyering.net>
44496
44497         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44498         of gettimeofday.  It would conflict with the one now always
44499         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44500         an IRIX 6.5 build failure.
44501
44502 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         Minor fixups to port to Solaris 10 with Sun C 5.8.
44505         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44506         * modules/getcwd (Depends-on): Add dirfd.
44507         * lib/putenv.c (putenv): #undef it.
44508         (rpl_putenv): New decl.
44509         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44510
44511 2007-02-20  Bruno Haible  <bruno@clisp.org>
44512
44513         * modules/stdio-tests: New file.
44514         * tests/test-stdio.c: New file.
44515
44516         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44517         (Depends-on): Add stdio.
44518         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44519         (Include): Use <stdio.h> instead of vsnprintf.h.
44520         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44521         HAVE_DECL_VSNPRINTF.
44522         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44523
44524         * modules/snprintf (Files): Remove lib/snprintf.h.
44525         (Depends-on): Add stdio.
44526         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44527         (Include): Use <stdio.h> instead of snprintf.h.
44528         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44529         HAVE_DECL_SNPRINTF.
44530         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44531         * lib/getaddrinfo.c: Likewise.
44532
44533         * modules/stdio: New file.
44534         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44535         * lib/snprintf.h: Remove file.
44536         * lib/vsnprintf.h: Remove file.
44537         * lib/.cppi-disable: Remove snprintf.h.
44538         * m4/stdio_h.m4: New file.
44539         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44540
44541 2007-02-20  Jim Meyering  <jim@meyering.net>
44542
44543         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44544         used by e.g., mingw.  From Bruno Haible.
44545
44546 2007-02-19  Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44549         warnings.
44550         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44551
44552 2007-02-19  Bruno Haible  <bruno@clisp.org>
44553
44554         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44555         from mingw users.
44556
44557 2007-02-19  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44560         warnings.
44561         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44562
44563 2007-02-19  Jim Meyering  <jim@meyering.net>
44564
44565         Don't use FD after a successful "fdopendir (fd)".
44566         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44567         Reset it by calling dirfd on the just-obtained DIR*.
44568
44569         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44570         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44571
44572 2007-02-18  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/readlink.c: Include <unistd.h>.
44575         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44576         HAVE_READLINK.
44577         * modules/readlink (Depends-on): Add unistd.
44578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44579         (Include): Add <unistd.h>.
44580
44581         * lib/getlogin_r.h: Remove file.
44582         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44583         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44584         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44585         HAVE_DECL_GETLOGIN_R.
44586         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44587         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44588         (Include): Use <unistd.h> instead of getlogin_r.h.
44589
44590         * lib/getcwd.h: Remove file.
44591         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44592         * lib/xgetcwd.c: Likewise.
44593         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44594         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44595         * modules/getcwd (Files): Remove lib/getcwd.h.
44596         (Depends-on): Add unistd.
44597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44598         (Include): Use <unistd.h> instad of getcwd.h.
44599
44600         * lib/ftruncate.c: Include <unistd.h> first.
44601         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44602         Set HAVE_FTRUNCATE.
44603         * modules/ftruncate (Depends-on): Add unistd.
44604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44605
44606         * lib/fchdir.c: Include <unistd.h> first.
44607         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44609         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44610         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44611         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44612
44613         * lib/dup2.c: Include <unistd.h> first.
44614         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44615         HAVE_DUP2.
44616         * modules/dup2 (Depends-on): Add unistd.
44617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44618
44619         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44620         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44621         REPLACE_CHOWN. Don't define chown as a macro here.
44622         * modules/chown (Depends-on): Add unistd.
44623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44624
44625         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44626         Add definition for GL_LINK_WARNING.
44627         (chown, dup2): New declarations.
44628         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44629         link warning.
44630         (ftruncate): New declaration.
44631         (getcwd): New declaration, taken from old getcwd.h.
44632         (getlogin_r): New declaration, taken from old getlogin_r.h.
44633         (readlink): New declaration.
44634         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44635         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44636         (gl_PREREQ_UNISTD): Remove macro.
44637         (gl_UNISTD_MODULE_INDICATOR): New macro.
44638         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44639         many new variables. Don't set UNISTD_H.
44640         * modules/unistd (Description): Change.
44641         (Depends-on): Add link-warning.
44642         (configure.ac): Update.
44643         (Makefile.am): Create unistd.h always. Substitute many new variables
44644         into it.
44645
44646 2007-02-18  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44649         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44650         HAVE_GETSUBOPT.
44651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44652         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44653         * lib/getsubopt.h: Remove file.
44654         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44655         (Depends-on): Add stdlib.
44656         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44657         (Includes): Use <stdlib.h> instead of getsubopt.h.
44658         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44659         Set HAVE_GETSUBOPT.
44660         * lib/getsubopt.c: Don't include getsubopt.h.
44661
44662 2007-02-18  Bruno Haible  <bruno@clisp.org>
44663
44664         * modules/fchdir (Depends-on): Add dup2.
44665
44666 2007-02-18  Bruno Haible  <bruno@clisp.org>
44667
44668         * lib/stdlib_.h: Handle glibc's special invocation convention
44669         specially.
44670
44671 2007-02-18  Bruno Haible  <bruno@clisp.org>
44672
44673         * modules/stdlib-tests: New file.
44674         * tests/test-stdlib.c: New file.
44675
44676         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44677         (Depends-on): Add stdlib.
44678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44679         (Includes): Use <stdlib.h> instead of mkstemp.h.
44680         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44681         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44682         * lib/mkstemp.c: Don't include mkstemp.h.
44683         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44684         * lib/stdlib--.h: Don't include mkstemp.h.
44685
44686         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44687         (Depends-on): Add stdlib.
44688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44689         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44690         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44691         HAVE_MKDTEMP.
44692         * lib/mkdtemp.c: Don't include mkdtemp.h.
44693         * lib/clean-temp.c: Don't include mkdtemp.h.
44694
44695         * modules/exit (Files): Remove lib/exit.h.
44696         (Depends-on): Add stdlib.
44697         (Makefile.am): Remove lib_SOURCES.
44698         (Include): Use <stdlib.h> instead of exit.h.
44699         * lib/argmatch.c: Don't include exit.h.
44700         * lib/execute.c: Likewise.
44701         * lib/pagealign_alloc.c: Likewise.
44702         * lib/pipe.c: Likewise.
44703         * lib/wait-process.c: Likewise.
44704         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44705         * lib/exitfail.c: Likewise.
44706         * lib/savewd.c: Likewise.
44707         * lib/xsetenv.c: Likewise.
44708
44709         * modules/stdlib: New file.
44710         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44711         and extra comments about mkstemp().
44712         * lib/exit.h: Remove file.
44713         * lib/mkdtemp.h: Remove file.
44714         * lib/mkstemp.h: Remove file.
44715         * m4/stdlib_h.m4: New file.
44716         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44717
44718 2007-02-18  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/math-tests: New file.
44721         * tests/test-math.c: New file.
44722
44723         * modules/math: New file.
44724         * modules/mathl (Files): Remove lib/mathl.h.
44725         (Depends-on): Add math.
44726         (Makefile.am): Don't mention mathl.h.
44727         (Include): Use <math.h> instead of mathl.h.
44728         * lib/math_.h: New file.
44729         * lib/mathl.h: Remove file.
44730         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44731         mathl.h.
44732         * lib/asinl.c: Likewise.
44733         * lib/atanl.c: Likewise.
44734         * lib/ceill.c: Likewise.
44735         * lib/cosl.c: Likewise.
44736         * lib/expl.c: Likewise.
44737         * lib/floorl.c: Likewise.
44738         * lib/frexpl.c: Likewise.
44739         * lib/ldexpl.c: Likewise.
44740         * lib/logl.c: Likewise.
44741         * lib/sincosl.c: Likewise.
44742         * lib/sinl.c: Likewise.
44743         * lib/sqrtl.c: Likewise.
44744         * lib/tanl.c: Likewise.
44745         * lib/trigl.c: Likewise.
44746         * m4/math_h.m4: New file.
44747         * MODULES.html.sh (Mathematics): Add math.
44748
44749 2007-02-17  Bruno Haible  <bruno@clisp.org>
44750
44751         * modules/wctype-tests: New file.
44752         * tests/test-wctype.c: New file.
44753
44754         * modules/wchar-tests: New file.
44755         * tests/test-wchar.c: New file.
44756
44757         * modules/unistd-tests: New file.
44758         * tests/test-unistd.c: New file.
44759
44760         * modules/time-tests: New file.
44761         * tests/test-time.c: New file.
44762
44763         * modules/sysexits-tests: New file.
44764         * tests/test-sysexits.c: New file.
44765
44766         * modules/sys_time-tests: New file.
44767         * tests/test-sys_time.c: New file.
44768
44769         * modules/sys_stat-tests: New file.
44770         * tests/test-sys_stat.c: New file.
44771
44772         * modules/sys_socket-tests: New file.
44773         * tests/test-sys_socket.c: New file.
44774
44775         * modules/sys_select-tests: New file.
44776         * tests/test-sys_select.c: New file.
44777
44778         * modules/string-tests: New file.
44779         * tests/test-string.c: New file.
44780
44781         * modules/stdbool-tests: New file.
44782         * tests/test-stdbool.c: New file.
44783
44784         * modules/netinet_in-tests: New file.
44785         * tests/test-netinet_in.c: New file.
44786
44787         * modules/inttypes-tests: New file.
44788         * tests/test-inttypes.c: New file.
44789
44790         * modules/fcntl-tests: New file.
44791         * tests/test-fcntl.c: New file.
44792
44793         * modules/byteswap-tests: New file.
44794         * tests/test-byteswap.c: New file.
44795
44796         * modules/arpa_inet-tests: New file.
44797         * tests/test-arpa_inet.c: New file.
44798
44799 2007-02-17  Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44802         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44803         if the corresponding module is not enabled. Emit link warnings if
44804         the function is used nevertheless.
44805         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44806         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44807         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44808         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44809         * modules/inttypes (Depends-on): Add link-warning.
44810         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44811         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44812         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44813         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44814         * modules/imaxdiv (configure.ac): Likewise.
44815         * modules/strtoimax (configure.ac): Likewise.
44816         * modules/strtoumax (configure.ac): Likewise.
44817
44818 2007-02-17  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44821         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44822         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44823         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44824
44825 2007-02-17  Bruno Haible  <bruno@clisp.org>
44826
44827         * modules/link-warning: New file.
44828         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44829         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44830         * modules/string (Depends-on): Add link-warning.
44831         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44832         string.h.
44833         * MODULES.html.sh (Support for building libraries and executables): Add
44834         link-warning.
44835
44836 2007-02-17  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44839         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44840         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44841         long lines.
44842
44843 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44844             Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/tmpfile: New file.
44847         * lib/tmpfile.c: New file.
44848         * m4/tmpfile.m4: New file.
44849         * MODULES.html.sh (func_all_modules): New section "Input/output".
44850
44851 2007-02-15  Bruno Haible  <bruno@clisp.org>
44852
44853         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44854         (supports_delete_on_close): New function.
44855         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44856
44857 2007-02-14  Bruno Haible  <bruno@clisp.org>
44858
44859         * modules/mbspcasecmp-tests: New file.
44860         * tests/test-mbspcasecmp.sh: New file.
44861         * tests/test-mbspcasecmp.c: New file.
44862
44863         New module mbspcasecmp.
44864         * modules/mbspcasecmp: New file.
44865         * lib/mbspcasecmp.c: New file.
44866         * lib/string_.h (strncasecmp): Change warning message.
44867         (mbspcasecmp): New declaration.
44868         * m4/mbspcasecmp.m4: New file.
44869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44870         GNULIB_MBSPCASECMP.
44871         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44872         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44873
44874 2007-02-14  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/mbsncasecmp-tests: New file.
44877         * tests/test-mbsncasecmp.sh: New file.
44878         * tests/test-mbsncasecmp.c: New file.
44879
44880         New module mbsncasecmp.
44881         * modules/mbsncasecmp: New file.
44882         * lib/mbsncasecmp.c: New file.
44883         * lib/string_.h (mbsncasecmp): New declaration.
44884         * m4/mbsncasecmp.m4: New file.
44885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44886         GNULIB_MBSNCASECMP.
44887         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44888         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44889
44890 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44891
44892         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44893         Verify that it doesn't overlap with our flags.
44894         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44895         do not have the desired effect in multibyte locales; instead, use
44896         mbscasecmp.
44897         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44898         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44899         we don't require GNU fnmatch ourselves (if our users require it, they
44900         should do so explicitly).
44901
44902         Fix regex code so it doesn't rely on strcasecmp.
44903         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44904         Otherwise, include gnulib's langinfo.h.
44905         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44906         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44907         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44908         * modules/regex (FILES): Remove m4/codeset.m4.
44909         (Depends-on): Add localcharset.  Remove strcase.
44910
44911 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44912
44913         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44914         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44915
44916 2007-02-13  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44920
44921 2007-02-12  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44924         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44925         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44926         time warning rather than a link error.
44927
44928 2007-02-12  Bruno Haible  <bruno@clisp.org>
44929
44930         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44931         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44933
44934 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44935
44936         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44937         args, not 2.
44938
44939 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44940
44941         New module 'time', so that apps can include <time.h> as per
44942         POSIX and GNU instead of separate include files like time_r.h
44943         and timegm.h.  This implementation tries out a simpler approach
44944         for replacing decls in standard include files (as compared to
44945         the string module), somewhat as an experiment.
44946
44947         * config/srclist.txt: Comment out mktime.c for now.
44948         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44949         since it doesn't apply any more.  Use generic wording instead.
44950         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44951         'time'.
44952         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44953         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44954         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44955         Don't include <sys/types.h>; no longer needed since we assume C89.
44956         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44957         * lib/strftime.c: Likewise.
44958         * lib/time_r.c: Likewise.
44959         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44960         * lib/nanosleep.c: Include <time.h> first, to check interface.
44961         * lib/strptime.c: Likewise.
44962         * lib/time_r.c: Likewise.
44963         * lib/timegm.c: Likewise.
44964         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44965         needed.
44966         * lib/timegm.c: Don't include timegm.h; no longer needed.
44967         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44968         time.h now handles any problems in that area.
44969         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44970         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44971         that time.h defines struct timespec.
44972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44973         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44974         handles that.
44975         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44976         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44977         needed.  Set REPLACE_LOCALTIME.
44978         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44979         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44980         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44981         nanosleep; time_h.m4 now does that.  Don't require
44982         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44983         module handles this now.
44984         * modules/getdate (Depends-on): Remove timespec.  Add time.
44985         * modules/nanosleep (Depends-on): Likewise.
44986         * modules/stat-time (Depends-on): Likewise.
44987         * modules/nanosleep (Include): Include time.h, not timespec.h.
44988         * modules/strptime (Files): Remove lib/strptime.h.
44989         (Depends-on): Add extensions, time.
44990         (Include): Include time.h, not strptime.h.
44991         * modules/time_r (Files): Remove lib/time_r.h.
44992         (Depends-on): Add time.
44993         (Include): Include time.h, not time_r.h.
44994         * modules/timegm: Likewise.
44995         * modules/timespec (Description): Now does timespec-related decls
44996         of our own, instead of struct timespec itself.
44997         (Depends-on): Add time; remove extensions.
44998         (Maintainer): Add self.
44999         * modules/utimecmp (Depends-on): Add time; remove timespec.
45000         * modules/utimens (Depends-on): Likewise.
45001         * modules/xnanosleep (Depends-on): Likewise.
45002
45003 2007-02-11  Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/c-strstr.c: Include allocsa.h.
45006         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45007         * lib/c-strcasestr.c: Include allocsa.h.
45008         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45009         * lib/strcasestr.c: Include allocsa.h.
45010         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45011         * lib/mbsstr.c: Include allocsa.h.
45012         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45013         allocsa/freesa instead of malloc/free.
45014         * lib/mbscasestr.c: Include allocsa.h.
45015         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45016         allocsa/freesa instead of malloc/free.
45017         * modules/c-strstr (Depends-on): Add allocsa.
45018         * modules/c-strcasestr (Depends-on): Likewise.
45019         * modules/strcasestr (Depends-on): Likewise.
45020         * modules/mbsstr (Depends-on): Likewise.
45021         * modules/mbscasestr (Depends-on): Likewise.
45022
45023 2007-02-11  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45026
45027         * modules/mbsspn-tests: New file.
45028         * tests/test-mbsspn.sh: New file.
45029         * tests/test-mbsspn.c: New file.
45030
45031 2007-02-11  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45034
45035         * modules/mbspbrk-tests: New file.
45036         * tests/test-mbspbrk.sh: New file.
45037         * tests/test-mbspbrk.c: New file.
45038
45039 2007-02-11  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45042         unneeded cast.
45043
45044         * modules/mbscspn-tests: New file.
45045         * tests/test-mbscspn.sh: New file.
45046         * tests/test-mbscspn.c: New file.
45047
45048 2007-02-11  Bruno Haible  <bruno@clisp.org>
45049
45050         * modules/mbscasecmp-tests: New file.
45051         * tests/test-mbscasecmp.sh: New file.
45052         * tests/test-mbscasecmp.c: New file.
45053
45054 2007-02-11  Bruno Haible  <bruno@clisp.org>
45055
45056         Ensure O(n) worst-case complexity of mbscasestr.
45057         * lib/mbscasestr.c: Include stdbool.h.
45058         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45059         functions.
45060         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45061         the bookkeeping indicates that it's worth it.
45062         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45063
45064         * modules/mbscasestr-tests: New file.
45065         * tests/test-mbscasestr1.c: New file.
45066         * tests/test-mbscasestr2.sh: New file.
45067         * tests/test-mbscasestr2.c: New file.
45068         * tests/test-mbscasestr3.sh: New file.
45069         * tests/test-mbscasestr3.c: New file.
45070         * tests/test-mbscasestr4.sh: New file.
45071         * tests/test-mbscasestr4.c: New file.
45072         * m4/locale-tr.m4: New file.
45073
45074 2007-02-11  Bruno Haible  <bruno@clisp.org>
45075
45076         Ensure O(n) worst-case complexity of mbsstr.
45077         * lib/mbsstr.c: Include stdbool.h.
45078         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45079         functions.
45080         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45081         bookkeeping indicates that it's worth it.
45082         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45083
45084         * modules/mbsstr-tests: New file.
45085         * tests/test-mbsstr1.c: New file.
45086         * tests/test-mbsstr2.sh: New file.
45087         * tests/test-mbsstr2.c: New file.
45088         * tests/test-mbsstr3.sh: New file.
45089         * tests/test-mbsstr3.c: New file.
45090         * m4/locale-fr.m4: New file.
45091
45092 2007-02-11  Bruno Haible  <bruno@clisp.org>
45093
45094         * lib/mbsrchr.c (mbsrchr): Fix bug.
45095
45096         * modules/mbsrchr-tests: New file.
45097         * tests/test-mbsrchr.sh: New file.
45098         * tests/test-mbsrchr.c: New file.
45099
45100 2007-02-11  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/mbschr.c (mbschr): Fix bug.
45103
45104         * modules/mbschr-tests: New file.
45105         * tests/test-mbschr.sh: New file.
45106         * tests/test-mbschr.c: New file.
45107         * m4/locale-zh.m4: New file.
45108
45109 2007-02-11  Bruno Haible  <bruno@clisp.org>
45110
45111         Support for copying multibyte string iterators.
45112         * lib/mbiter.h: Include <string.h>.
45113         (mbiter_multi_copy): New function.
45114         (mbi_copy): New macro.
45115         * lib/mbuiter.h: Include <string.h>.
45116         (mbuiter_multi_copy): New function.
45117         (mbui_copy): New macro.
45118
45119 2007-02-11  Bruno Haible  <bruno@clisp.org>
45120
45121         New module mbslen.
45122         * modules/mbslen: New file.
45123         * lib/mbslen.c: New file.
45124         * lib/string_.h (mbslen): New declaration.
45125         * m4/mbslen.m4: New file.
45126         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45127         GNULIB_MBSLEN.
45128         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45129         * MODULES.html.sh (Internationalization functions): Add mbslen.
45130
45131 2007-02-11  Bruno Haible  <bruno@clisp.org>
45132
45133         Ensure O(n) worst-case complexity of strcasestr substitute.
45134         * lib/strcasestr.c: Include stdbool.h.
45135         (knuth_morris_pratt): New function.
45136         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45137         bookkeeping indicates that it's worth it.
45138         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45139
45140         * modules/strcasestr-tests: New file.
45141         * tests/test-strcasestr.c: New file.
45142
45143 2007-02-11  Bruno Haible  <bruno@clisp.org>
45144
45145         Ensure O(n) worst-case complexity of c_strcasestr.
45146         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45147         (knuth_morris_pratt): New function.
45148         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45149         the bookkeeping indicates that it's worth it.
45150         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45151
45152         * modules/c-strcasestr-tests: New file.
45153         * tests/test-c-strcasestr.c: New file.
45154
45155 2007-02-11  Bruno Haible  <bruno@clisp.org>
45156
45157         Ensure O(n) worst-case complexity of c_strstr.
45158         * lib/c-strstr.c: Include stdbool.h, string.h.
45159         (knuth_morris_pratt): New function.
45160         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45161         bookkeeping indicates that it's worth it.
45162         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45163
45164         * lib/c-strstr.c: Complete rewrite for maintainability.
45165
45166         * modules/c-strstr-tests: New file.
45167         * tests/test-c-strstr.c: New file.
45168
45169 2007-02-11  Bruno Haible  <bruno@clisp.org>
45170
45171         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45172         5.2.1 and earlier, whereby \055 was treated just like the range
45173         delimiter '-'.
45174         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45175
45176 2007-02-08  Bruno Haible  <bruno@clisp.org>
45177
45178         * modules/regex (Depends-on): Add stdbool.
45179         Reported by Dalibor Topic <robilad@kaffe.org>.
45180
45181 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45182
45183         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45184         Prefer returning from main to exiting from it.
45185         Remove unnecessary parens after sizeof.
45186
45187 2007-02-05  Bruno Haible  <bruno@clisp.org>
45188
45189         New module mbssep.
45190         * modules/mbssep: New file.
45191         * lib/mbssep.c: New file.
45192         * lib/string_.h (strsep): Add a conditional link warning.
45193         (mbssep): New declaration.
45194         * m4/mbssep.m4: New file.
45195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45196         GNULIB_MBSSEP.
45197         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45198         * MODULES.html.sh (Internationalization functions): Add mbssep.
45199
45200 2007-02-05  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45203         Optimize search in case of 1 delimiter.
45204
45205 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45206
45207         * lib/acl.h: Include sys/types.h before sys/acl.h.
45208
45209 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45210
45211         Merge upstream fix for glibc bugzilla #3957:
45212
45213         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45214
45215         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45216         bit for RE_HAT_LISTS_NOT_NEWLINE.
45217         (build_charclass_op): Remove bogus comment.
45218
45219 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45220
45221         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45222
45223 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45224
45225         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45226         * lib/memmem.c [!defined _LIBC]: Include config.h.
45227
45228 2007-02-04  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45231         warning message.
45232
45233 2007-02-04  Bruno Haible  <bruno@clisp.org>
45234
45235         New module mbstok_r.
45236         * modules/mbstok_r: New file.
45237         * lib/mbstok_r.c: New file.
45238         * lib/string_.h (strtok_r): Change argument names to match the
45239         comments. Add a conditional link warning.
45240         (mbstok_r): New declaration.
45241         * m4/mbstok_r.m4: New file.
45242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45243         GNULIB_MBSTOK_R.
45244         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45245         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45246
45247 2007-02-04  Bruno Haible  <bruno@clisp.org>
45248
45249         New module mbsspn.
45250         * modules/mbsspn: New file.
45251         * lib/mbsspn.c: New file.
45252         * lib/string_.h (strspn): Add a conditional link warning.
45253         (mbsspn): New declaration.
45254         * m4/mbsspn.m4: New file.
45255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45256         GNULIB_MBSSPN.
45257         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45258         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45259
45260 2007-02-04  Bruno Haible  <bruno@clisp.org>
45261
45262         New module mbspbrk.
45263         * modules/mbspbrk: New file.
45264         * lib/mbspbrk.c: New file.
45265         * lib/string_.h (strpbrk): Add a conditional link warning.
45266         (mbspbrk): New declaration.
45267         * m4/mbspbrk.m4: New file.
45268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45269         GNULIB_MBSPBRK.
45270         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45271         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45272
45273 2007-02-04  Bruno Haible  <bruno@clisp.org>
45274
45275         New module mbscspn.
45276         * modules/mbscspn: New file.
45277         * lib/mbscspn.c: New file.
45278         * lib/string_.h (strcspn): Add a conditional link warning.
45279         (mbscspn): New declaration.
45280         * m4/mbscspn.m4: New file.
45281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45282         GNULIB_MBSCSPN.
45283         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45284         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45285
45286 2007-02-04  Bruno Haible  <bruno@clisp.org>
45287
45288         New module mbscasestr, reduced goal of strcasestr.
45289         * modules/mbscasestr: New file.
45290         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45291         (mbscasestr): Renamed from strcasestr.
45292         * lib/strcasestr.c: Don't include mbuiter.h.
45293         (strcasestr): Remove support for multibyte locales.
45294         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45295         Change the conditional link warning.
45296         (mbscasestr): New declaration.
45297         * m4/mbscasestr.m4: New file.
45298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45299         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45300         REPLACE_STRCASESTR.
45301         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45303         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45304         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45305         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45306         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45307         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45308         (Depends-on): Remove mbuiter.
45309         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45310
45311 2007-02-04  Bruno Haible  <bruno@clisp.org>
45312
45313         Simplify handling of strncasecmp.
45314         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45315         the conditional link warning.
45316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45317         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45318         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45319         * modules/strcase (configure.ac): Don't invoke
45320         gl_STRING_MODULE_INDICATOR.
45321         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45322
45323 2007-02-04  Bruno Haible  <bruno@clisp.org>
45324
45325         New module mbscasecmp, reduced goal of strcasecmp.
45326         * modules/mbscasecmp: New file.
45327         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45328         (mbscasecmp): Renamed from strcasecmp.
45329         * lib/strcasecmp.c: Don't include mbuiter.h.
45330         (strcasecmp): Remove support for multibyte locales.
45331         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45332         Change the conditional link warning.
45333         (mbscasecmp): New declaration.
45334         * m4/mbscasecmp.m4: New file.
45335         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45336         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45337         REPLACE_STRCASECMP.
45338         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45340         GNULIB_MBSCASECMP.
45341         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45342         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45343         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45344         (Depends-on): Remove mbuiter.
45345         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45346
45347 2007-02-04  Bruno Haible  <bruno@clisp.org>
45348
45349         New module mbsstr. Remove module strstr.
45350         * modules/mbsstr: New file.
45351         * modules/strstr: Remove file.
45352         * lib/mbsstr.c: Renamed from lib/strstr.c.
45353         (mbsstr): Renamed from strstr.
45354         * lib/string_.h (strstr): Remove declaration. Change the conditional
45355         link warning.
45356         (mbsstr): New declaration.
45357         * m4/mbsstr.m4: New file.
45358         * m4/strstr.m4: Remove file.
45359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45360         REPLACE_STRSTR.
45361         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45362         Don't initialize GNULIB_STRSTR.
45363         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45364         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45365         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45366         (Support for systems lacking ANSI C 89): Remove strstr.
45367
45368 2007-02-04  Bruno Haible  <bruno@clisp.org>
45369
45370         New module mbsrchr.
45371         * modules/mbsrchr: New file.
45372         * lib/mbsrchr.c: New file.
45373         * lib/string_.h (strrchr): Add a conditional link warning.
45374         (mbsrchr): New declaration.
45375         * m4/mbsrchr.m4: New file.
45376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45377         GNULIB_MBSRCHR.
45378         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45379         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45380
45381 2007-02-04  Bruno Haible  <bruno@clisp.org>
45382
45383         New module mbschr.
45384         * modules/mbschr: New file.
45385         * lib/mbschr.c: New file.
45386         * lib/string_.h (strchr): Add a conditional link warning.
45387         (mbschr): New declaration.
45388         * m4/mbschr.m4: New file.
45389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45390         GNULIB_MBSCHR.
45391         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45392         * MODULES.html.sh (Internationalization functions): Add mbschr.
45393
45394 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45395
45396         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45397
45398         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45399
45400 2007-02-04  Bruno Haible  <bruno@clisp.org>
45401
45402         New module description section 'configure.ac-early'.
45403         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45404         (func_get_autoconf_early_snippet): New function.
45405         (func_import, func_create_testdir): Use it. Remove special cases for
45406         modules 'extensions' and 'lock'.
45407         * modules/extensions (configure.ac-early): Require
45408         gl_USE_SYSTEM_EXTENSIONS.
45409         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45410
45411 2007-02-04  Bruno Haible  <bruno@clisp.org>
45412
45413         Make use of gcj-4.3's -fsource and -ftarget option.
45414         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45415         and if so try the options -fsource and -ftarget.
45416         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45417         source_version, ftarget_option, target_version arguments.
45418         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45419         (is_envjavac_oldgcj_14_14_usable): Renamed from
45420         is_envjavac_gcj_14_14_usable.
45421         (is_envjavac_oldgcj_14_13_usable): Renamed from
45422         is_envjavac_gcj_14_13_usable.
45423         (is_gcj_present): Update.
45424         (is_gcj_43, is_gcj43_usable): New functions.
45425         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45426         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45427         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45428         try the options -fsource and -ftarget.
45429
45430 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45431
45432         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45433         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45434         larger value.
45435
45436 2007-02-03  Jim Meyering  <jim@meyering.net>
45437
45438         Give tools a better chance to allocate space for very large buffers.
45439         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45440
45441         Make pwd and readlink work also when run with an unreadable parent dir
45442         on systems with openat support.
45443         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45444         provided getcwd function, even when we have openat support.
45445         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45446
45447 2007-02-02  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45450         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45451         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45452         portability problems if one of these functions is only used on specific
45453         platforms.
45454         Reported by Paul Eggert.
45455
45456 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45457
45458         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45459         is causing more trouble than it's curing.
45460         * lib/regex_internal.h (__mempcpy): Remove.
45461         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45462         (and make the code a tad smaller to boot).
45463         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45464
45465 2007-02-02  Jim Meyering  <jim@meyering.net>
45466
45467         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45468         section, not in the Makefile.am: one.
45469
45470 2007-02-02  Eric Blake  <ebb9@byu.net>
45471
45472         * lib/strchrnul.c: Always include config.h first.
45473
45474         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45475         gnulib strstr is not necessary here.
45476
45477 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45478
45479         * m4/socklen.m4: Fix typo.
45480
45481 2007-02-02  Eric Blake  <ebb9@byu.net>
45482
45483         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45484         * modules/netinet_in (Makefile.am): Likewise.
45485
45486 2007-02-01  Bruno Haible  <bruno@clisp.org>
45487
45488         * lib/string_.h (GL_LINK_WARNING): New macro.
45489         (strcasecmp, strstr, strcasestr): If provided by the system,
45490         conditionally define as a macro that leads to a warning instead of to
45491         an error.
45492         (strncasecmp): Conditionally define as a macro that leads to a warning.
45493
45494 2007-02-01  Karl Berry  <karl@gnu.org>
45495
45496         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45497
45498 2007-02-01  Bruno Haible  <bruno@clisp.org>
45499
45500         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45501         renamings.
45502
45503 2007-02-01  Eric Blake  <ebb9@byu.net>
45504
45505         * modules/regex (Depends-on): Revert dependence on mempcpy.
45506         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45507         module's definition of mempcpy.
45508         Reported by Paul Eggert.
45509
45510 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45511
45512         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45513         the symbol XYZ before redefining it.  This fixes a problem with
45514         programs that don't use XYZ, when compiled on systems that define
45515         XYZ to something else.
45516
45517 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45518
45519         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45520         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45521         writeable to group or other and (2) is intended to have a special
45522         mode bit that is set or cleared.  In such a case, the directory
45523         should be neither group- nor other-writeable until the special
45524         mode bits are right.
45525
45526 2007-01-31  Eric Blake  <ebb9@byu.net>
45527
45528         * modules/mountlist (Depends-on): Add strstr.
45529
45530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45531         bug.
45532         * modules/string (Makefile.am): Remove redundant replacement.
45533         * modules/regex (Depends-on): Add mempcpy.
45534
45535 2007-01-31  Bruno Haible  <bruno@clisp.org>
45536
45537         New module description field 'Link'.
45538         * gnulib-tool (func_usage): Document --extract-link-directive.
45539         (sed_extract_prog): Recognize 'Link' directive.
45540         (func_get_link_directive): New function.
45541         (func_import): Show summary of link directives.
45542         Handle --extract-link-directive option.
45543         * modules/acl (Link): New section.
45544         * modules/clock-time (Link): New section.
45545         * modules/euidaccess (Link): New section.
45546         * modules/gettext (Link): New section.
45547         * modules/iconv (Link): New section.
45548         * modules/lock (Link): New section.
45549         * modules/nanosleep (Link): New section.
45550         * modules/readline (Link): New section.
45551
45552 2007-01-27  Bruno Haible  <bruno@clisp.org>
45553
45554         Enforce the use of gnulib modules for unportable <string.h> functions.
45555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45557         (gl_HEADER_STRING_H_BODY): Require it.
45558         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45559         the symbol XYZ to one that gives a link error.
45560         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45561         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45562         * modules/mempcpy (configure.ac): Likewise.
45563         * modules/memrchr (configure.ac): Likewise.
45564         * modules/stpcpy (configure.ac): Likewise.
45565         * modules/stpncpy (configure.ac): Likewise.
45566         * modules/strcase (configure.ac): Likewise.
45567         * modules/strcasestr (configure.ac): Likewise.
45568         * modules/strchrnul (configure.ac): Likewise.
45569         * modules/strdup (configure.ac): Likewise.
45570         * modules/strndup (configure.ac): Likewise.
45571         * modules/strnlen (configure.ac): Likewise.
45572         * modules/strpbrk (configure.ac): Likewise.
45573         * modules/strsep (configure.ac): Likewise.
45574         * modules/strstr (configure.ac): Likewise.
45575         * modules/strtok_r (configure.ac): Likewise.
45576
45577 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45578
45579         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45580
45581 2007-01-30  Jim Meyering  <jim@meyering.net>
45582
45583         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45584
45585 2007-01-29  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45588         * lib/execute.c: Likewise.
45589         * lib/pipe.c: Likewise.
45590         * lib/printf-args.h: Likewise.
45591         * lib/printf-args.c: Likewise.
45592         * lib/printf-parse.c: Likewise.
45593         * lib/vasnprintf.c: Likewise.
45594
45595 2007-01-29  Eric Blake  <ebb9@byu.net>
45596
45597         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45598         declaration.
45599
45600 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45601
45602         * lib/strptime.h (strptime): Use 'restrict' for args where
45603         POSIX requires this.
45604         * lib/strptime.c (strptime): Likewise.
45605         Change license notice from LGPL to GPL, since gnulib-tool will
45606         change this as needed.
45607         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45608         defined.
45609         Include "strptime.h" first, to check interface.
45610         Do not #undef _LIBC and _NL_CURRENT.
45611         Do not include <stdlib.h>; no longer needed.
45612         Include "time_r.h" and declare ptime_locale_status
45613         only if _LIBC is not defined.
45614         (__P): Remove unused macro.
45615         (match_string): Bring back glibc version, but use it only if _LIBC
45616         is defined.
45617         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45618         Remove unnecessary assertion and abort() call.
45619         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45620         * m4/strptime.m4: Fix serial number comment.
45621         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45622         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45623         (Depends-on): Add time_r.
45624
45625 2007-01-29  Bruno Haible  <bruno@clisp.org>
45626
45627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45628         strptime.
45629         * modules/strptime (Depends-on): Add stdbool.
45630         * lib/strptime.h: Include <time.h> always. Add comments.
45631
45632 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45633
45634         * modules/strptime: New file.
45635         * lib/strptime.h: New file.
45636         * lib/strptime.c: New file.
45637         * m4/strptime.m4: New file.
45638
45639 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45640
45641         * MODULES.html.sh: New module mpsort.
45642         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45643
45644         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45645         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45647         All uses changed.
45648         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45649         All uses changed.
45650         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45651         to _Restrict_.
45652         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45653         the parameter matches the prototype.
45654
45655 2007-01-28  Jim Meyering  <jim@meyering.net>
45656
45657         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45658         sys/time.h here, reverting that part of the previous patch:
45659         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45660
45661 2007-01-28  Bruno Haible  <bruno@clisp.org>
45662
45663         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45664         value of $(SYS_TIME_H).
45665         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45666         remove it conditionally, too. [added by Jim Meyering]
45667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45669         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45670         GETTIMEOFDAY_REPLACEMENT to 1.
45671
45672 2007-01-28  Bruno Haible  <bruno@clisp.org>
45673
45674         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45675         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45677         Set UNISTD_H instead of UNISTD_H2.
45678         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45679
45680 2007-01-28  Bruno Haible  <bruno@clisp.org>
45681
45682         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45683         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45684
45685 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45686
45687         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45688         (func_create_testdir): Ensure C locale for `grep' and `tr'
45689         character ranges.
45690         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45691         ACLOCAL_AMFLAGS parsing state machine.
45692
45693 2007-01-27  Bruno Haible  <bruno@clisp.org>
45694
45695         * modules/unistr/base: Update.
45696
45697 2007-01-27  Bruno Haible  <bruno@clisp.org>
45698
45699         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45700         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45701         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45702         modules/unistr/u32-mbtouc.
45703         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45704         * lib/unistr.h: Update.
45705         * lib/linebreak.c: Update.
45706         * modules/unistr/u32-mbtouc: Renamed from
45707         modules/unistr/u32-mbtouc-safe.
45708         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45709         * lib/unistr.h: Update.
45710         * lib/unistr/u32-to-u8.c: Update.
45711         * lib/unistr/u32-to-u16.c: Update.
45712
45713 2007-01-27  Bruno Haible  <bruno@clisp.org>
45714
45715         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45716         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45717         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45718         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45719         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45720         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45721         modules/unistr/u16-mbtouc.
45722         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45723         * lib/unistr.h: Update.
45724         * lib/linebreak.c: Update.
45725         * modules/linebreak: Update.
45726         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45727         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45728         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45729         * modules/unistr/u16-mbtouc: Renamed from
45730         modules/unistr/u16-mbtouc-safe.
45731         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45732         * lib/unistr.h: Update.
45733         * lib/unistr/u16-to-u8.c: Update.
45734         * modules/unistr/u16-to-u8: Update.
45735         * lib/unistr/u16-to-u32.c: Update.
45736         * modules/unistr/u16-to-u32: Update.
45737
45738 2007-01-27  Bruno Haible  <bruno@clisp.org>
45739
45740         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45741         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45742         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45743         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45744         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45745         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45746         modules/unistr/u8-mbtouc.
45747         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45748         * lib/unistr.h: Update.
45749         * lib/striconveh.c: Update.
45750         * modules/striconveh: Update.
45751         * lib/linebreak.c: Update.
45752         * modules/linebreak: Update.
45753         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45754         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45755         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45756         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45757         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45758         * lib/unistr.h: Update.
45759         * lib/striconveh.c: Update.
45760         * modules/striconveh: Update.
45761         * lib/unistr/u8-to-u16.c: Update.
45762         * modules/unistr/u8-to-u16: Update.
45763         * lib/unistr/u8-to-u32.c: Update.
45764         * modules/unistr/u8-to-u32: Update.
45765
45766 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45767
45768         Sync from Libtool.
45769         * lib/argz.c: Do not include strings.h nor memory.h, include
45770         string.h unconditionally.  Patch by Simon Josefsson.
45771
45772 2007-01-27  Bruno Haible  <bruno@clisp.org>
45773
45774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45775         from gl_HEADER_STRING_H_BODY.
45776         (gl_HEADER_STRING_H_BODY): Require it.
45777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45778         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45780         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45781         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45782         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45784         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45785         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45786         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45787         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45788         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45789         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45790         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45791         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45792
45793 2007-01-27  Bruno Haible  <bruno@clisp.org>
45794
45795         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45796         check_PROGRAMS into noinst_PROGRAMS.
45797         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45798         check_PROGRAMS in this case.
45799         (func_import): Set for_test to false.
45800         (func_create_testdir): Set for_test to true.
45801
45802 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45803             Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45806         (Depends-on): Add string.
45807         (Includes): Use <string.h> instead of strcasestr.h.
45808         * modules/string (Makefile.am): Also substitute the value of
45809         REPLACE_STRCASESTR.
45810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45811         assume strcasestr is declared in <string.h> not <strings.h>. Also
45812         set REPLACE_STRCASESTR.
45813         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45814         REPLACE_STRCASESTR.
45815         * lib/strcasestr.h: Remove file.
45816         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45817         * lib/string_.h (strcasestr): New declaration.
45818
45819 2007-01-27  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/string_.h: Use 'extern'.
45822
45823 2007-01-27  Jim Meyering  <jim@meyering.net>
45824
45825         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45826         of set-but-not-used local, "q".
45827
45828         * lib/mempcpy.c: Include <config.h> before <string.h>.
45829         This fixes a compilation error on HP-UX, due to the system's
45830         "restrict"-using mempcpy prototype.
45831
45832 2007-01-26  Bruno Haible  <bruno@clisp.org>
45833
45834         Small optimization.
45835         * lib/javacomp.c: Include c-strstr.h.
45836          (is_envjavac_gcj): Use c_strstr instead of strstr.
45837         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45838
45839 2007-01-26  Bruno Haible  <bruno@clisp.org>
45840
45841         * MODULES.html.sh (Unicode string functions): Add the new modules.
45842
45843         * modules/uniconv/u32-strconv-to-locale: New file.
45844         * lib/uniconv/u32-strconv-to-locale.c: New file.
45845
45846         * modules/uniconv/u16-strconv-to-locale: New file.
45847         * lib/uniconv/u16-strconv-to-locale.c: New file.
45848
45849         * modules/uniconv/u8-strconv-to-locale: New file.
45850         * lib/uniconv/u8-strconv-to-locale.c: New file.
45851
45852         * modules/uniconv/u32-strconv-from-locale: New file.
45853         * lib/uniconv/u32-strconv-from-locale.c: New file.
45854
45855         * modules/uniconv/u16-strconv-from-locale: New file.
45856         * lib/uniconv/u16-strconv-from-locale.c: New file.
45857
45858         * modules/uniconv/u8-strconv-from-locale: New file.
45859         * lib/uniconv/u8-strconv-from-locale.c: New file.
45860
45861         * modules/uniconv/u32-strconv-to-enc: New file.
45862         * lib/uniconv/u32-strconv-to-enc.c: New file.
45863         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45864         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45865
45866         * modules/uniconv/u16-strconv-to-enc: New file.
45867         * lib/uniconv/u16-strconv-to-enc.c: New file.
45868         * lib/uniconv/u-strconv-to-enc.h: New file.
45869         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45870         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45871
45872         * modules/uniconv/u8-strconv-to-enc: New file.
45873         * lib/uniconv/u8-strconv-to-enc.c: New file.
45874         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45875         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45876
45877         * modules/uniconv/u32-strconv-from-enc: New file.
45878         * lib/uniconv/u32-strconv-from-enc.c: New file.
45879         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45880         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45881
45882         * modules/uniconv/u16-strconv-from-enc: New file.
45883         * lib/uniconv/u16-strconv-from-enc.c: New file.
45884         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45885         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45886
45887         * modules/uniconv/u8-strconv-from-enc: New file.
45888         * lib/uniconv/u8-strconv-from-enc.c: New file.
45889         * lib/uniconv/u-strconv-from-enc.h: New file.
45890         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45891         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45892
45893         * modules/uniconv/u32-conv-from-enc: New file.
45894         * lib/uniconv/u32-conv-from-enc.c: New file.
45895         * modules/uniconv/u32-conv-from-enc-tests: New file.
45896         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45897
45898         * modules/uniconv/u16-conv-from-enc: New file.
45899         * lib/uniconv/u16-conv-from-enc.c: New file.
45900         * lib/uniconv/u-conv-from-enc.h: New file.
45901         * modules/uniconv/u16-conv-from-enc-tests: New file.
45902         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45903
45904         * modules/uniconv/u8-conv-from-enc: New file.
45905         * lib/uniconv/u8-conv-from-enc.c: New file.
45906         * modules/uniconv/u8-conv-from-enc-tests: New file.
45907         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45908
45909         * modules/uniconv/base: New file.
45910         * lib/uniconv.h: New file.
45911
45912 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45913
45914         * doc/gnulib-tool.texi (Initial import): Update to match current
45915         behavior with strdup module.
45916         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45917         * lib/memmem.h: Remove; all uses removed.  This is now done
45918         by <string.h>.
45919         * lib/mempcpy.h: Likewise.
45920         * lib/memrchr.h: Likewise.
45921         * lib/stpcpy.h: Likewise.
45922         * lib/stpncpy.h: Likewise.
45923         * lib/strcase.h: Likewise.
45924         * lib/strchrnul.h: Likewise.
45925         * lib/strdup.h: Likewise.
45926         * lib/strndup.h: Likewise.
45927         * lib/strnlen.h: Likewise.
45928         * lib/strpbrk.h: Likewise.
45929         * lib/strsep.h: Likewise.
45930         * lib/strstr.h: Likewise.
45931         * lib/strtok_r.h: Likewise.
45932         * lib/string_.h: New file.
45933         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45934         Rely on <string.h> instead.
45935         * lib/canon-host.c: Likewise.
45936         * lib/chdir-long.c: Likewise.
45937         * lib/concatpath.c: Likewise.
45938         * lib/exclude.c: Likewise.
45939         * lib/fchdir.c: Likewise.
45940         * lib/getaddrinfo.c: Likewise.
45941         * lib/getcwd.c: Likewise.
45942         * lib/getsubopt.c: Likewise.
45943         * lib/glob.c: Likewise.
45944         * lib/hard-locale.c: Likewise.
45945         * lib/iconvme.c: Likewise.
45946         * lib/javacomp.c: Likewise.
45947         * lib/mempcpy.c: Likewise.
45948         * lib/memrchr.c: Likewise.
45949         * lib/regex_internal.h: Likewise.
45950         * lib/stpncpy.c: Likewise.
45951         * lib/strcasecmp.c: Likewise.
45952         * lib/strchrnul.c: Likewise.
45953         * lib/strdup.c: Likewise.
45954         * lib/striconv.c: Likewise.
45955         * lib/striconveh.c: Likewise.
45956         * lib/striconveha.c: Likewise.
45957         * lib/strncasecmp.c: Likewise.
45958         * lib/strndup.c: Likewise.
45959         * lib/strnlen.c: Likewise.
45960         * lib/strsep.c: Likewise.
45961         * lib/strstr.c: Likewise.
45962         * lib/strtok_r.c: Likewise.
45963         * lib/userspec.c: Likewise.
45964         * lib/w32spawn.h: Likewise.
45965         * lib/xstrndup.c: Likewise.
45966         * lib/mountlist.c (strstr): Remove decl.
45967         * m4/string_h.m4: New file.
45968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45969         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45970         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45971         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45972         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45973         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45974         Set REPLACE_STRCASECMP if necessary.
45975         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45977         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45979         HAVE_DECL_STRDUP if necessary.
45980         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45981         since gl_FUNC_STRNDUP does that now.
45982         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45983         Check for decl here...
45984         (gl_PREREQ_STRNLEN): ... not here.
45985         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45986         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45987         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45988         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45989         necessary.
45990         * modules/string: New file.
45991         * modules/memmem (Files): Remove special-purpose include file.
45992         (Depends-on): Add string.
45993         (Include): Include <string.h>, not the removed file.
45994         * modules/mempcpy: Likewise.
45995         * modules/memrchr: Likewise.
45996         * modules/stpcpy: Likewise.
45997         * modules/stpncpy: Likewise.
45998         * modules/strcase: Likewise.
45999         * modules/strchrnul: Likewise.
46000         * modules/strdup: Likewise.
46001         * modules/strndup: Likewise.
46002         * modules/strnlen: Likewise.
46003         * modules/strpbrk: Likewise.
46004         * modules/strsep: Likewise.
46005         * modules/strstr: Likewise.
46006         * modules/strtok_r: Likewise.
46007         * tests/test-dirname.c: Don't include "strdup.h", since
46008         <string.h> now suffices.
46009         * tests/test-memmem.c: Don't include "memmem.h", since
46010         <string.h> now suffices.
46011
46012 2007-01-25  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46015         *resultp is 0.
46016
46017         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46018         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46019         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46020         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46021
46022         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46023         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46024         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46025         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46026         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46027         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46028
46029 2007-01-24  Bruno Haible  <bruno@clisp.org>
46030
46031         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46033         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46034         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46035         gl_FUNC_FTS_CORE.
46036         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46037         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46038         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46039         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46040         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46041         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46042         gl_FUNC_FCHOWNAT.
46043         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46044         gl_FUNC_STRFTIME.
46045         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46046         Reported by Ralf Wildenhues.
46047
46048 2007-01-24  Bruno Haible  <bruno@clisp.org>
46049
46050         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46051         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46052         gl_GETADDRINFO.
46053         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46054         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46055         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46056
46057 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46058
46059         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46060         Don't use 'exit'; just return from 'main'.
46061         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46062
46063         * lib/fnmatch_.h: Readjust white space and comments to match
46064         glibc, to avoid spurious diffs.
46065
46066 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46067
46068         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46069         2004-12-01 change by Jakub Jelinek, since this code won't compile
46070         if !LIBC.  Problem reported by Bob Proulx.
46071
46072 2007-01-23  Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/striconveh.c: Include c-strcaseeq.h.
46075         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46076         * modules/striconveh (Depends-on): Add c-strcaseeq.
46077
46078 2007-01-23  Bruno Haible  <bruno@clisp.org>
46079
46080         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46081
46082         * modules/c-strcaseeq: New file.
46083         * lib/c-strcaseeq.h: New file.
46084
46085         * modules/streq: New file.
46086         * lib/streq.h: New file.
46087
46088 2007-01-23  Bruno Haible  <bruno@clisp.org>
46089
46090         * modules/striconveha-tests: New file.
46091         * tests/test-striconveha.c: New file.
46092
46093         * lib/striconveha.h: Include <stdbool.h>.
46094         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46095         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46096         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46097         (mem_iconveha): New function.
46098         (str_iconveha_notranslit): Renamed from str_iconveha.
46099         (str_iconveha): New function.
46100         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46101         c-strcase.
46102
46103 2007-01-23  Bruno Haible  <bruno@clisp.org>
46104
46105         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46106         encodings without forgiving before trying any encoding with handler.
46107         (str_iconveha): Try all encodings without forgiving before trying any
46108         encoding with handler.
46109
46110 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46111
46112         Import the following changes from libc.
46113
46114         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46115
46116         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46117
46118         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46119
46120         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46121         normal_bracket label.
46122
46123         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46124
46125         [BZ #361]
46126         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46127         to normal_bracket after fetching the next character.
46128
46129 2007-01-22  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46132         argument.
46133         * lib/striconveh.c (iconv_carefully_1): New function.
46134         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46135         argument.
46136         (str_cd_iconveh): Update.
46137         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46138         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46139         * tests/test-striconveh.c (MAGIC): New macro.
46140         (new_offsets): New function.
46141         (main): Test call with and without offsets.
46142
46143 2007-01-22  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46146         * modules/sys_select (Makefile.am): Likewise.
46147         * modules/sys_socket (Makefile.am): Likewise.
46148         * modules/sys_time (Makefile.am): Likewise.
46149
46150 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46151
46152         * modules/gettimeofday (License): Change from GPL to LGPL, since
46153         gettimeofday is a library function.
46154
46155 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46156
46157         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46158
46159 2007-01-21  Bruno Haible  <bruno@clisp.org>
46160
46161         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46162
46163 2007-01-21  Bruno Haible  <bruno@clisp.org>
46164
46165         * modules/striconveha: New file.
46166         * lib/striconveha.h: New file.
46167         * lib/striconveha.c: New file.
46168         * MODULES.html.sh (Internationalization functions): Add striconveha.
46169         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46170         string.
46171         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46172
46173 2007-01-21  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46176         * lib/striconveh.c (str_iconveh): Likewise.
46177
46178 2007-01-21  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/striconveh.h (mem_iconveh): New declaration.
46181         * lib/striconveh.c (mem_iconveh): New function.
46182         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46183
46184 2007-01-21  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46187
46188         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46189         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46190         original result buffer.
46191         (str_cd_iconveh): Update.
46192         * tests/test-striconveh.c (main): Update.
46193
46194         * lib/striconv.h (mem_cd_iconv): Change specification.
46195         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46196         result buffer.
46197         (str_cd_iconv): Update.
46198         * tests/test-striconv.c (main): Update.
46199
46200 2007-01-21  Bruno Haible  <bruno@clisp.org>
46201
46202         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46203
46204 2007-01-20  Jim Meyering  <jim@meyering.net>
46205
46206         * lib/userspec.c (parse_with_separator): If a user or group string
46207         starts with "+", skip the corresponding name-to-ID look-up, since
46208         such a look-up must fail: user and group names may not include "+".
46209
46210 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46211
46212         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46213         since we now assume the sys_time module.
46214         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46215         check for sys/time.h; no longer needed.
46216         * modules/poll (Depends-on): Depend on sys_time.
46217
46218 2007-01-18  Bruno Haible  <bruno@clisp.org>
46219
46220         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46221         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46222
46223         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46224         gettimeofday.
46225
46226         * tests/test-gettimeofday.c: Include <time.h>.
46227         (dummy): Remove variable.
46228
46229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46230         gl_HEADER_SYS_TIME_H.
46231         (gl_HEADER_SYS_TIME_H): New macro.
46232
46233         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46234         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46236         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46237         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46239         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46240         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46241         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46242         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46243         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46244
46245         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46246         last change; it caused a compilation error when cross-compiling to
46247         Cygwin.
46248
46249 2007-01-18  Jim Meyering  <jim@meyering.net>
46250
46251         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46252         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46253         than the race-prone "test -d sys || mkdir sys".
46254         (configure.ac): Use AC_PROG_MKDIR_P.
46255         * modules/sys_select: Likewise.
46256         * modules/sys_socket: Likewise.
46257         * modules/sys_time: Likewise.
46258
46259 2007-01-18  Eric Blake  <ebb9@byu.net>
46260
46261         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46262         replace gettimeofday.
46263         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46264         name, to avoid infinite recursion.
46265
46266 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46267
46268         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46269         module sys_time.
46270         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46271         assume timespec.h defines struct timeval.
46272         * lib/settime.c: Likewise.
46273         * lib/utimens.c: Likewise.
46274         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46275         since we now assume the gettimeofday module.
46276         * lib/tempname.c (__gen_tempname): Likewise.
46277         * lib/gettimeofday.h: Remove.
46278         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46279         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46280         Include <time.h>, for 'time()'.
46281         (localtime_buffer_addr): Also use this workaround if
46282         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46283         to simplify the uses.  All uses changed.
46284         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46285         that #undef is inside {}, and 'const' follows type name consistently.
46286         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46287         (gettimeofday): Do not use the maximum possible value for
46288         tv->tv_usec, since that might break usages other than ls.c.
46289         Instead, we'll leave ls.c alone.  This undoes today's patch
46290         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46291         we've never observed the problem but might as well keep the
46292         canary.
46293         * lib/nanosleep.c: Include timespec.h first, for interface check.
46294         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46295         now assume the sys_time module.
46296         * lib/tempname.c: Likewise.
46297         * lib/timespec.h: Likewise.
46298         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46299         needed.
46300         * lib/strftime.c: Likewise.
46301         * lib/timespec.h: Likewise.
46302         * lib/posixtm.c: Include posixtm.h first, for interface check.
46303         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46304         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46305         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46306         * lib/sys_time_.h: New file.
46307         * lib/timespec.h (struct timespec): Use long int, not long.
46308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46309         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46310         Remove obsolescent call to AC_HEADER_TIME.
46311         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46313         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46314         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46315         Likewise.
46316         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46317         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46319         into the sys_time module.  Check for gettimeofday just once.
46320         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46321         for gettimeofday signature to just check the signature.  Merely
46322         compile it, since linking doesn't test signature.  Improve test for
46323         whether gettimeofday.o is actually needed.
46324         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46325         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46326         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46327         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46328         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46329         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46330         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46331         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46332         than worrying about sys/time.h.
46333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46334         Don't bother worrying about TIME_WITH_SYS_TIME.
46335         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46336         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46337         * m4/sys_time_h.m4: New file.
46338         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46339         Don't include sys/time.h.  Return from main rather than exiting.
46340         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46341         all uses changed.
46342         * modules/gethrxtime (Depends-on): Add sys_time.
46343         * modules/gettime (Depends-on): Likewise.
46344         * modules/gettimeofday (Depends-on): Likewise.
46345         * modules/nanosleep (Depends-on): Likewise.
46346         * modules/settime (Depends-on): Likewise.
46347         * modules/tempname (Depends-on): Likewise.
46348         * modules/utimens (Depends-on): Likewise.
46349         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46350         (Include:) Change back to <sys/time.h>.
46351         (Maintainer:) Add self.
46352         * modules/sys_time: New file.
46353         * modules/tempname (Depends-on): Add gettimeofday.
46354         * tests/test-gettimeofday.c: Include <sys/time.h>
46355         rather than gettimeofday.h.
46356
46357 2007-01-17  Bruno Haible  <bruno@clisp.org>
46358
46359         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46360         the license default to GPL.
46361         (func_create_testdir): Don't complain if a module is LGPL and its
46362         tests module depends on GPLed modules.
46363
46364 2007-01-17  Bruno Haible  <bruno@clisp.org>
46365
46366         * lib/gettimeofday.c (gettimeofday): Add code for the case
46367         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46368         maximum possible value for tv->tv_usec, rather than the minimum one.
46369
46370 2005-10-08  Martin Lambers  <marlam@marlam.de>
46371 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46372 2007-01-16  Bruno Haible  <bruno@clisp.org>
46373
46374         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46375         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46376         gl_FUNC_GETTIMEOFDAY.
46377         (Include): Add gettimeofday.h.
46378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46379         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46380         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46381         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46382         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46383         * lib/gettimeofday.h: New file.
46384         * lib/gettimeofday.c: Include <sys/timeb.h>.
46385         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46386         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46387         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46388         fall back on time().
46389
46390         * tests/test-gettimeofday.c: New file.
46391         * modules/gettimeofday-tests: New file.
46392
46393 2007-01-16  Eric Blake  <ebb9@byu.net>
46394
46395         * modules/fnmatch (Depends-on): Depend on wchar.
46396         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46397         * m4/fnmatch.m4: Likewise.
46398         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46399         * m4/mbchar.m4: Likewise.
46400         * modules/mbswidth (Depends-on): Depend on wchar.
46401         * lib/mbswidth.c: Assume <wchar.h>.
46402         * m4/mbswidth.m4: Likewise.
46403         * modules/quotearg (Depends-on): Depend on wchar.
46404         * lib/quotearg.c: Assume <wchar.h>.
46405         * m4/quotearg.m4: Likewise.
46406         * modules/regex (Depends-on): Depend on wchar.
46407         * lib/regex_internal.h: Assume <wchar.h>.
46408         * m4/regex.m4: Likewise.
46409         * modules/stdint (Depends-on): Depend on wchar.
46410         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46411         * m4/stdint.m4: Likewise.
46412         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46413         * modules/strftime (Depends-on): Depend on wchar.
46414         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46415         * modules/strtol (Depends-on): Depend on wchar.
46416         * lib/strtol.c: Assume <wchar.h>.
46417         * modules/wcwidth (Depends-on): Depend on wchar.
46418         * lib/wcwidth.h: Assume <wchar.h>.
46419         * m4/wcwidth.m4: Likewise.
46420
46421 2007-01-16  Bruno Haible  <bruno@clisp.org>
46422
46423         * modules/csharpexec-script: New, created from...
46424         * modules/csharpexec: ... this.
46425
46426 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46427
46428         * modules/javaexec-script: New, created from...
46429         * modules/javaexec: ... this.
46430
46431 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46432
46433         * modules/poll (Dependencies): Add sys_select.
46434
46435 2007-01-15  Jim Meyering  <jim@meyering.net>
46436
46437         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46438         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46439         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46440         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46441
46442 2007-01-15  Bruno Haible  <bruno@clisp.org>
46443
46444         * modules/striconveh: New file.
46445         * lib/striconveh.h: New file.
46446         * lib/striconveh.c: New file.
46447         * MODULES.html.sh (Internationalization functions): Add striconveh.
46448
46449         * modules/striconveh-tests: New file.
46450         * tests/test-striconveh.c: New file.
46451
46452 2007-01-15  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46455         not from GNU libiconv or GNU libc.
46456
46457 2007-01-15  Bruno Haible  <bruno@clisp.org>
46458
46459         * doc/gnulib-intro.texi (Copyright): Explain the different license
46460         terms for module descriptions, autoconf macros, tests, documentation.
46461
46462 2007-01-14  Bruno Haible  <bruno@clisp.org>
46463
46464         * modules/striconv-tests: New file.
46465         * tests/test-striconv.c: New file.
46466
46467 2007-01-14  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/iconv-tests: New file.
46470         * tests/test-iconv.c: New file.
46471
46472 2007-01-14  Bruno Haible  <bruno@clisp.org>
46473
46474         * gnulib-tool (func_get_license): For test modules, use the license of
46475         the main module.
46476
46477 2007-01-14  Bruno Haible  <bruno@clisp.org>
46478
46479         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46480         if iconv is found to exist.
46481
46482 2007-01-14  Bruno Haible  <bruno@clisp.org>
46483
46484         * modules/c-ctype-tests: New file.
46485         * tests/test-c-ctype.c: New file.
46486
46487 2007-01-14  Bruno Haible  <bruno@clisp.org>
46488
46489         * modules/binary-io-tests: New file.
46490         * tests/test-binary-io.sh: New file.
46491         * tests/test-binary-io.c: New file.
46492
46493 2007-01-14  Bruno Haible  <bruno@clisp.org>
46494
46495         * modules/array-oset-tests: New file.
46496         * tests/test-array_oset.c: New file.
46497
46498 2007-01-14  Bruno Haible  <bruno@clisp.org>
46499
46500         * modules/array-list-tests: New file.
46501         * tests/test-array_list.c: New file.
46502
46503 2007-01-14  Bruno Haible  <bruno@clisp.org>
46504
46505         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46506         and make.
46507         Reported by Simon Josefsson in
46508         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46509
46510 2007-01-14  Bruno Haible  <bruno@clisp.org>
46511
46512         * modules/allocsa-tests: New file.
46513         * tests/test-allocsa.c: New file.
46514
46515 2007-01-14  Bruno Haible  <bruno@clisp.org>
46516
46517         * modules/fchdir (Depends-on): Add absolute-header.
46518         * modules/unistd (Depends-on): Likewise.
46519
46520 2006-12-30  Bruno Haible  <bruno@clisp.org>
46521
46522         * modules/fchdir: New file.
46523         * modules/unistd (Files): Add lib/unistd_.h.
46524         (Makefile.am): Generate unistd.h from unistd_.h.
46525         * lib/fchdir.c: New file.
46526         * lib/dirent_.h: New file.
46527         * lib/unistd_.h: New file.
46528         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46529         * m4/fchdir.m4: New file.
46530         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46531         (gl_HEADER_UNISTD): Invoke it.
46532         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46533         function.
46534         * lib/backupfile.c (opendir, closedir): Undefine.
46535         * lib/chown.c (open, close): Undefine.
46536         * lib/clean-temp.c (open, close): Undefine.
46537         * lib/copy-file.c (open, close): Undefine.
46538         * lib/execute.c (open, close): Undefine.
46539         * lib/fsusage.c (open, close): Undefine.
46540         * lib/gc-gnulib.c (open, close): Undefine.
46541         * lib/getcwd.c (opendir, closedir): Undefine.
46542         * lib/glob.c (opendir, closedir): Undefine.
46543         * lib/javacomp.c (open, close): Undefine.
46544         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46545         * lib/openat-proc.c (open, close): Undefine.
46546         * lib/pagealign_alloc.c (open, close): Undefine.
46547         * lib/pipe.c (open, close): Undefine.
46548         * lib/progreloc.c (open, close): Undefine.
46549         * lib/savedir.c (opendir, closedir): Undefine.
46550         * lib/utime.c (open, close): Undefine.
46551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46552
46553 2007-01-10  Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46556
46557 2007-01-12  Eric Blake  <ebb9@byu.net>
46558
46559         Provide a robust <wchar.h>.  Further simplifications are now
46560         possible in other modules, but not included here.
46561         * modules/wchar: New module.
46562         * m4/wchar.m4: New file.
46563         * lib/wchar_.h: Likewise.
46564         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46565         of the new module.
46566         * MODULES.html.sh (Extended multibyte and wide character utilities):
46567         New section.
46568
46569 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46570
46571         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46572         to a reasonable default for memory allocation.
46573         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46574         file system that reports garbage st_size values for symlinks.
46575         Problem reported by Liyang Hu.
46576
46577 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46578
46579         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46580         Emacs .#* auto-save files).
46581
46582 2007-01-11  Bruno Haible  <bruno@clisp.org>
46583
46584         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46585         directory.
46586
46587 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46588
46589         Use @...@ consistently in lib/wctype_.h.
46590         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46591         on it being set to 1 or 0.
46592         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46593         go back to AC_SUBSTing it.
46594         * modules/wctype (Makefile.am): Undo previous change.
46595
46596 2007-01-10  Eric Blake  <ebb9@byu.net>
46597
46598         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46599         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46600         * modules/wctype (Makefile.am): Likewise.
46601         Reported by Chris McGuire.
46602
46603 2007-01-10  Jim Meyering  <jim@meyering.net>
46604
46605         fts.c: a small readability/maintainability improvement
46606         * lib/fts.c (fts_read): Make this code slightly more readable and
46607         maintainable by hoisting the "sp->fts_cur = p" assignments to
46608         immediately follow the statements that set P.  Derived from
46609         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46610
46611 2007-01-10  Eric Blake  <ebb9@byu.net>
46612
46613         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46614         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46616         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46617         Reported by Chris McGuire.
46618
46619 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46620
46621         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46622         in sed script.
46623
46624 2007-01-09  Bruno Haible  <bruno@clisp.org>
46625
46626         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46627         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46628         variables.
46629         (func_module): Use them.
46630
46631 2007-01-09  Bruno Haible  <bruno@clisp.org>
46632
46633         * modules/unistr/base: New file.
46634         * lib/unistr.h: New file.
46635
46636         * modules/unistr/u8-to-u16: New file.
46637         * lib/unistr/u8-to-u16.c: New file.
46638
46639         * modules/unistr/u8-to-u32: New file.
46640         * lib/unistr/u8-to-u32.c: New file.
46641
46642         * modules/unistr/u16-to-u8: New file.
46643         * lib/unistr/u16-to-u8.c: New file.
46644
46645         * modules/unistr/u16-to-u32: New file.
46646         * lib/unistr/u16-to-u32.c: New file.
46647
46648         * modules/unistr/u32-to-u8: New file.
46649         * lib/unistr/u32-to-u8.c: New file.
46650
46651         * modules/unistr/u32-to-u16: New file.
46652         * lib/unistr/u32-to-u16.c: New file.
46653
46654         * modules/unistr/u8-check: New file.
46655         * modules/unistr/u16-check: New file.
46656         * modules/unistr/u32-check: New file.
46657         * lib/unistr/u8-check.c: New file.
46658         * lib/unistr/u16-check.c: New file.
46659         * lib/unistr/u32-check.c: New file.
46660
46661         * modules/unistr/u8-chr: New file.
46662         * modules/unistr/u16-chr: New file.
46663         * modules/unistr/u32-chr: New file.
46664         * lib/unistr/u8-chr.c: New file.
46665         * lib/unistr/u16-chr.c: New file.
46666         * lib/unistr/u32-chr.c: New file.
46667
46668         * modules/unistr/u8-cmp: New file.
46669         * modules/unistr/u16-cmp: New file.
46670         * modules/unistr/u32-cmp: New file.
46671         * lib/unistr/u8-cmp.c: New file.
46672         * lib/unistr/u16-cmp.c: New file.
46673         * lib/unistr/u32-cmp.c: New file.
46674
46675         * modules/unistr/u8-cpy: New file.
46676         * modules/unistr/u16-cpy: New file.
46677         * modules/unistr/u32-cpy: New file.
46678         * lib/unistr/u8-cpy.c: New file.
46679         * lib/unistr/u16-cpy.c: New file.
46680         * lib/unistr/u32-cpy.c: New file.
46681         * lib/unistr/u-cpy.h: New file.
46682
46683         * modules/unistr/u8-cpy-alloc: New file.
46684         * modules/unistr/u16-cpy-alloc: New file.
46685         * modules/unistr/u32-cpy-alloc: New file.
46686         * lib/unistr/u8-cpy-alloc.c: New file.
46687         * lib/unistr/u16-cpy-alloc.c: New file.
46688         * lib/unistr/u32-cpy-alloc.c: New file.
46689         * lib/unistr/u-cpy-alloc.h: New file.
46690
46691         * modules/unistr/u8-endswith: New file.
46692         * modules/unistr/u16-endswith: New file.
46693         * modules/unistr/u32-endswith: New file.
46694         * lib/unistr/u8-endswith.c: New file.
46695         * lib/unistr/u16-endswith.c: New file.
46696         * lib/unistr/u32-endswith.c: New file.
46697         * lib/unistr/u-endswith.h: New file.
46698
46699         * modules/unistr/u8-mblen: New file.
46700         * modules/unistr/u16-mblen: New file.
46701         * modules/unistr/u32-mblen: New file.
46702         * lib/unistr/u8-mblen.c: New file.
46703         * lib/unistr/u16-mblen.c: New file.
46704         * lib/unistr/u32-mblen.c: New file.
46705
46706         * modules/unistr/u8-mbtouc: New file.
46707         * modules/unistr/u16-mbtouc: New file.
46708         * modules/unistr/u32-mbtouc: New file.
46709         * lib/unistr/u8-mbtouc.c: New file.
46710         * lib/unistr/u16-mbtouc.c: New file.
46711         * lib/unistr/u32-mbtouc.c: New file.
46712
46713         * modules/unistr/u8-mbtouc-safe: New file.
46714         * modules/unistr/u16-mbtouc-safe: New file.
46715         * modules/unistr/u32-mbtouc-safe: New file.
46716         * lib/unistr/u8-mbtouc-safe.c: New file.
46717         * lib/unistr/u16-mbtouc-safe.c: New file.
46718         * lib/unistr/u32-mbtouc-safe.c: New file.
46719
46720         * modules/unistr/u8-move: New file.
46721         * modules/unistr/u16-move: New file.
46722         * modules/unistr/u32-move: New file.
46723         * lib/unistr/u8-move.c: New file.
46724         * lib/unistr/u16-move.c: New file.
46725         * lib/unistr/u32-move.c: New file.
46726         * lib/unistr/u-move.h: New file.
46727
46728         * modules/unistr/u8-next: New file.
46729         * modules/unistr/u16-next: New file.
46730         * modules/unistr/u32-next: New file.
46731         * lib/unistr/u8-next.c: New file.
46732         * lib/unistr/u16-next.c: New file.
46733         * lib/unistr/u32-next.c: New file.
46734
46735         * modules/unistr/u8-prev: New file.
46736         * modules/unistr/u16-prev: New file.
46737         * modules/unistr/u32-prev: New file.
46738         * lib/unistr/u8-prev.c: New file.
46739         * lib/unistr/u16-prev.c: New file.
46740         * lib/unistr/u32-prev.c: New file.
46741
46742         * modules/unistr/u8-set: New file.
46743         * modules/unistr/u16-set: New file.
46744         * modules/unistr/u32-set: New file.
46745         * lib/unistr/u8-set.c: New file.
46746         * lib/unistr/u16-set.c: New file.
46747         * lib/unistr/u32-set.c: New file.
46748         * lib/unistr/u-set.h: New file.
46749
46750         * modules/unistr/u8-startswith: New file.
46751         * modules/unistr/u16-startswith: New file.
46752         * modules/unistr/u32-startswith: New file.
46753         * lib/unistr/u8-startswith.c: New file.
46754         * lib/unistr/u16-startswith.c: New file.
46755         * lib/unistr/u32-startswith.c: New file.
46756         * lib/unistr/u-startswith.h: New file.
46757
46758         * modules/unistr/u8-stpcpy: New file.
46759         * modules/unistr/u16-stpcpy: New file.
46760         * modules/unistr/u32-stpcpy: New file.
46761         * lib/unistr/u8-stpcpy.c: New file.
46762         * lib/unistr/u16-stpcpy.c: New file.
46763         * lib/unistr/u32-stpcpy.c: New file.
46764         * lib/unistr/u-stpcpy.h: New file.
46765
46766         * modules/unistr/u8-stpncpy: New file.
46767         * modules/unistr/u16-stpncpy: New file.
46768         * modules/unistr/u32-stpncpy: New file.
46769         * lib/unistr/u8-stpncpy.c: New file.
46770         * lib/unistr/u16-stpncpy.c: New file.
46771         * lib/unistr/u32-stpncpy.c: New file.
46772         * lib/unistr/u-stpncpy.h: New file.
46773
46774         * modules/unistr/u8-strcat: New file.
46775         * modules/unistr/u16-strcat: New file.
46776         * modules/unistr/u32-strcat: New file.
46777         * lib/unistr/u8-strcat.c: New file.
46778         * lib/unistr/u16-strcat.c: New file.
46779         * lib/unistr/u32-strcat.c: New file.
46780         * lib/unistr/u-strcat.h: New file.
46781
46782         * modules/unistr/u8-strchr: New file.
46783         * modules/unistr/u16-strchr: New file.
46784         * modules/unistr/u32-strchr: New file.
46785         * lib/unistr/u8-strchr.c: New file.
46786         * lib/unistr/u16-strchr.c: New file.
46787         * lib/unistr/u32-strchr.c: New file.
46788
46789         * modules/unistr/u8-strcmp: New file.
46790         * modules/unistr/u16-strcmp: New file.
46791         * modules/unistr/u32-strcmp: New file.
46792         * lib/unistr/u8-strcmp.c: New file.
46793         * lib/unistr/u16-strcmp.c: New file.
46794         * lib/unistr/u32-strcmp.c: New file.
46795
46796         * modules/unistr/u8-strcpy: New file.
46797         * modules/unistr/u16-strcpy: New file.
46798         * modules/unistr/u32-strcpy: New file.
46799         * lib/unistr/u8-strcpy.c: New file.
46800         * lib/unistr/u16-strcpy.c: New file.
46801         * lib/unistr/u32-strcpy.c: New file.
46802         * lib/unistr/u-strcpy.h: New file.
46803
46804         * modules/unistr/u8-strcspn: New file.
46805         * modules/unistr/u16-strcspn: New file.
46806         * modules/unistr/u32-strcspn: New file.
46807         * lib/unistr/u8-strcspn.c: New file.
46808         * lib/unistr/u16-strcspn.c: New file.
46809         * lib/unistr/u32-strcspn.c: New file.
46810         * lib/unistr/u-strcspn.h: New file.
46811
46812         * modules/unistr/u8-strdup: New file.
46813         * modules/unistr/u16-strdup: New file.
46814         * modules/unistr/u32-strdup: New file.
46815         * lib/unistr/u8-strdup.c: New file.
46816         * lib/unistr/u16-strdup.c: New file.
46817         * lib/unistr/u32-strdup.c: New file.
46818         * lib/unistr/u-strdup.h: New file.
46819
46820         * modules/unistr/u8-strlen: New file.
46821         * modules/unistr/u16-strlen: New file.
46822         * modules/unistr/u32-strlen: New file.
46823         * lib/unistr/u8-strlen.c: New file.
46824         * lib/unistr/u16-strlen.c: New file.
46825         * lib/unistr/u32-strlen.c: New file.
46826         * lib/unistr/u-strlen.h: New file.
46827
46828         * modules/unistr/u8-strmblen: New file.
46829         * modules/unistr/u16-strmblen: New file.
46830         * modules/unistr/u32-strmblen: New file.
46831         * lib/unistr/u8-strmblen.c: New file.
46832         * lib/unistr/u16-strmblen.c: New file.
46833         * lib/unistr/u32-strmblen.c: New file.
46834
46835         * modules/unistr/u8-strmbtouc: New file.
46836         * modules/unistr/u16-strmbtouc: New file.
46837         * modules/unistr/u32-strmbtouc: New file.
46838         * lib/unistr/u8-strmbtouc.c: New file.
46839         * lib/unistr/u16-strmbtouc.c: New file.
46840         * lib/unistr/u32-strmbtouc.c: New file.
46841
46842         * modules/unistr/u8-strncat: New file.
46843         * modules/unistr/u16-strncat: New file.
46844         * modules/unistr/u32-strncat: New file.
46845         * lib/unistr/u8-strncat.c: New file.
46846         * lib/unistr/u16-strncat.c: New file.
46847         * lib/unistr/u32-strncat.c: New file.
46848         * lib/unistr/u-strncat.h: New file.
46849
46850         * modules/unistr/u8-strncmp: New file.
46851         * modules/unistr/u16-strncmp: New file.
46852         * modules/unistr/u32-strncmp: New file.
46853         * lib/unistr/u8-strncmp.c: New file.
46854         * lib/unistr/u16-strncmp.c: New file.
46855         * lib/unistr/u32-strncmp.c: New file.
46856
46857         * modules/unistr/u8-strncpy: New file.
46858         * modules/unistr/u16-strncpy: New file.
46859         * modules/unistr/u32-strncpy: New file.
46860         * lib/unistr/u8-strncpy.c: New file.
46861         * lib/unistr/u16-strncpy.c: New file.
46862         * lib/unistr/u32-strncpy.c: New file.
46863         * lib/unistr/u-strncpy.h: New file.
46864
46865         * modules/unistr/u8-strnlen: New file.
46866         * modules/unistr/u16-strnlen: New file.
46867         * modules/unistr/u32-strnlen: New file.
46868         * lib/unistr/u8-strnlen.c: New file.
46869         * lib/unistr/u16-strnlen.c: New file.
46870         * lib/unistr/u32-strnlen.c: New file.
46871         * lib/unistr/u-strnlen.h: New file.
46872
46873         * modules/unistr/u8-strpbrk: New file.
46874         * modules/unistr/u16-strpbrk: New file.
46875         * modules/unistr/u32-strpbrk: New file.
46876         * lib/unistr/u8-strpbrk.c: New file.
46877         * lib/unistr/u16-strpbrk.c: New file.
46878         * lib/unistr/u32-strpbrk.c: New file.
46879         * lib/unistr/u-strpbrk.h: New file.
46880
46881         * modules/unistr/u8-strrchr: New file.
46882         * modules/unistr/u16-strrchr: New file.
46883         * modules/unistr/u32-strrchr: New file.
46884         * lib/unistr/u8-strrchr.c: New file.
46885         * lib/unistr/u16-strrchr.c: New file.
46886         * lib/unistr/u32-strrchr.c: New file.
46887
46888         * modules/unistr/u8-strspn: New file.
46889         * modules/unistr/u16-strspn: New file.
46890         * modules/unistr/u32-strspn: New file.
46891         * lib/unistr/u8-strspn.c: New file.
46892         * lib/unistr/u16-strspn.c: New file.
46893         * lib/unistr/u32-strspn.c: New file.
46894         * lib/unistr/u-strspn.h: New file.
46895
46896         * modules/unistr/u8-strstr: New file.
46897         * modules/unistr/u16-strstr: New file.
46898         * modules/unistr/u32-strstr: New file.
46899         * lib/unistr/u8-strstr.c: New file.
46900         * lib/unistr/u16-strstr.c: New file.
46901         * lib/unistr/u32-strstr.c: New file.
46902         * lib/unistr/u-strstr.h: New file.
46903
46904         * modules/unistr/u8-strtok: New file.
46905         * modules/unistr/u16-strtok: New file.
46906         * modules/unistr/u32-strtok: New file.
46907         * lib/unistr/u8-strtok.c: New file.
46908         * lib/unistr/u16-strtok.c: New file.
46909         * lib/unistr/u32-strtok.c: New file.
46910         * lib/unistr/u-strtok.h: New file.
46911
46912         * modules/unistr/u8-uctomb: New file.
46913         * modules/unistr/u16-uctomb: New file.
46914         * modules/unistr/u32-uctomb: New file.
46915         * lib/unistr/u8-uctomb.c: New file.
46916         * lib/unistr/u16-uctomb.c: New file.
46917         * lib/unistr/u32-uctomb.c: New file.
46918
46919         * MODULES.html.sh (Unicode string functions): Add the new modules.
46920
46921 2007-01-08  Bruno Haible  <bruno@clisp.org>
46922
46923         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46924         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46925         subdirectories.
46926
46927 2007-01-08  Karl Berry  <karl@gnu.org>
46928
46929         * doc/error.texi: mention that main() fns must set program_name
46930         when progname is used.
46931
46932 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46933
46934         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46935         WCTYPE_H is empty, for the benefit of builds from non-distclean
46936         directories.  Problem reported by Eric Blake in
46937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46938
46939 2007-01-08  Bruno Haible  <bruno@clisp.org>
46940
46941         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46942         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46943         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46944         PROVIDE_CANONICALIZE_FILENAME_MODE.
46945         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46946
46947 2007-01-08  Bruno Haible  <bruno@clisp.org>
46948
46949         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46950         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46951         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46952         * lib/fts.c: Likewise.
46953         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46954
46955 2006-12-25  Bruno Haible  <bruno@clisp.org>
46956
46957         * modules/utf8-ucs4-safe: New file.
46958         * lib/utf8-ucs4-safe.h: New file.
46959         * lib/unistr/utf8-ucs4-safe.c: New file.
46960
46961         * modules/utf16-ucs4-safe: New file.
46962         * lib/utf16-ucs4-safe.h: New file.
46963         * lib/unistr/utf16-ucs4-safe.c: New file.
46964
46965         * MODULES.html.sh (Unicode string functions): Add the new modules.
46966
46967 2007-01-08  Bruno Haible  <bruno@clisp.org>
46968
46969         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46970         (Depends-on): Add unitypes.
46971         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46972         (u8_mbtouc_aux): Move out to separate file.
46973         (u8_mbtouc): Use ucs4_t, uint8_t types.
46974         * lib/unistr/utf8-ucs4.c: New file.
46975
46976         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46977         (Depends-on): Add unitypes.
46978         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46979         (u16_mbtouc_aux): Move out to separate file.
46980         (u16_mbtouc): Use ucs4_t, uint16_t types.
46981         * lib/unistr/utf16-ucs4.c: New file.
46982
46983         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46984         (Depends-on): Add unitypes.
46985         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46986         (u8_uctomb_aux): Move out to separate file.
46987         (u8_uctomb): Use ucs4_t, uint8_t types.
46988         * lib/unistr/ucs4-utf8.c: New file.
46989
46990         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46991         (Depends-on): Add unitypes.
46992         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46993         (u16_uctomb_aux): Move out to separate file.
46994         (u16_uctomb): Use ucs4_t, uint16_t types.
46995         * lib/unistr/ucs4-utf16.c: New file.
46996
46997 2006-12-25  Bruno Haible  <bruno@clisp.org>
46998
46999         * modules/unitypes: New file.
47000         * lib/unitypes.h: New file.
47001         * MODULES.html.sh (func_all_modules): New section "Unicode string
47002         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47003         this section. Add unitypes.
47004
47005 2007-01-08  Bruno Haible  <bruno@clisp.org>
47006
47007         Avoid variable names that conflict with those from libtool.
47008         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47009         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47010         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47011         library_names_spec to acl_library_names_spec, hardcode_* to
47012         acl_hardcode_*.
47013         Reported by Ralf Wildenhues.
47014
47015 2007-01-08  Bruno Haible  <bruno@clisp.org>
47016
47017         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47018         definition.
47019         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47020         definition.
47021         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47022         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47023         definition.
47024         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47025         definition.
47026         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47027         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47028         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47029         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47030         definition.
47031         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47032         definition.
47033         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47034         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47035         GC_USE_<algorithm>.
47036         * lib/gc-libgcrypt.c: Likewise.
47037         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47038         * modules/gc-arctwo (configure.ac): Likewise.
47039         * modules/gc-des (configure.ac): Likewise.
47040         * modules/gc-hmac-md5 (configure.ac): Likewise.
47041         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47042         * modules/gc-md2 (configure.ac): Likewise.
47043         * modules/gc-md4 (configure.ac): Likewise.
47044         * modules/gc-md5 (configure.ac): Likewise.
47045         * modules/gc-random (configure.ac): Likewise.
47046         * modules/gc-rijndael (configure.ac): Likewise.
47047         * modules/gc-sha1 (configure.ac): Likewise.
47048
47049 2007-01-08  Bruno Haible  <bruno@clisp.org>
47050
47051         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47052         macro definition.
47053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47054         definition.
47055         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47056         definition.
47057         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47058         * modules/fcntl-safer (configure.ac): Likewise.
47059         * modules/fopen-safer (configure.ac): Likewise.
47060         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47061         GNULIB_FWRITEERROR macro definition.
47062
47063 2007-01-08  Bruno Haible  <bruno@clisp.org>
47064
47065         * m4/gnulib-common.m4: New file.
47066         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47067         (func_get_filelist): Add m4/gnulib-common.m4.
47068
47069 2007-01-08  Bruno Haible  <bruno@clisp.org>
47070
47071         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47072         command.
47073
47074 2007-01-08  Jim Meyering  <jim@meyering.net>
47075
47076         Use a more robust test for a "can't happen" condition.
47077         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47078         narrowed the st_size value.  Presuming the "can't happen" condition
47079         is true, that narrowing could conceivably convert an invalid st_size
47080         value into a valid one.  Instead, use a change based on Matthew
47081         Woehlke's original patch.
47082
47083         Slight readability improvement: use an assert-like macro
47084         in place of literal "abort ()" uses.
47085         * lib/fts.c (fts_assert): Define.
47086         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47087         Use this macro instead of a bare 'abort'.
47088
47089 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47090
47091         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47092         simply work around them.
47093         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47094         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47095         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47096         declaring.
47097         Don't bother to define as macros, since the standard doesn't require it.
47098         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47099         longer worry about IRIX 5.3.
47100         (HAVE_WCTYPE_CTMP_BUG): Remove.
47101
47102 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47103
47104         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47105         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47106         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47107         Problems reported by Georg Schwarz for IRIX 5.3.
47108
47109         * gnulib-tool (autoconf_minversion): Take the maximum version number
47110         found, not the minimum.  Problem reported by James Youngman.
47111
47112 2007-01-03  Karl Berry  <karl@gnu.org>
47113
47114         * doc/error.texi: new file, explaining interaction with progname.
47115         * doc/gnulib.texi: include it.  Update copyright.
47116
47117 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47118
47119         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47120         AC_CANONICAL_HOST, to improve autobuild outputs.
47121
47122 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47123             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47124
47125         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47126         sockets, server sockets, and other file descriptors.  Count errors
47127         to compute the return value.  Reorder the code a bit to be easier
47128         to follow.  Don't set event bits that were not requested (except
47129         POLLERR and POLLHUP).
47130
47131 2007-01-01  Bruno Haible  <bruno@clisp.org>
47132
47133         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47134
47135 2007-01-03  Jim Meyering  <jim@meyering.net>
47136
47137         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47138
47139 2007-01-02  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/settime (Include): Require timespec.h.
47142         * modules/nanosleep (Include): Likewise.
47143
47144 2007-01-01  Bruno Haible  <bruno@clisp.org>
47145
47146         * gnulib-tool (func_emit_copyright_notice): Bump year.
47147         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47148
47149 2007-01-01  Bruno Haible  <bruno@clisp.org>
47150
47151         Improve support for OpenBSD.
47152         * build-aux/config.rpath (libname_spec): Export.
47153         (library_names_spec): New variable. Export.
47154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47155         library_names_spec from the config.rpath output. Locate shared library
47156         through the name pattern in library_names_spec.
47157
47158 2007-01-01  Eric Blake  <ebb9@byu.net>
47159
47160         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47161
47162 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47163
47164         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47165         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47166         assume the C locale, and avoid an "eval" that could cause trouble.
47167         Problem with SORT reported by Bob Proulx.
47168
47169         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47170         Define.  Trivial patch from Henning Nielsen Lund, originally
47171         sent to bug-grep@gnu.org today.
47172
47173 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47176         struct stat.  Problem reported by Henning Nielsen Lund.
47177         * lib/acl.c: Include acl.h first, to check interface.  Don't
47178         bother to include sys/types.h and sys/stat.h again.
47179
47180 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47181
47182         Import the following change from libc; problem reported by
47183         Sven Verdoolaege.
47184
47185         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47186
47187         [BZ #1373]
47188         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47189
47190 2006-12-28  Jim Meyering  <jim@meyering.net>
47191
47192         * build-aux/announce-gen: Do not assume that the package
47193         builds any of tar.gz, tar.bz2, and .xdelta files.
47194         Suggestion from Simon Josefsson.
47195
47196 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47197
47198         * modules/announce-gen: New file.
47199
47200 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47201
47202         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47203         handles its gotchas now.
47204         * lib/mbswidth.c: Likewise.
47205         * lib/wcwidth.h: Likewise.
47206         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47207         and iswcntrl; the wctype module does this stuff now.
47208         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47210         * modules/mbchar (Depends-on): Add wctype.
47211         * modules/mbswidth (Depends-on): Likewise.
47212         * modules/wcwidth (Depends-on): Likewise.
47213
47214 2006-12-27  Eric Blake  <ebb9@byu.net>
47215
47216         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47217         module uses more than what <wctype.h> is required to provide.
47218
47219 2006-12-26  Eric Blake  <ebb9@byu.net>
47220
47221         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47222
47223 2006-12-26  Eric Blake  <ebb9@byu.net>
47224
47225         * modules/absolute-header: New module.
47226         * modules/fcntl (Depends-on): Depend on it.
47227         * modules/inttypes (Depends-on): Likewise.
47228         * modules/stdint (Depends-on): Likewise.
47229         * modules/sys_stat (Depends-on): Likewise.
47230         * modules/wctype (Depends-on): Likewise.
47231         * MODULES.html.sh (Support for building libraries and
47232         executables): Document it.
47233
47234 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47235
47236         * gnulib-tool (SED): Remove, undoing previous change.
47237         The problem was that it broke coreutils on Solaris, because
47238         "sed --posix" leaked into a makefile.
47239         (sed): New alias, if 'alias' and GNU sed.
47240
47241 2006-12-24  Jim Meyering  <jim@meyering.net>
47242
47243         Work around an fchownat bug in glibc-2.4:
47244         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47245         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47246         in spite of the -P option.
47247         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47248         New macros.
47249         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47250         * modules/openat (Files): Add lib/fchownat.c.
47251         * lib/openat.c (fchownat): Don't define here.  Move to...
47252         * lib/fchownat.c: ...this new file.
47253
47254 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47255
47256         Fix bug reported by Bruno Haible in
47257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47258         where quotearg.c didn't compile on Mac OS X 10.2 because it
47259         lacks <wchar.h> and wint_t.
47260         * lib/wctype_.h (__wctype_wint_t): New type.
47261         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47262         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47263         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47264         Arg is now of type __wctype_wint_t, not wint_t.
47265         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47266         substitute HAVE_WINT_T.
47267         * modules/wctype (Files): Add m4/wint_t.m4.
47268         (wctype.h): Substitute HAVE_WINT_T.
47269
47270 2006-12-23  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47273
47274 2006-12-23  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47277         S_ISLNK.
47278         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47279         mingw.
47280
47281 2006-12-22  Bruno Haible  <bruno@clisp.org>
47282
47283         * lib/copy-file.c: Include acl.h.
47284         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47285         Close the file descriptors only after being done with copy_acl.
47286         * modules/copy-file (Depends-on): Add acl.
47287
47288 2006-12-22  Bruno Haible  <bruno@clisp.org>
47289
47290         * gnulib-tool (SED): New variable.
47291         Use $SED instead of sed everywhere.
47292
47293 2006-12-22  Bruno Haible  <bruno@clisp.org>
47294
47295         * modules/no-c++: New file.
47296         * m4/no-c++.m4: New file.
47297         * MODULES.html.sh (Support for building libraries and executables):
47298         Add no-c++.
47299
47300 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47301
47302         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47303         Include <limits.h>, and use its INT_MAX to rewrite the
47304         j loop so that it does not overflow 'int'.  Problem reported by
47305         Ralf Wildenhues in
47306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47307         Play it safe by shifting left by 1 rather than multiplying by 2,
47308         as GCC is less likely to optimize this away when the value
47309         is signed (when it assumes overflow leads to undefined behavior).
47310         Also, don't assume time_t uses two's complement.
47311
47312 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47313
47314         * MODULES.html.sh: New module wctype.
47315         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47316         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47317         <wctype.h>, since the new wctype module should fix this.
47318         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47319         the wctype module should arrange for it.
47320         * lib/regex_internal.h: Likewise.
47321         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47322         since the wctype module should handle this now.
47323         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47324         * modules/fnmatch (Depends-on): Add wctype.
47325         * modules/quotearg (Depends-on): Likewise.
47326         * modules/regex (Depends-on): Likewise.
47327
47328 2006-12-19  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47331         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47332
47333 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47334
47335         * modules/savewd (Depends-on): Fix dependency on fcntl.
47336
47337 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47338
47339         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47340         conforms to C99, rather than relying on the user's environment
47341         setting of STDINT_H.
47342
47343 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47344         and Eric Blake  <ebb9@byu.net>
47345
47346         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47347         This is more consistent with the other defines here.
47348         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47349         Port to z/OS.  Problem reported by Paul Gilmartin.
47350         Change local vars to use gl_ prefix rather than ac_.
47351         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47352         with other defines.
47353         * modules/double-slash-root: New module.
47354         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47355         (Depends-on): Add double-slash-root.
47356         * MODULES.html.sh (File system functions): Mention new module.
47357
47358 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47359
47360         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47361         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47362         This is for the benefit of gzip, which doesn't do i18n.
47363
47364 2006-12-12  Jim Meyering  <jim@meyering.net>
47365
47366         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47367         Reported by Andreas Schwab <schwab@suse.de>.
47368
47369 2006-12-12  Bruno Haible  <bruno@clisp.org>
47370
47371         Merge these changes.
47372         2006-09-05  Bruno Haible  <bruno@clisp.org>
47373         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47374         iconv_alloc succeeded.
47375         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47376         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47377         test for " && dest " at the end - dest is always != NULL there. Call
47378         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47379         with 2xNULL arguments, also to flush the state storage. Handle the
47380         IRIX iconv behaviour. Realloc the final result, to throw away unused
47381         memory.
47382
47383 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47384
47385         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47386         and fchmodat unconditionally, since glibc 2.4 has them.
47387         Problem reported by Arkadiusz Miskiewicz.
47388
47389 2006-12-10  Bruno Haible  <bruno@clisp.org>
47390
47391         * gnulib-tool (func_import): Show the include files only for those
47392         modules that are copied and specified.
47393         Reported by Karl Berry.
47394
47395 2006-12-08  Jim Meyering  <jim@meyering.net>
47396
47397         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47398         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47399
47400         * build-aux/announce-gen: Add two new options, both optional:
47401         --bootstrap-tools=TOOL_LIST
47402               a comma-separated list of tools, e.g.,
47403               autoconf,automake,bison,gnulib
47404         --gnulib-snapshot-date=DATE
47405               if gnulib is in the bootstrap tool list,
47406               then report this as the snapshot date.
47407               If not specified, use the current date/time.
47408               If you specify a date here, be sure it's UTC.
47409
47410 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47411
47412         * tests/test-argp-2.sh: Fix test to match actual output.
47413         (func_compare): Fix sed script to be portable.
47414
47415 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47416
47417         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47418         workaround for this case.  It is not autoconfigured now; offhand
47419         it's hard to see how to autoconfigure it.
47420
47421 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47424         a directory that is about to be chowned.  Such a directory's
47425         initial file permissions should permit the owner only and this
47426         should not be changed until after the chown, since the group and
47427         other bits would be incorrect if they granted permission before
47428         the chown.
47429
47430         Fix porting problem for iswctype reported by Georg Schwarz in:
47431         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47432         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47433         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47435         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47436
47437 2006-12-03  Jim Meyering  <jim@meyering.net>
47438
47439         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47440         p->fts_statp may not yet be defined.
47441         (fts_read): Instead, set it in the caller, once p->fts_statp is
47442         sure to be defined, and corresponds to a top-level directory.
47443         This bug made du -x fail.  Here's the coreutils test case:
47444         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47445         Reported by Mike Frysinger.
47446
47447 2006-12-01  Jim Meyering  <jim@meyering.net>
47448
47449         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47450         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47451         Reported by Simon Josefsson.
47452
47453 2006-11-30  Jim Meyering  <jim@meyering.net>
47454
47455         * m4/warning.m4: Use the all-permissive copyright notice
47456         recommended by RMS (rather than LGPL).
47457         * m4/vararrays.m4: Likewise.
47458         * m4/flexmember.m4: Likewise.
47459
47460 2006-11-29  Bruno Haible  <bruno@clisp.org>
47461
47462         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47463         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47464         using +=.
47465         Reported by Simon Josefsson <simon@josefsson.org>.
47466
47467 2006-11-28  James Youngman <jay@gnu.org>
47468
47469         * README: Advise users that they might find the bug-gnulib@gnu.org
47470         and autotools-announce@gnu.org mailing lists useful.
47471
47472 2006-11-28  Bruno Haible  <bruno@clisp.org>
47473
47474         * m4/ptrdiff_max.m4: Remove file.
47475
47476 2006-11-21  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47479         _AC_COMPUTE_INT.
47480         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47481         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47482         _AC_COMPUTE_INT.
47483         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47484         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47485         _AC_COMPUTE_INT.
47486         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47487
47488 2006-11-28  Jim Meyering  <jim@meyering.net>
47489
47490         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47491         warning from "gcc -Wshadow" about shadowing the builtin.
47492
47493 2006-11-27  Bruno Haible  <bruno@clisp.org>
47494
47495         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47496         _AC_COMPUTE_INT.
47497         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47498
47499 2006-11-27  Bruno Haible  <bruno@clisp.org>
47500             Paul Eggert  <eggert@cs.ucla.edu>
47501
47502         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47503
47504 2006-11-26  Bruno Haible  <bruno@clisp.org>
47505
47506         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47507         noinst_LTLIBRARIES.
47508
47509 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47510             Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47513         if compiling with "gcc -ansi".
47514
47515 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         Fix some incompatibilities with gcc -ansi -pedantic.
47518         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47519         if compiling pedantically with GCC, unless it's C99 or later.
47520         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47521         it mishandles gcc -ansi -pedantic as well.
47522         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47523         if gcc -pedantic.
47524         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47525         initializers for struct if -pedantic, unless it's C99 or later.
47526
47527 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47528
47529         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47530         Don't close an fd more than once. Identical atimes indicate
47531         success, not failure.
47532
47533 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47534
47535         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47536
47537 2006-11-23  Jim Meyering  <jim@meyering.net>
47538
47539         * build-aux/announce-gen: New file.  From coreutils.
47540
47541 2006-11-22  Jim Meyering  <jim@meyering.net>
47542
47543         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47544         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47545         (fts_read): Use a temporary to narrow the overused st_size member
47546         before using it in a switch statement.  Reported by Matthew Woehlke.
47547
47548         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47549         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47550
47551 2006-11-20  Bruno Haible  <bruno@clisp.org>
47552
47553         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47554         changequote instead of pairs of brackets.
47555         Reported by Andreas Schwab <schwab@suse.de>.
47556
47557 2006-11-21  Jim Meyering  <jim@meyering.net>
47558
47559         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47560         so as to remain compatible with older compilers.
47561         Patch from Michael Deutschmann.
47562
47563 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47564
47565         * MODULES.html.sh (File system functions): Add openat.
47566
47567         * lib/openat.h (rpl_fstatat): New macro, if
47568         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47569         (fstatat): Define to rpl_fstatat under the same conditions,
47570         unless COMPILING_FSTATAT.
47571         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47572         seems to have the bug.
47573         * lib/fstatat.c: New file.
47574         * modules/openat (Files): Add it.
47575
47576 2006-11-20  Bruno Haible  <bruno@clisp.org>
47577
47578         * Makefile: New file.
47579
47580 2006-11-20  Jim Meyering  <jim@meyering.net>
47581
47582         The beginnings of syntax-related checks for gnulib.
47583         * lib/Makefile: New file.
47584         * lib/t-idcache: New script.  Ensure that the two halves of
47585         idcache.c stay in sync.
47586
47587         * lib/idcache.c: Adjust comments in user- and group- portions to
47588         be more accurate, and to be consistent with one another.
47589
47590 2006-11-20  Jim Meyering  <jim@meyering.net>
47591
47592         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47593         continue using the flexible array member (thus, this module performs
47594         half as many malloc calls), with the addition that...
47595         (getgroup, getuser): Consistently record a non-match via an empty
47596         "name" string, and map an empty string match to a NULL return value.
47597         * modules/idcache (Depends-on): Re-add flexmember.
47598
47599         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47600         (getuidbyname, getgroup, getgidbyname): Likewise.
47601
47602         Use cleaner syntax: NULL rather than 0.
47603         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47604
47605 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47606
47607         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47608         It mishandled the case where the group was missing.
47609         Problem reported by Greg Schafer.
47610         * modules/idcache: Likewise.
47611
47612 2006-11-18  Jim Meyering  <jim@meyering.net>
47613
47614         * check-module (%exempt_header): Add exception for some
47615         conditionally-included headers.
47616
47617         * modules/i-ring (Depends-on): Add verify.
47618         (License): Change to LGPL.
47619
47620 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47621
47622         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47623         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47624         and inttostr.h.  Use snprintf rather than uinttostr, so that
47625         LGPLed code doesn't depend on GPLed.
47626
47627 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47628
47629         * modules/inline (License): Change from GPL to LGPL.
47630
47631 2006-11-17  Jim Meyering  <jim@meyering.net>
47632
47633         * modules/d-type (License): Switch to LGPL.
47634
47635 2006-11-15  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47638
47639 2006-11-15  Eric Blake  <ebb9@byu.net>
47640
47641         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47642         the module dependency.
47643
47644 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47645             Bruno Haible  <bruno@clisp.org>
47646
47647         * gnulib-tool (func_create_testdir): Add license consistency check.
47648
47649 2006-11-15  Eric Blake  <ebb9@byu.net>
47650
47651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47652         random "(cached)" in configure output.
47653
47654 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47655
47656         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47657         test for conforming inttypes.h is both announced and cached.
47658
47659         * MODULES.html.sh (seen_modules, seen_files): New variables.
47660         (func_module): Rewrite to use a few less gnulib-tool and sed
47661         invocations.  Avoid a couple of quadratic algorithms for ...
47662         (missed_modules, missed_files): ... these, with ...
47663         (func_append, func_tmpdir): ... these new functions, from
47664         gnulib-tool.  Analogously, install traps for cleanup.
47665
47666         * tests/test-gc.c (main): Remove unused variables.
47667         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47668
47669 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47670
47671         * modules/inttostr (License): Change to LGPL.
47672
47673 2006-11-14  Eric Blake  <ebb9@byu.net>
47674
47675         * modules/tempname (License): Change to LGPL.
47676
47677 2006-11-14  Eric Blake  <ebb9@byu.net>
47678
47679         * doc/functions.texi (Function Portability): *printf functions on
47680         Cygwin now understand all POSIX size specifiers.
47681
47682 2006-11-14  Bruno Haible  <bruno@clisp.org>
47683
47684         * modules/c-ctype (License): Change to LGPL.
47685
47686 2006-11-12  Bruno Haible  <bruno@clisp.org>
47687
47688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47689         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47690         for GNOME libraries, for which the include files are installed in
47691         subdirectories of $prefix/include.
47692
47693 2006-11-12  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/lib-link.m4: Require at least autoconf-2.54.
47696         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47697         name to underscores for the --with option.
47698
47699 2006-11-13  Bruno Haible  <bruno@clisp.org>
47700
47701         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47702         the tests directory.
47703         Reported by Ralf Wildenhues.
47704
47705 2006-11-13  Bruno Haible  <bruno@clisp.org>
47706
47707         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47708         (func_emit_initmacro_end): Undo the override here.
47709         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47710         Works around the famous automake error in coreutils.
47711
47712 2006-11-13  Eric Blake  <ebb9@byu.net>
47713
47714         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47715         element, not its node.
47716
47717 2006-11-12  Bruno Haible  <bruno@clisp.org>
47718
47719         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47720         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47721
47722 2006-11-12  Bruno Haible  <bruno@clisp.org>
47723
47724         * gnulib-tool: New option --local-symlink.
47725         (func_usage): Document it.
47726         (lsymbolic): New variable.
47727         (func_import, func_create_testdir): If --symlink was not specified,
47728         test whether --local-symlink was specified and the file comes from
47729         the local_gnulib_dir.
47730
47731 2006-11-12  Bruno Haible  <bruno@clisp.org>
47732
47733         * gnulib-tool (func_ln): New function.
47734         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47735
47736 2006-11-12  Bruno Haible  <bruno@clisp.org>
47737
47738         Finish support for source files in subdirectories.
47739         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47740         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47741         AUTOMAKE_OPTIONS.
47742         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47743
47744 2006-11-12  Bruno Haible  <bruno@clisp.org>
47745
47746         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47747         EXTRA_lib_SOURCES augmentation.
47748         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47749
47750 2006-11-12  Jim Meyering  <jim@meyering.net>
47751
47752         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47753         file descriptors.  This also averts a failure on systems with
47754         native openat support when a traversed directory lacks "x" access.
47755         * lib/fts_.h: Include "i-ring.h"
47756         (struct FTS) [fts_fd_ring]: New member.
47757         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47758         (FCHDIR): Add parentheses.
47759         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47760         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47761         When descending, rather than simply closing the previous
47762         fts_cwd_fd value, push that file descriptor onto the ring.
47763         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47764         (fts_open): Initialize the new fd_ring member.
47765         (fts_close): Clear the ring.
47766         (fts_safe_changedir): When possible, use our new fd_ring to skip
47767         the diropen and fstat and dev/ino comparison that would normally
47768         accompany a virtual `chdir ("..")'.
47769
47770         * modules/fts (Depends-on): Add i-ring.
47771         * modules/i-ring: New module.
47772         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47773         * m4/i-ring.m4: New file.
47774
47775 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47776
47777         * gnulib-tool (func_create_testdir): Fix replacement of
47778         `build-aux' in configure.ac.  Run autotools in gltests
47779         subdirectory.
47780         (func_create_testdir, func_create_megatestdir, test): There is
47781         no need for '--force' in most autotool invocations in a new
47782         tree.  Actually fail the whole test if any of the tools, or the
47783         configure or make stages fail.
47784
47785         Sync from Automake.
47786         * build-aux/gnupload: Revert last change.  Add pointer to upload
47787         instructions of the GNU Maintenance Instructions.
47788         Suggestion by Karl Berry.
47789
47790 2006-11-10  Jim Meyering  <jim@meyering.net>
47791
47792         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47793
47794 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47795
47796         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47797         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47798         (bind_textdomain_codeset) [! ENABLE_NLS]:
47799         Evaluate all the arguments.  That way, callers get compatible behavior
47800         if the arguments have side effects.  Also, it avoids some GCC
47801         diagnostics in some cases; Joel E. Denny reported problems when Bison
47802         was configured with --enable-gcc-warnigs.
47803
47804 2006-11-10  Jim Meyering  <jim@meyering.net>
47805
47806         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47807         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47808         account.
47809
47810 2006-11-10  Jim Meyering  <jim@meyering.net>
47811
47812         * modules/inline: New file/module.
47813         * modules/xalloc (Files): Remove m4/inline.m4.
47814         (Depends-on): Add inline, instead.
47815         * modules/oset: Likewise.
47816         * modules/list: Likewise.
47817
47818 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47819
47820         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47821         Problem reported by Matthew Woehlke.
47822
47823 2006-11-09  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/tempname.c (gen_tempname): Remove variant that invokes
47826         __gen_tempname.
47827         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47828         __gen_tempname.
47829
47830 2006-11-08  Bruno Haible  <bruno@clisp.org>
47831
47832         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47833         to 'yes' instead of 'cross-compiling'.
47834
47835 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * lib/quotearg.h (quotearg_free): New decl.
47838         * lib/quotearg.c (quotearg_free): New function.
47839         (slot0, nslots, slotvec0, slotvec):
47840         Now file-scope so that quotearg_free can get at them.
47841
47842 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47843
47844         Sync from Automake.
47845         * build-aux/gnupload: Add missing 'gnu' to example URL.
47846         Report by Karl Berry.
47847
47848 2006-11-08  Bruno Haible  <bruno@clisp.org>
47849
47850         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47851         Suggested by Paul Eggert.
47852
47853 2006-11-08  Jim Meyering  <jim@meyering.net>
47854
47855         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47856         It's already included if !_LIBC.
47857         (fts_safe_changedir): Add a comment.
47858
47859 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47860
47861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47862         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47863         Matthew Woehlke.
47864
47865         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47866         definitions up, to avoid colliding with change below.
47867         (static_inline) [HAVE_INLINE]: New macro.
47868         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47869         Provide extern decls when !HAVE_INLINE.  Do not define unless
47870         static_inline is defined, either by us or by xmalloc.c.  Use
47871         static_inline rather than static inline.
47872         (XCALLOC): Optimize sizeof(T) = 1 case.
47873         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47874
47875 2006-11-07  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47878         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47879         AC_C_INLINE.
47880         * modules/xalloc (Files): Add m4/inline.m4.
47881
47882 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47883
47884         * README: Fix typo.
47885         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47886         (Miscellanous Notes): ...from this.
47887
47888 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47891         Mention that offsetof should be used instead of sizeof.
47892         From Bruno Haible.
47893
47894 2006-11-07  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47897
47898 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47901         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47902         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47903         (gl_tree_add_before, gl_tree_add_after):
47904         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47905         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47906         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47907         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47908         (gl_linked_add_after, gl_linked_add_at): Likewise.
47909         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47910         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47911         (gl_tree_add_before, gl_tree_add_after): Likewise.
47912         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47913         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47914         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47915
47916 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47917
47918         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47919
47920 2006-11-06  Bruno Haible  <bruno@clisp.org>
47921
47922         * m4/inline.m4: New file.
47923         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47924         * modules/list (Files): Add m4/inline.m4.
47925         * modules/oset (Files): Likewise.
47926
47927 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * lib/idcache.c: Include <stddef.h>, for offsetof.
47930         (struct userid.name): Change from char * to a flexible array member.
47931         All uses changed.
47932         * modules/idcache (Depends-on): Add flexmember.
47933
47934         * MODULES.html.sh (Core language properties): New module flexmember.
47935         * modules/flexmember, m4/flexmember.m4: New files.
47936
47937         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47938         inline functions that are identical with the old xnmalloc_inline,
47939         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47940         that we can avoid some unnecessary integer multiplications and
47941         divisions in the common case where the element size is known at
47942         compile time.
47943         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47944         needed.
47945         (xnboundedmalloc): Remove.
47946         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47947         arguments, for consistency with rest of this header.
47948         (xcharalloc): Rewrite using XNMALLOC.
47949         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47950         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47951         versions have been moved to lib/xalloc.h and renamed to be the
47952         non-*_inline versions.
47953         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47954         and xnrealloc functions, since those functions are now inline and
47955         now call us.
47956         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47957         renaming described above.
47958         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47959         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47960         captures the dependency in AC_C_INLINE.
47961
47962         New module canonicalize-lgpl, proposed by Charles Wilson in
47963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47964         with a few small changes afterwards.
47965         * MODULES.html.sh (File system functions): New module
47966         canonicalize-lgpl.
47967         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47968         and canonicalize_file_name.
47969         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47970         * modules/canonicalize-lgpl: New files.
47971
47972 2006-11-05  Bruno Haible  <bruno@clisp.org>
47973
47974         * gnulib-tool (func_import, func_create_testdir): Create directories
47975         also for files in subdirectories of lib/.
47976
47977 2006-11-05  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47980         ANSI C compliant.
47981
47982 2006-11-03  Bruno Haible  <bruno@clisp.org>
47983
47984         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47985         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47986         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47987         (xnboundedmalloc): New inline function.
47988         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47989         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47990         xmalloc.
47991         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47992         xmalloc.
47993         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47994         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47995         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47996         xmalloc.
47997         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47998         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47999         xmalloc.
48000         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48001         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48002         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48003         xmalloc.
48004         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48005         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48006         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48007         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48008         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48009         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48010         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48011
48012 2006-11-03  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/c-ctype.h [C++]: Define functions without name mangling.
48015         * lib/fwriteerror.h [C++]: Likewise.
48016         * lib/gcd.h [C++]: Likewise.
48017         * lib/linebreak.h [C++]: Likewise.
48018
48019 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48020
48021         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48022         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48023         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48025         Check for functions and headers just once.
48026         Check for declaration of canonicalize_file_name.
48027         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48028
48029 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48030
48031         * gnulib-tool (func_import): Fix typo in actioncmd.
48032
48033 2006-11-02  Bruno Haible  <bruno@clisp.org>
48034
48035         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48036         newline sequence in the Makefile.am snippet as a space, like "make"
48037         does.
48038         Reported by Roger Persson <perrog@gmail.com>.
48039
48040 2006-11-01  Bruno Haible  <bruno@clisp.org>
48041
48042         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48043         already declared in <string.h>.
48044         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48045
48046 2006-11-01  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48049         * lib/strcase.h: Include <string.h>.
48050         (strcasecmp): Define to rpl_strcasecmp here.
48051
48052 2006-11-01  Bruno Haible  <bruno@clisp.org>
48053
48054         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48055
48056 2006-11-01  Eric Blake  <ebb9@byu.net>
48057
48058         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48059
48060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48061
48062 2006-10-29  Bruno Haible  <bruno@clisp.org>
48063
48064         Make it compile in C++ mode.
48065         * lib/full-write.c (full_rw): Add a cast.
48066
48067 2006-11-01  Bruno Haible  <bruno@clisp.org>
48068
48069         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48070         be POSIX compliant.
48071         Reported by Roger Persson <perrog@gmail.com>.
48072
48073 2006-11-01  Eric Blake  <ebb9@byu.net>
48074
48075         * lib/getopt_.h: Fix comments.
48076
48077 2006-10-31  Eric Blake  <ebb9@byu.net>
48078
48079         * modules/tmpdir (Depends-on): Add sys_stat.
48080         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48081         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48082         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48083         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48084         tempname.
48085
48086 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         Avoid some C++ diagnostics reported by Bruno Haible.
48089         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48090         xmalloc.
48091         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48092         (struct slotvec): Move to top level.
48093         (quotearg_n_options): Rewrite to avoid xmalloc.
48094         * lib/xalloc.h (xcharalloc): New function.
48095         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48096         [defined __cplusplus]: Add function template that provides result
48097         type propagation.  This part of the change is from Bruno Haible.
48098
48099 2006-10-29  Bruno Haible  <bruno@clisp.org>
48100
48101         Make it compile in C++ mode.
48102         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48103         * lib/strnlen1.c (strnlen1): Cast memchr result.
48104         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48105         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48106         (create_temp_dir): Rename local variable 'template'.
48107         (compile_csharp_using_sscli): Add cast.
48108         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48109         * lib/findprog.c (find_in_path): Likewise.
48110         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48111         * lib/wait-process.c (register_slave_subprocess): Likewise.
48112
48113 2006-10-22  Bruno Haible  <bruno@clisp.org>
48114
48115         * modules/tsearch: New file.
48116         * lib/tsearch.h: New file.
48117         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48118         * m4/tsearch.m4: New file.
48119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48120
48121 2006-10-29  Eric Blake  <ebb9@byu.net>
48122
48123         * lib/arcfour.c: Assume config.h.
48124         * lib/arctwo.c: Likewise.
48125         * lib/base64.c: Likewise.
48126         * lib/check-version.c: Likewise.
48127         * lib/crc.c: Likewise.
48128         * lib/des.c: Likewise.
48129         * lib/gc-gnulib.c: Likewise.
48130         * lib/gc-libgcrypt.c: Likewise.
48131         * lib/gc-pbkdf2-sha1.c: Likewise.
48132         * lib/getaddrinfo.c: Likewise.
48133         * lib/getdelim.c: Likewise.
48134         * lib/getline.c: Likewise.
48135         * lib/hmac-md5.c: Likewise.
48136         * lib/hmac-sha1.c: Likewise.
48137         * lib/iconvme.c: Likewise.
48138         * lib/md2.c: Likewise.
48139         * lib/md4.c: Likewise.
48140         * lib/memxor.c: Likewise.
48141         * lib/read-file.c: Likewise.
48142         * lib/readline.c: Likewise.
48143         * lib/rijndael-alg-fst.c: Likewise.
48144         * lib/rijndael-api-fst.c: Likewise.
48145         * lib/xgetdomainname.c: Likewise.
48146
48147 2006-10-28  Eric Blake  <ebb9@byu.net>
48148
48149         * lib/xstrndup.c: Assume config.h.
48150
48151 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48154         stat-macros.h is now for our own macros, whereas stat_h is for
48155         macros in the <sys/stat.h> name space.
48156         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48157         (STAT_MACROS_H): Remove.
48158         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48159         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48160         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48161         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48162         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48163         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48164         Move these macros to ...
48165         * lib/stat_.h: here.  Don't include stat-macros.h.
48166         * lib/canonicalize.c: Don't include stat-macros.h.
48167         * lib/chown.c: Likewise.
48168         * lib/euidaccess.c: Likewise.
48169         * lib/file-type.c: Likewise.
48170         * lib/filemode.c: Likewise.
48171         * lib/glob.c: Likewise.
48172         * lib/isapipe.c: Likewise.
48173         * lib/lchown.c: Likewise.
48174         * lib/lstat.c: Likewise.
48175         * lib/mkdir-p.c: Likewise.
48176         * lib/rmdir.c: Likewise.
48177         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48178         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48179         unless mkdir isn't declared, to speed up 'configure'.
48180         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48181         would define all the S_* symbols.
48182         * modules/canonicalize (Depends-on):
48183         Depend on sys_stat, not stat-macros.
48184         * modules/chown: Likewise.
48185         * modules/euidaccess: Likewise.
48186         * modules/filemode: Likewise.
48187         * modules/file-type: Likewise.
48188         * modules/glob: Likewise.
48189         * modules/isapipe: Likewise.
48190         * modules/lchown: Likewise.
48191         * modules/lstat: Likewise.
48192         * modules/mkancesdirs: Likewise.
48193         * modules/rmdir: Likewise.
48194         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48195         * modules/modechange: Likewise.
48196         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48197         (configure.ac): Remove gl_STAT_MACROS.
48198         * modules/sys_stat (Depends-on): Remove stat-macros.
48199
48200 2006-10-27  Bruno Haible  <bruno@clisp.org>
48201
48202         * m4/signed.m4: Remove file.
48203         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48204         invocation.
48205         * modules/vasnprintf (Files): Remove m4/signed.m4.
48206
48207 2006-10-27  Bruno Haible  <bruno@clisp.org>
48208
48209         Update to GNU gettext 0.16.
48210         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48211         m4/inttypes-h.m4, m4/signed.m4.
48212         * m4/gettext.m4: Update to GNU gettext 0.16.
48213         * m4/intl.m4: New file, from GNU gettext.
48214         * m4/intldir.m4: New file, from GNU gettext.
48215         * config/srclist.txt: Update
48216
48217 2006-10-27  Eric Blake  <ebb9@byu.net>
48218
48219         * MODULES.html.sh: Document tempname.
48220         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48221         dependencies.
48222         (Files): Move lib/tempname.c...
48223         * modules/tempname: ...to this new module.
48224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48225         (gl_PREREQ_TEMPNAME): Move...
48226         * m4/tempname.m4: ...to this new file.
48227         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48228         * modules/sys_stat (Depends-on): Add stat-macros.
48229         * lib/stat_.h (includes): Pick up stat macros.
48230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48231         if stat macros are broken.
48232         * lib/tempname.c (includes): No need to include "stat-macros.h".
48233         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48234         (direxists, __path_search) [!_LIBC]: Don't compile these in
48235         gnulib; the tmpdir module covers that.
48236         * lib/tempname.h: New file.
48237
48238 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         * COPYING: Explain how gnulib-tool converts licence headers.
48241         Almost all wording by Eric Blake.
48242
48243 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48244
48245         * lib/mbchar.h (is_basic_table): Make read-only.
48246         * lib/mbchar.c (is_basic_table): Likewise.
48247         Reported by John Darrington.
48248
48249 2006-10-25  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/progname.h (set_program_name): Undefine before defining.
48252
48253 2006-10-25  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48256         false for non-gcc C++ compilers.
48257         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48258
48259 2006-10-24  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48262         iconv implementations like Irix iconv.
48263
48264 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48265
48266         * modules/vararrays: New file.
48267         * m4/vararrays.m4: New file, taken from diffutils.
48268         * MODULES.html.sh: New module vararrays.
48269
48270 2006-10-24  Karl Berry  <karl@gnu.org>
48271
48272         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48273         Don't call GNU Unix.
48274
48275 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48276
48277         * users.txt: Add Libtool.
48278
48279         Sync from Libtool:
48280
48281         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48284         to gnulib's policy of including config.h unconditionally.
48285
48286 2006-10-24  Bruno Haible  <bruno@clisp.org>
48287
48288         * modules/wcwidth (Files): Add m4/wint_t.m4.
48289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48290         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48291
48292 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48293
48294         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48295         to pacify GCC with some -W flags enabled.  Problem reported by
48296         Bruno Haible.
48297
48298 2006-10-24  Jim Meyering  <jim@meyering.net>
48299
48300         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48301         Reported by Karl Berry.
48302
48303 2006-10-23  Bruno Haible  <bruno@clisp.org>
48304
48305         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48306
48307 2006-10-24  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/gl_list.h: Use C comment style, not C++ comment style.
48310
48311 2006-10-23  Eric Blake  <ebb9@byu.net>
48312
48313         * lib/getaddrinfo.c (includes): Add missing include.
48314
48315 2006-10-23  Bruno Haible  <bruno@clisp.org>
48316             Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         Ability to rename obstack_free.
48319         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48320         obstack_free.
48321         (obstack_free): Invoke the __obstack_free macro.
48322         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48323
48324 2006-10-23  Bruno Haible  <bruno@clisp.org>
48325             Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48328         __argc, __argv from the declaration. (They are defined as macros on
48329         mingw.)
48330
48331 2006-10-22  Bruno Haible  <bruno@clisp.org>
48332
48333         * doc/gnulib-intro.texi: New file.
48334         * doc/gnulib.texi: Include it.
48335
48336 2006-10-21  Bruno Haible  <bruno@clisp.org>
48337
48338         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48339         "Introduction", "Miscellanous Notes", "Particular Modules".
48340
48341 2006-10-21  Bruno Haible  <bruno@clisp.org>
48342
48343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48344         Change mostlyclean-local rule to avoid sh syntax error from bash
48345         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48346
48347 2006-10-23  Jim Meyering  <jim@meyering.net>
48348
48349         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48350         in place of snprintf.
48351
48352         * modules/inttostr (Files): Add lib/uinttostr.c.
48353         * lib/uinttostr.c (inttostr): New file/function.
48354         * lib/inttostr.h (uinttostr): Declare.
48355         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48356         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48357         Add uinttostr.
48358         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48359
48360 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         * lib/canonicalize.c (ELOOP): Define if not already defined.
48363         Problem reported by Bruno Haible in
48364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48365
48366 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48367
48368         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48369         Problem reported by Perry Smith and Ville Laurikari.
48370
48371         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48372         uses.
48373
48374 2006-10-19  Bruno Haible  <bruno@clisp.org>
48375
48376         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48377         for mingw.
48378
48379 2006-10-19  Bruno Haible  <bruno@clisp.org>
48380
48381         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48382         Needed for mingw.
48383
48384 2006-10-19  Bruno Haible  <bruno@clisp.org>
48385
48386         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48387
48388 2006-10-19  Bruno Haible  <bruno@clisp.org>
48389
48390         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48391         it.
48392
48393 2006-10-19  Bruno Haible  <bruno@clisp.org>
48394
48395         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48396         invocation.
48397
48398 2006-10-19  Bruno Haible  <bruno@clisp.org>
48399
48400         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48401         mountlist by default.
48402
48403 2006-10-16  Bruno Haible  <bruno@clisp.org>
48404
48405         * lib/c-strstr.c: Include c-strstr.h.
48406
48407 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48408
48409         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48410         in a slash.
48411
48412 2006-10-18  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/lock.h [C++]: Wrap definitions in extern "C".
48415
48416 2006-10-18  Bruno Haible  <bruno@clisp.org>
48417
48418         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48419         gl_LIBOBJS list.
48420
48421 2006-10-18  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48424
48425 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * lib/xstrtol.h: Include gettext.h.
48428         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48429         Problem reported by Eric Blake.
48430         * modules/xstrtol (Depends-on): Add gettext-h.
48431
48432 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48433
48434         * lib/strftime.c (advance): New macro.
48435         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48436         incomplete type, so you can't add 0 to it.  Problem and patch
48437         reported by Eelco Dolstra for dietlibc.
48438
48439 2006-10-18  Jim Meyering  <jim@meyering.net>
48440
48441         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48442         type for a local, and rename it: s/up/user_proc/.
48443
48444 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48445
48446         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48447         READ_UTMP_USER_PROCESS.
48448         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48449
48450 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48453         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48454
48455 2006-10-17  Eric Blake  <ebb9@byu.net>
48456
48457         * lib/sigprocmask.c (sigprocmask): Fix typo.
48458
48459         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48460
48461         * modules/clean-temp (Makefile.am): Don't add to make output...
48462         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48463         config.h.
48464
48465 2006-10-17  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48468         differently if DEFAULT_TEXT_DOMAIN is set.
48469
48470 2006-10-16  Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/clean-temp.c: Include fwriteerror.h.
48473
48474 2006-10-16  Bruno Haible  <bruno@clisp.org>
48475
48476         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48477
48478 2006-10-16  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48481         * lib/sigprocmask.h: Include <sys/types.h>.
48482         (sigset_t): Use the system's definition if present.
48483
48484 2006-10-17  Eric Blake  <ebb9@byu.net>
48485
48486         * lib/xvasprintf.c (includes): Assume config.h.
48487         * lib/xasprintf.c (includes): Likewise.
48488
48489 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48490
48491         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48492         at least as wide as intmax_t.
48493
48494 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48495
48496         (Imported from Automake.)
48497         * build-aux/gnupload: Update to version 1.1 of directive file.
48498
48499 2006-10-16  Eric Blake  <ebb9@byu.net>
48500
48501         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48502         match Automake 1.10a.
48503
48504 2006-10-14  Bruno Haible  <bruno@clisp.org>
48505
48506         * modules/sigprocmask: New file.
48507         * lib/sigprocmask.h: New file.
48508         * lib/sigprocmask.c: New file.
48509         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48510         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48511         request sigprocmask.o.
48512         (gl_PREREQ_SIGPROCMASK): New macro.
48513         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48514         (Depends-on): Add sigprocmask.
48515         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48516         gt_SIGNALBLOCKING. Test for 'raise' only once.
48517         * lib/fatal-signal.c: Include sigprocmask.h.
48518         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48519         unblock_fatal_signals): Define always.
48520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48521         sigprocmask.
48522
48523 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48524
48525         Sync from Automake.
48526         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48527         which incorrectly sets the mode of an existing destination
48528         directory.  In some cases the unpatched install-sh could do the
48529         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48530         system.  We hope this is rare in practice, but it's clearly worth
48531         fixing.  Problem reported by Alex Unleashed in
48532         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48533         Also, don't bother to check for -m bugs unless we're using -m;
48534         suggested by Stepan Kasal.
48535
48536 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48537
48538         Sync from Automake.
48539         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48540         `-c' flag, so they appear at the same position as in %FASTDEP%
48541         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48542         which ignores unknown options only after the first non-option.
48543         Bug report against M4 by Nelson H. F. Beebe.
48544
48545 2006-10-13  Jim Meyering  <jim@meyering.net>
48546
48547         Fix a bug in yesterday's change.
48548         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48549         p->fts_statp->st_dev would be used uninitialized.
48550         Ensures that we always call fts_stat on the very first entry.
48551         Miklos Szeredi reported that find -xdev stopped working.
48552
48553 2006-10-12  Bruno Haible  <bruno@clisp.org>
48554
48555         * gnulib-tool (func_get_automake_snippet): Append an automatically
48556         computed EXTRA_DIST augmentation.
48557         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48558         * modules/alloca-opt (Makefile.am): Likewise.
48559         * modules/allocsa (Makefile.am): Likewise.
48560         * modules/arcfour (Makefile.am): Likewise.
48561         * modules/arctwo (Makefile.am): Likewise.
48562         * modules/argmatch (Makefile.am): Likewise.
48563         * modules/argz (Makefile.am): Likewise.
48564         * modules/atexit (Makefile.am): Likewise.
48565         * modules/backupfile (Makefile.am): Likewise.
48566         * modules/byteswap (Makefile.am): Likewise.
48567         * modules/c-strtod (Makefile.am): Likewise.
48568         * modules/c-strtold (Makefile.am): Likewise.
48569         * modules/calloc (Makefile.am): Likewise.
48570         * modules/canon-host (Makefile.am): Likewise.
48571         * modules/canonicalize (Makefile.am): Likewise.
48572         * modules/chdir-long (Makefile.am): Likewise.
48573         * modules/chdir-safer (Makefile.am): Likewise.
48574         * modules/check-version (Makefile.am): Likewise.
48575         * modules/chown (Makefile.am): Likewise.
48576         * modules/cloexec (Makefile.am): Likewise.
48577         * modules/close-stream (Makefile.am): Likewise.
48578         * modules/closeout (Makefile.am): Likewise.
48579         * modules/crc (Makefile.am): Likewise.
48580         * modules/csharpexec (Makefile.am): Likewise.
48581         * modules/cycle-check (Makefile.am): Likewise.
48582         * modules/des (Makefile.am): Likewise.
48583         * modules/dev-ino (Makefile.am): Likewise.
48584         * modules/dirfd (Makefile.am): Likewise.
48585         * modules/dirname (Makefile.am): Likewise.
48586         * modules/dup2 (Makefile.am): Likewise.
48587         * modules/eealloc (Makefile.am): Likewise.
48588         * modules/error (Makefile.am): Likewise.
48589         * modules/euidaccess (Makefile.am): Likewise.
48590         * modules/exclude (Makefile.am): Likewise.
48591         * modules/exitfail (Makefile.am): Likewise.
48592         * modules/fcntl-safer (Makefile.am): Likewise.
48593         * modules/fcntl (Makefile.am): Likewise.
48594         * modules/file-type (Makefile.am): Likewise.
48595         * modules/fileblocks (Makefile.am): Likewise.
48596         * modules/filemode (Makefile.am): Likewise.
48597         * modules/filenamecat (Makefile.am): Likewise.
48598         * modules/fnmatch (Makefile.am): Likewise.
48599         * modules/fopen-safer (Makefile.am): Likewise.
48600         * modules/fpending (Makefile.am): Likewise.
48601         * modules/fprintftime (Makefile.am): Likewise.
48602         * modules/free (Makefile.am): Likewise.
48603         * modules/fsusage (Makefile.am): Likewise.
48604         * modules/ftruncate (Makefile.am): Likewise.
48605         * modules/fts (Makefile.am): Likewise.
48606         * modules/gc-arcfour (Makefile.am): Likewise.
48607         * modules/gc-des (Makefile.am): Likewise.
48608         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48609         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48610         * modules/gc-md4 (Makefile.am): Likewise.
48611         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48612         * modules/gc-sha1 (Makefile.am): Likewise.
48613         * modules/gc (Makefile.am): Likewise.
48614         * modules/getaddrinfo (Makefile.am): Likewise.
48615         * modules/getcwd (Makefile.am): Likewise.
48616         * modules/getdelim (Makefile.am): Likewise.
48617         * modules/getdomainname (Makefile.am): Likewise.
48618         * modules/getgroups (Makefile.am): Likewise.
48619         * modules/gethostname (Makefile.am): Likewise.
48620         * modules/gethrxtime (Makefile.am): Likewise.
48621         * modules/getline (Makefile.am): Likewise.
48622         * modules/getloadavg (Makefile.am): Likewise.
48623         * modules/getlogin_r (Makefile.am): Likewise.
48624         * modules/getndelim2 (Makefile.am): Likewise.
48625         * modules/getopt (Makefile.am): Likewise.
48626         * modules/getpagesize (Makefile.am): Likewise.
48627         * modules/getpass-gnu (Makefile.am): Likewise.
48628         * modules/getpass (Makefile.am): Likewise.
48629         * modules/getsubopt (Makefile.am): Likewise.
48630         * modules/gettime (Makefile.am): Likewise.
48631         * modules/gettimeofday (Makefile.am): Likewise.
48632         * modules/getugroups (Makefile.am): Likewise.
48633         * modules/getusershell (Makefile.am): Likewise.
48634         * modules/glob (Makefile.am): Likewise.
48635         * modules/group-member (Makefile.am): Likewise.
48636         * modules/hard-locale (Makefile.am): Likewise.
48637         * modules/hash (Makefile.am): Likewise.
48638         * modules/hmac-md5 (Makefile.am): Likewise.
48639         * modules/hmac-sha1 (Makefile.am): Likewise.
48640         * modules/human (Makefile.am): Likewise.
48641         * modules/idcache (Makefile.am): Likewise.
48642         * modules/imaxabs (Makefile.am): Likewise.
48643         * modules/imaxdiv (Makefile.am): Likewise.
48644         * modules/inet_ntop (Makefile.am): Likewise.
48645         * modules/inet_pton (Makefile.am): Likewise.
48646         * modules/intprops (Makefile.am): Likewise.
48647         * modules/inttostr (Makefile.am): Likewise.
48648         * modules/inttypes (Makefile.am): Likewise.
48649         * modules/isapipe (Makefile.am): Likewise.
48650         * modules/javaversion (Makefile.am): Likewise.
48651         * modules/lchmod (Makefile.am): Likewise.
48652         * modules/lchown (Makefile.am): Likewise.
48653         * modules/localcharset (Makefile.am): Likewise.
48654         * modules/long-options (Makefile.am): Likewise.
48655         * modules/lstat (Makefile.am): Likewise.
48656         * modules/malloc (Makefile.am): Likewise.
48657         * modules/mathl (Makefile.am): Likewise.
48658         * modules/mbchar (Makefile.am): Likewise.
48659         * modules/md2 (Makefile.am): Likewise.
48660         * modules/md4 (Makefile.am): Likewise.
48661         * modules/md5 (Makefile.am): Likewise.
48662         * modules/memcasecmp (Makefile.am): Likewise.
48663         * modules/memchr (Makefile.am): Likewise.
48664         * modules/memcmp (Makefile.am): Likewise.
48665         * modules/memcoll (Makefile.am): Likewise.
48666         * modules/memcpy (Makefile.am): Likewise.
48667         * modules/memmem (Makefile.am): Likewise.
48668         * modules/memmove (Makefile.am): Likewise.
48669         * modules/mempcpy (Makefile.am): Likewise.
48670         * modules/memrchr (Makefile.am): Likewise.
48671         * modules/memset (Makefile.am): Likewise.
48672         * modules/memxor (Makefile.am): Likewise.
48673         * modules/mkancesdirs (Makefile.am): Likewise.
48674         * modules/mkdir-p (Makefile.am): Likewise.
48675         * modules/mkdir (Makefile.am): Likewise.
48676         * modules/mkdtemp (Makefile.am): Likewise.
48677         * modules/mkstemp (Makefile.am): Likewise.
48678         * modules/mktime (Makefile.am): Likewise.
48679         * modules/modechange (Makefile.am): Likewise.
48680         * modules/mountlist (Makefile.am): Likewise.
48681         * modules/nanosleep (Makefile.am): Likewise.
48682         * modules/obstack (Makefile.am): Likewise.
48683         * modules/openat (Makefile.am): Likewise.
48684         * modules/pagealign_alloc (Makefile.am): Likewise.
48685         * modules/pathmax (Makefile.am): Likewise.
48686         * modules/physmem (Makefile.am): Likewise.
48687         * modules/poll (Makefile.am): Likewise.
48688         * modules/posixtm (Makefile.am): Likewise.
48689         * modules/posixver (Makefile.am): Likewise.
48690         * modules/putenv (Makefile.am): Likewise.
48691         * modules/quote (Makefile.am): Likewise.
48692         * modules/quotearg (Makefile.am): Likewise.
48693         * modules/raise (Makefile.am): Likewise.
48694         * modules/read-file (Makefile.am): Likewise.
48695         * modules/readline (Makefile.am): Likewise.
48696         * modules/readlink (Makefile.am): Likewise.
48697         * modules/readtokens (Makefile.am): Likewise.
48698         * modules/readutmp (Makefile.am): Likewise.
48699         * modules/realloc (Makefile.am): Likewise.
48700         * modules/regex (Makefile.am): Likewise.
48701         * modules/rename-dest-slash (Makefile.am): Likewise.
48702         * modules/rename (Makefile.am): Likewise.
48703         * modules/rijndael (Makefile.am): Likewise.
48704         * modules/rmdir (Makefile.am): Likewise.
48705         * modules/rpmatch (Makefile.am): Likewise.
48706         * modules/safe-read (Makefile.am): Likewise.
48707         * modules/safe-write (Makefile.am): Likewise.
48708         * modules/same-inode (Makefile.am): Likewise.
48709         * modules/same (Makefile.am): Likewise.
48710         * modules/save-cwd (Makefile.am): Likewise.
48711         * modules/savedir (Makefile.am): Likewise.
48712         * modules/setenv (Makefile.am): Likewise.
48713         * modules/settime (Makefile.am): Likewise.
48714         * modules/sha1 (Makefile.am): Likewise.
48715         * modules/sig2str (Makefile.am): Likewise.
48716         * modules/snprintf (Makefile.am): Likewise.
48717         * modules/stat-macros (Makefile.am): Likewise.
48718         * modules/stat-time (Makefile.am): Likewise.
48719         * modules/stdbool (Makefile.am): Likewise.
48720         * modules/stdint (Makefile.am): Likewise.
48721         * modules/stdlib-safer (Makefile.am): Likewise.
48722         * modules/stpcpy (Makefile.am): Likewise.
48723         * modules/stpncpy (Makefile.am): Likewise.
48724         * modules/strcase (Makefile.am): Likewise.
48725         * modules/strcasestr (Makefile.am): Likewise.
48726         * modules/strchrnul (Makefile.am): Likewise.
48727         * modules/strcspn (Makefile.am): Likewise.
48728         * modules/strdup (Makefile.am): Likewise.
48729         * modules/strerror (Makefile.am): Likewise.
48730         * modules/strftime (Makefile.am): Likewise.
48731         * modules/strndup (Makefile.am): Likewise.
48732         * modules/strnlen (Makefile.am): Likewise.
48733         * modules/strpbrk (Makefile.am): Likewise.
48734         * modules/strsep (Makefile.am): Likewise.
48735         * modules/strstr (Makefile.am): Likewise.
48736         * modules/strtod (Makefile.am): Likewise.
48737         * modules/strtoimax (Makefile.am): Likewise.
48738         * modules/strtok_r (Makefile.am): Likewise.
48739         * modules/strtol (Makefile.am): Likewise.
48740         * modules/strtoll (Makefile.am): Likewise.
48741         * modules/strtoul (Makefile.am): Likewise.
48742         * modules/strtoull (Makefile.am): Likewise.
48743         * modules/strtoumax (Makefile.am): Likewise.
48744         * modules/strverscmp (Makefile.am): Likewise.
48745         * modules/sys_socket (Makefile.am): Likewise.
48746         * modules/sys_stat (Makefile.am): Likewise.
48747         * modules/sysexits (Makefile.am): Likewise.
48748         * modules/time_r (Makefile.am): Likewise.
48749         * modules/timegm (Makefile.am): Likewise.
48750         * modules/timespec (Makefile.am): Likewise.
48751         * modules/tmpfile-safer (Makefile.am): Likewise.
48752         * modules/trim (Makefile.am): Likewise.
48753         * modules/unistd-safer (Makefile.am): Likewise.
48754         * modules/unlinkdir (Makefile.am): Likewise.
48755         * modules/unlocked-io (Makefile.am): Likewise.
48756         * modules/userspec (Makefile.am): Likewise.
48757         * modules/utime (Makefile.am): Likewise.
48758         * modules/utimecmp (Makefile.am): Likewise.
48759         * modules/utimens (Makefile.am): Likewise.
48760         * modules/vasnprintf (Makefile.am): Likewise.
48761         * modules/vasprintf (Makefile.am): Likewise.
48762         * modules/vsnprintf (Makefile.am): Likewise.
48763         * modules/xalloc (Makefile.am): Likewise.
48764         * modules/xgetcwd (Makefile.am): Likewise.
48765         * modules/xnanosleep (Makefile.am): Likewise.
48766         * modules/xreadlink (Makefile.am): Likewise.
48767         * modules/xstrtod (Makefile.am): Likewise.
48768         * modules/xstrtol (Makefile.am): Likewise.
48769         * modules/xstrtold (Makefile.am): Likewise.
48770         * modules/yesno (Makefile.am): Likewise.
48771         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48772
48773 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48774
48775         * modules/error (Makefile.am): Distribute files through
48776         EXTRA_DIST, not lib_SOURCES.
48777
48778 2006-10-12  Eric Blake  <ebb9@byu.net>
48779
48780         * modules/error (Makefile.am): Distribute files in /lib.
48781         * modules/obstack (Makefile.am): Likewise.
48782
48783 2006-10-12  Bruno Haible  <bruno@clisp.org>
48784
48785         * modules/acl (Makefile.am): Distribute all files in lib/ through
48786         EXTRA_DIST.
48787         * modules/arcfour (Makefile.am): Likewise.
48788         * modules/arctwo (Makefile.am): Likewise.
48789         * modules/argmatch (Makefile.am): Likewise.
48790         * modules/argz (Makefile.am): Likewise.
48791         * modules/atexit (Makefile.am): Likewise.
48792         * modules/backupfile (Makefile.am): Likewise.
48793         * modules/c-strtod (Makefile.am): Likewise.
48794         * modules/c-strtold (Makefile.am): Likewise.
48795         * modules/calloc (Makefile.am): Likewise.
48796         * modules/canon-host (Makefile.am): Likewise.
48797         * modules/canonicalize (Makefile.am): Likewise.
48798         * modules/chdir-long (Makefile.am): Likewise.
48799         * modules/chdir-safer (Makefile.am): Likewise.
48800         * modules/check-version (Makefile.am): Likewise.
48801         * modules/chown (Makefile.am): Likewise.
48802         * modules/cloexec (Makefile.am): Likewise.
48803         * modules/close-stream (Makefile.am): Likewise.
48804         * modules/closeout (Makefile.am): Likewise.
48805         * modules/crc (Makefile.am): Likewise.
48806         * modules/cycle-check (Makefile.am): Likewise.
48807         * modules/des (Makefile.am): Likewise.
48808         * modules/dirfd (Makefile.am): Likewise.
48809         * modules/dirname (Makefile.am): Likewise.
48810         * modules/dup2 (Makefile.am): Likewise.
48811         * modules/euidaccess (Makefile.am): Likewise.
48812         * modules/exclude (Makefile.am): Likewise.
48813         * modules/exitfail (Makefile.am): Likewise.
48814         * modules/fcntl-safer (Makefile.am): Likewise.
48815         * modules/file-type (Makefile.am): Likewise.
48816         * modules/fileblocks (Makefile.am): Likewise.
48817         * modules/filemode (Makefile.am): Likewise.
48818         * modules/filenamecat (Makefile.am): Likewise.
48819         * modules/fnmatch (Makefile.am): Likewise.
48820         * modules/fopen-safer (Makefile.am): Likewise.
48821         * modules/fpending (Makefile.am): Likewise.
48822         * modules/fprintftime (Makefile.am): Likewise.
48823         * modules/free (Makefile.am): Likewise.
48824         * modules/fsusage (Makefile.am): Likewise.
48825         * modules/ftruncate (Makefile.am): Likewise.
48826         * modules/fts (Makefile.am): Likewise.
48827         * modules/gc (Makefile.am): Likewise.
48828         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48829         * modules/getaddrinfo (Makefile.am): Likewise.
48830         * modules/getcwd (Makefile.am): Likewise.
48831         * modules/getdelim (Makefile.am): Likewise.
48832         * modules/getdomainname (Makefile.am): Likewise.
48833         * modules/getgroups (Makefile.am): Likewise.
48834         * modules/gethostname (Makefile.am): Likewise.
48835         * modules/gethrxtime (Makefile.am): Likewise.
48836         * modules/getline (Makefile.am): Likewise.
48837         * modules/getloadavg (Makefile.am): Likewise.
48838         * modules/getlogin_r (Makefile.am): Likewise.
48839         * modules/getopt (Makefile.am): Likewise.
48840         * modules/getpass (Makefile.am): Likewise.
48841         * modules/getpass-gnu (Makefile.am): Likewise.
48842         * modules/getsubopt (Makefile.am): Likewise.
48843         * modules/gettime (Makefile.am): Likewise.
48844         * modules/gettimeofday (Makefile.am): Likewise.
48845         * modules/getugroups (Makefile.am): Likewise.
48846         * modules/getusershell (Makefile.am): Likewise.
48847         * modules/glob (Makefile.am): Likewise.
48848         * modules/group-member (Makefile.am): Likewise.
48849         * modules/hard-locale (Makefile.am): Likewise.
48850         * modules/hash (Makefile.am): Likewise.
48851         * modules/hmac-md5 (Makefile.am): Likewise.
48852         * modules/hmac-sha1 (Makefile.am): Likewise.
48853         * modules/human (Makefile.am): Likewise.
48854         * modules/idcache (Makefile.am): Likewise.
48855         * modules/imaxabs (Makefile.am): Likewise.
48856         * modules/imaxdiv (Makefile.am): Likewise.
48857         * modules/inet_ntop (Makefile.am): Likewise.
48858         * modules/inet_pton (Makefile.am): Likewise.
48859         * modules/inttostr (Makefile.am): Likewise.
48860         * modules/isapipe (Makefile.am): Likewise.
48861         * modules/lchown (Makefile.am): Likewise.
48862         * modules/long-options (Makefile.am): Likewise.
48863         * modules/lstat (Makefile.am): Likewise.
48864         * modules/malloc (Makefile.am): Likewise.
48865         * modules/mathl (Makefile.am): Likewise.
48866         * modules/mbchar (Makefile.am): Likewise.
48867         * modules/md2 (Makefile.am): Likewise.
48868         * modules/md4 (Makefile.am): Likewise.
48869         * modules/md5 (Makefile.am): Likewise.
48870         * modules/memcasecmp (Makefile.am): Likewise.
48871         * modules/memchr (Makefile.am): Likewise.
48872         * modules/memcmp (Makefile.am): Likewise.
48873         * modules/memcoll (Makefile.am): Likewise.
48874         * modules/memcpy (Makefile.am): Likewise.
48875         * modules/memmem (Makefile.am): Likewise.
48876         * modules/memmove (Makefile.am): Likewise.
48877         * modules/mempcpy (Makefile.am): Likewise.
48878         * modules/memrchr (Makefile.am): Likewise.
48879         * modules/memset (Makefile.am): Likewise.
48880         * modules/memxor (Makefile.am): Likewise.
48881         * modules/mkancesdirs (Makefile.am): Likewise.
48882         * modules/mkdir (Makefile.am): Likewise.
48883         * modules/mkdir-p (Makefile.am): Likewise.
48884         * modules/mkdtemp (Makefile.am): Likewise.
48885         * modules/mkstemp (Makefile.am): Likewise.
48886         * modules/mktime (Makefile.am): Likewise.
48887         * modules/modechange (Makefile.am): Likewise.
48888         * modules/mountlist (Makefile.am): Likewise.
48889         * modules/nanosleep (Makefile.am): Likewise.
48890         * modules/openat (Makefile.am): Likewise.
48891         * modules/pagealign_alloc (Makefile.am): Likewise.
48892         * modules/physmem (Makefile.am): Likewise.
48893         * modules/poll (Makefile.am): Likewise.
48894         * modules/posixtm (Makefile.am): Likewise.
48895         * modules/posixver (Makefile.am): Likewise.
48896         * modules/putenv (Makefile.am): Likewise.
48897         * modules/quote (Makefile.am): Likewise.
48898         * modules/quotearg (Makefile.am): Likewise.
48899         * modules/raise (Makefile.am): Likewise.
48900         * modules/read-file (Makefile.am): Likewise.
48901         * modules/readline (Makefile.am): Likewise.
48902         * modules/readlink (Makefile.am): Likewise.
48903         * modules/readtokens (Makefile.am): Likewise.
48904         * modules/readutmp (Makefile.am): Likewise.
48905         * modules/realloc (Makefile.am): Likewise.
48906         * modules/regex (Makefile.am): Likewise.
48907         * modules/rename (Makefile.am): Likewise.
48908         * modules/rename-dest-slash (Makefile.am): Likewise.
48909         * modules/rijndael (Makefile.am): Likewise.
48910         * modules/rmdir (Makefile.am): Likewise.
48911         * modules/rpmatch (Makefile.am): Likewise.
48912         * modules/safe-read (Makefile.am): Likewise.
48913         * modules/safe-write (Makefile.am): Likewise.
48914         * modules/same (Makefile.am): Likewise.
48915         * modules/save-cwd (Makefile.am): Likewise.
48916         * modules/savedir (Makefile.am): Likewise.
48917         * modules/setenv (Makefile.am): Likewise.
48918         * modules/settime (Makefile.am): Likewise.
48919         * modules/sha1 (Makefile.am): Likewise.
48920         * modules/sig2str (Makefile.am): Likewise.
48921         * modules/snprintf (Makefile.am): Likewise.
48922         * modules/stdlib-safer (Makefile.am): Likewise.
48923         * modules/stpcpy (Makefile.am): Likewise.
48924         * modules/stpncpy (Makefile.am): Likewise.
48925         * modules/strcase (Makefile.am): Likewise.
48926         * modules/strcasestr (Makefile.am): Likewise.
48927         * modules/strchrnul (Makefile.am): Likewise.
48928         * modules/strcspn (Makefile.am): Likewise.
48929         * modules/strdup (Makefile.am): Likewise.
48930         * modules/strerror (Makefile.am): Likewise.
48931         * modules/strftime (Makefile.am): Likewise.
48932         * modules/strndup (Makefile.am): Likewise.
48933         * modules/strnlen (Makefile.am): Likewise.
48934         * modules/strpbrk (Makefile.am): Likewise.
48935         * modules/strsep (Makefile.am): Likewise.
48936         * modules/strstr (Makefile.am): Likewise.
48937         * modules/strtod (Makefile.am): Likewise.
48938         * modules/strtoimax (Makefile.am): Likewise.
48939         * modules/strtok_r (Makefile.am): Likewise.
48940         * modules/strtol (Makefile.am): Likewise.
48941         * modules/strtoll (Makefile.am): Likewise.
48942         * modules/strtoul (Makefile.am): Likewise.
48943         * modules/strtoull (Makefile.am): Likewise.
48944         * modules/strtoumax (Makefile.am): Likewise.
48945         * modules/strverscmp (Makefile.am): Likewise.
48946         * modules/time_r (Makefile.am): Likewise.
48947         * modules/timegm (Makefile.am): Likewise.
48948         * modules/tmpfile-safer (Makefile.am): Likewise.
48949         * modules/unistd-safer (Makefile.am): Likewise.
48950         * modules/unlinkdir (Makefile.am): Likewise.
48951         * modules/userspec (Makefile.am): Likewise.
48952         * modules/utime (Makefile.am): Likewise.
48953         * modules/utimecmp (Makefile.am): Likewise.
48954         * modules/utimens (Makefile.am): Likewise.
48955         * modules/vasnprintf (Makefile.am): Likewise.
48956         * modules/vasprintf (Makefile.am): Likewise.
48957         * modules/vsnprintf (Makefile.am): Likewise.
48958         * modules/xalloc (Makefile.am): Likewise.
48959         * modules/xgetcwd (Makefile.am): Likewise.
48960         * modules/xnanosleep (Makefile.am): Likewise.
48961         * modules/xreadlink (Makefile.am): Likewise.
48962         * modules/xstrtod (Makefile.am): Likewise.
48963         * modules/xstrtol (Makefile.am): Likewise.
48964         * modules/xstrtold (Makefile.am): Likewise.
48965         * modules/yesno (Makefile.am): Likewise.
48966
48967 2006-10-12  Jim Meyering  <jim@meyering.net>
48968
48969         * m4/getloadavg.m4: Revert the change below.
48970
48971         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48972         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48973         fail with a symlink, which is what coreutils' ./bootstrap now
48974         creates by default.
48975
48976 2006-10-12  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48979         mingw.
48980         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48981         MSVC and mingw explicitly.
48982
48983 2006-10-11  Simon Josefsson  <jas@extundo.com>
48984             Bruno Haible  <bruno@clisp.org>
48985
48986         Add support for multiple gnulib-tool invocations in the scope of a
48987         single configure.ac file.
48988         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48989         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48990         with the same contents as the _LIBADD variable.
48991         (func_emit_initmacro_start, func_emit_initmacro_end,
48992         func_emit_initmacro_done): New functions.
48993         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48994         gl_LIBOBJS and gl_LTLIBOBJS.
48995
48996 2006-10-11  Bruno Haible  <bruno@clisp.org>
48997
48998         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48999         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49000         autoreconf. Instead, invoke autopoint explicitly but move back the
49001         *.m4 files from gnulib.
49002
49003 2006-10-11  Bruno Haible  <bruno@clisp.org>
49004
49005         * gnulib-tool (func_usage): Make module names after --create-testdir
49006         optional.
49007         (func_create_testdir): If no module was specified, use nearly all
49008         modules.
49009
49010 2006-10-12  Jim Meyering  <jim@meyering.net>
49011
49012         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49013         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49014         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49015         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49016         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49017         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49018         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49019         (fts_set_stat_required): New function.
49020         (fts_open): Defer the calls to fts_stat, if possible or requested.
49021         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49022         into fts_stat itself.
49023         (fts_read): Perform any required (deferred) fts_stat call.
49024         (fts_build): Likewise, for the directory we're about to open and read.
49025         In the readdir loop, carefully decide whether each entry will require
49026         an eventual call to fts_stat, using dirent.d_type info if available.
49027         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49028         a command line argument into this function.  Update all callers.
49029         Map a return value of FTS_DOT to FTS_D for a command line argument.
49030         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49031         Thanks to Miklos Szeredi for his tenacity and for the initial
49032         bug report about "find" failing on a FUSE-based file system.
49033
49034         * lib/fts.c (fts_open): Use consistent indentation.
49035
49036 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49037
49038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49039         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49040         reported by Jim Meyering.  All uses of cache variables renamed
49041         to match Autoconf's.
49042         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49043         the other one.
49044
49045         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49046         Fix misspelling in diagnostic.
49047
49048 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49049
49050         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49051         defined.  Problem reported by Matthew Woehlke.
49052
49053         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49054         Add support for Tandem NonStop R series.
49055         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49056         Use new macro.
49057
49058         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49059         (has_trailing_slash): Omit size arg; all callers changed.
49060         Omit 'inline', since it doesn't help performance and we'd
49061         need to configure it.
49062         Don't count //, ///, etc. as having a trailing slash.
49063         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49064         (rpl_rename_dest_slash): On failure, use rename's errno rather
49065         than (in some cases) an incorrect or junk errno.
49066         Simplify code by removing need to compute length; this does
49067         cause it to make two passes instead of one over the file name,
49068         but it's worth it.
49069
49070         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49071         change, since Autoconf's version may no longer be appropriate now
49072         that we are using CVS Autoconf's version.  Add support for Tandem.
49073
49074 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49075             Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49078         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49079         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49080         gl_AC_TYPE_LONG_LONG.
49081
49082         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49083         instead of HAVE_LONG_LONG.
49084         * lib/printf-args.c (printf_fetchargs): Likewise.
49085         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49086         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49088         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49089         gl_AC_TYPE_LONG_LONG.
49090
49091 2006-10-11  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/longlong.m4: Add comments.
49094         * m4/ulonglong.m4: Likewise.
49095
49096 2006-10-10  Bruno Haible  <bruno@clisp.org>
49097
49098         Make it possible to #define stpcpy, strdup to aliases.
49099         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49100         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49101
49102 2006-10-10  Bruno Haible  <bruno@clisp.org>
49103
49104         Make it possible to #define gcd to an alias.
49105         * lib/gcd.c: Include config.h.
49106
49107 2006-10-10  Bruno Haible  <bruno@clisp.org>
49108
49109         Make it possible to #define c_isascii to an alias.
49110         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49111         defined. Undefine the macros before defining them, to avoid gcc
49112         warnings.
49113         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49114         define NO_C_CTYPE_MACROS early.
49115
49116 2006-10-10  Bruno Haible  <bruno@clisp.org>
49117
49118         Make it possible to #define set_program_name to an alias.
49119         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49120         ENABLE_RELOCATABLE early.
49121
49122 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49123
49124         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49125         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49126         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49127         More generally, don't assume that 64-bit signed int is available
49128         if unsigned int is, and vice versa.
49129         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49130         unsigned symbols, not on their signed counterparts.
49131         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49132         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49133         (UINT64_C, UINTMAX_C):
49134         Likewise.
49135         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49136         unsigned counterparts.
49137         (Have_long_long, Unsigned): New macros.
49138         (Int): Renamed from INT.
49139         (strtoimax): Use the new macros.
49140         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49141         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49142         * modules/inttypes (inttypes.h): Substitute
49143         HAVE_UNSIGNED_LONG_LONG_INT.
49144         * modules/stdint (stdint.h): Likewise.
49145         (Files): Add m4/ulonglong.m4.
49146
49147 2006-10-10  Bruno Haible  <bruno@clisp.org>
49148
49149         Fix a gcc -Wshadow warning.
49150         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49151         to 'bucket'.
49152         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49153         gl_linked_indexof_from_to): Likewise.
49154         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49155         Likewise.
49156         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49157         Likewise.
49158         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49159         Reported by Eric Blake.
49160
49161 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49164         for NetBSD.  Problem reported by Bruno Haible.
49165
49166 2006-10-09  Jim Meyering  <jim@meyering.net>
49167
49168         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49169         Patch from Bruno Haible.
49170
49171 2006-10-09  Jim Meyering  <jim@meyering.net>
49172
49173         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49174         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49175         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49176
49177 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49178
49179         Don't include <config.h> twice; this doesn't work in some cases,
49180         e.g., when config.h has "#define intmax_t long long int" and
49181         we include <config.h>, <inttypes.h>, <config.h> in that order.
49182         Problem reported by Matthew Woehlke in:
49183         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49184         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49185         * lib/fts-cycle.c: Don't include config.h.
49186         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49187         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49188         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49189         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49190         inttypes.h.
49191         * lib/xstrtoumax.c: Likewise.
49192         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49193         __strtol and the like, so that this module is more like its siblings.
49194         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49195         Remove; no longer needed now that we assume gnulib inttypes.h.
49196
49197 2006-10-08  Bruno Haible  <bruno@clisp.org>
49198
49199         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49200         option.
49201
49202 2006-10-07  Jim Meyering  <jim@meyering.net>
49203
49204         * modules/inttypes (inttypes.h): Revert what seems to have been
49205         an inadvertent part of today's change: use "|", not "/" in the
49206         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49207
49208 2006-10-07  Bruno Haible  <bruno@clisp.org>
49209
49210         * modules/sublist: New file.
49211
49212 2006-10-07  Bruno Haible  <bruno@clisp.org>
49213
49214         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49215         * modules/argz (argz.h): Likewise.
49216         * modules/arpa_inet (arpa/inet.h): Likewise.
49217         * modules/byteswap (byteswap.h): Likewise.
49218         * modules/configmake (configmake.h): Likewise.
49219         * modules/fcntl (fcntl.h): Likewise.
49220         * modules/fnmatch (fnmatch.h): Likewise.
49221         * modules/getopt (getopt.h): Likewise.
49222         * modules/glob (glob.h): Likewise.
49223         * modules/inttypes (inttypes.h): Likewise.
49224         * modules/netinet_in (netinet/in.h): Likewise.
49225         * modules/poll (poll.h): Likewise.
49226         * modules/stdbool (stdbool.h): Likewise.
49227         * modules/stdint (stdint.h): Likewise.
49228         * modules/sys_select (sys/select.h): Likewise.
49229         * modules/sys_socket (sys/socket.h): Likewise.
49230         * modules/sys_stat (sys/stat.h): Likewise.
49231         * modules/sysexits (sysexits.h): Likewise.
49232         * modules/unistd (unistd.h): Likewise.
49233         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49234         Add a "DO NOT EDIT" comment to the generated file.
49235         (func_import): Likewise for gnulib-comp.m4.
49236
49237 2006-10-07  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/gl_sublist.h: New file.
49240         * lib/gl_sublist.c: New file.
49241
49242 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49245         name (relative to the original working directory) and the file
49246         name component (relative to the temporary working directory).  All
49247         callers changed.
49248         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49249         * lib/mkdir-p.c (make_dir_parents): Likewise.
49250         * lib/mkdir-p.h (make_dir_parents): Likewise.
49251
49252 2006-10-06  Eric Blake  <ebb9@byu.net>
49253
49254         Define several macros for use by the clean-temp module.
49255         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49256         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49258
49259         * lib/clean-temp.h (close_stream_temp): New declaration.
49260         * lib/clean-temp.c (includes): Pull in headers according to what
49261         other modules are in use.
49262         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49263
49264 2006-10-06  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49267         instead of fopen, fwriteerror.
49268
49269 2006-10-06  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49272         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49273         int.
49274         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49275         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49276         Return an error indicator.
49277         Suggested by Eric Blake.
49278
49279 2006-10-06  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49282         Reported by Eric Blake.
49283
49284 2006-10-06  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/closeout (Description): Mention stderr too.
49287
49288 2006-10-06  Bruno Haible  <bruno@clisp.org>
49289         and Paul Eggert  <eggert@cs.ucla.edu>
49290
49291         * lib/closeout.c (close_stdout): Also close stderr.
49292         * lib/closeout.h: Update comment.
49293
49294 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49295
49296         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49297         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49298         * lib/dirchownmod.c: Include lchown.h.
49299         * lib/lchown.c: Don't include files that lchown.h now includes.
49300         Don't declare chown, since lchown.h now does that.
49301         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49302         (lchown): Define to rpl_chown if lchown is declared but
49303         does not exist.  Declare using a prototype if lchown is not
49304         declared.  Add a copyright notice.
49305         * lib/mkstemp.h: Include <unistd.h>.
49306         * lib/openat.c: Include lchown.h.
49307
49308         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49309         we now test for that separately.
49310         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49311         rather than O_NOFOLLOW, when testing whether it's possible to
49312         avoid a race condition reliably.
49313         * lib/savewd.c (savewd_chdir): Likewise.
49314
49315         Remove macros that are no longer needed now that stdint.h is
49316         reliable.
49317         * lib/fsusage.c (UINTMAX_MAX): Remove.
49318         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49319         * lib/utimecmp.c (SIZE_MAX): Remove.
49320
49321         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49322
49323         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49324         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49325         O_NOATIME works.
49326
49327 2006-10-05  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/gl_list.h (gl_sortedlist_search_from_to,
49330         gl_sortedlist_indexof_from_to): New declarations.
49331         (gl_list_implementation): New fields sortedlist_search_from_to,
49332         sortedlist_indexof_from_to.
49333         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49334         inline functions.
49335         * lib/gl_list.c (gl_sortedlist_search_from_to,
49336         gl_sortedlist_indexof_from_to): New functions.
49337         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49338         function.
49339         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49340         (gl_array_sortedlist_search_from_to): New function.
49341         (gl_array_list_implementation): Update.
49342         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49343         function.
49344         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49345         (gl_carray_sortedlist_search_from_to): New function.
49346         (gl_carray_list_implementation): Update.
49347         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49348         gl_linked_sortedlist_indexof_from_to): New functions.
49349         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49350         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49351         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49352         gl_tree_sortedlist_indexof_from_to): New functions.
49353         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49354         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49355         Update.
49356         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49357         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49358         Update.
49359
49360 2006-10-05  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49363         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49364         (struct gl_list_implementation): Add fields search_from_to,
49365         indexof_from_to. Remove fields search, indexof.
49366         (gl_list_search): Use the search_from_to method.
49367         (gl_list_search_from, gl_list_search_from_to): New functions.
49368         (gl_list_indexof): Use the indexof_from_to method.
49369         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49370         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49371         (gl_list_search_from, gl_list_search_from_to): New functions.
49372         (gl_list_indexof): Use the indexof_from_to method.
49373         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49374         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49375         gl_array_indexof. Add start_index, end_index arguments.
49376         (gl_array_search_from_to): Renamed from gl_array_search. Add
49377         start_index, end_index arguments.
49378         (gl_array_remove, gl_array_list_implementation): Update.
49379         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49380         gl_carray_indexof. Add start_index, end_index arguments.
49381         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49382         start_index, end_index arguments.
49383         (gl_carray_remove, gl_carray_list_implementation): Update.
49384         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49385         gl_linked_search. Add start_index, end_index arguments.
49386         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49387         start_index, end_index arguments.
49388         (gl_linked_remove): Update.
49389         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49390         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49391         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49392         field to 'size_t'.
49393         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49394         gl_tree_search. Add start_index, end_index arguments.
49395         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49396         start_index, end_index arguments.
49397         (gl_tree_remove): Update.
49398         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49399         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49400         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49401         function.
49402         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49403         gl_tree_search. Add start_index, end_index arguments.
49404         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49405         start_index, end_index arguments.
49406         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49407         Update.
49408         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49409
49410 2006-10-05  Bruno Haible  <bruno@clisp.org>
49411
49412         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49413
49414         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49415         fwriteerror_temp): New declarations.
49416         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49417         (descriptors): New variable.
49418         (cleanup): First, close the descriptors.
49419         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49420         fclose_temp, fwriteerror_temp): New functions.
49421
49422 2006-10-04  Jim Meyering  <jim@meyering.net>
49423
49424         * lib/fts.c (fts_open): Tiny comment change.
49425
49426 2006-10-04  Bruno Haible  <bruno@clisp.org>
49427
49428         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49429         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49430         gl_LOCK_BODY.
49431         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49432         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49433         gl_LOCK_EARLY_BODY.
49434         (gl_LOCK): Require gl_LOCK_BODY.
49435
49436 2006-10-04  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49439         (gl_oset_search_atleast): New declaration.
49440         (struct gl_oset_implementation): Add field 'search_atleast'.
49441         (gl_oset_search_atleast): New inline function.
49442         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49443         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49444         (gl_array_oset_implementation): Update.
49445         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49446         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49447         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49448
49449 2006-10-04  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49452
49453 2006-10-03  Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49456         from gl_avltreehash_list_implementation.
49457
49458 2006-10-03  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/gl_oset.c (gl_oset_add): Fix return type.
49461
49462 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49463
49464         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49465
49466 2006-10-02  Eric Blake  <ebb9@byu.net>
49467
49468         * modules/strnlen (Depends-on): Add extensions.
49469
49470 2006-10-02  Eric Blake  <ebb9@byu.net>
49471
49472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49473         definition in 2.60+.
49474
49475 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49476
49477         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49478         checks.
49479
49480 2006-10-02  Bruno Haible  <bruno@clisp.org>
49481
49482         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49483         to the AUTOMAKE_OPTIONS.
49484         Reported by Jim Meyering.
49485
49486 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49487
49488         Work around bug in Solaris 10 /proc file system:
49489         /proc/self/fd/NNN/.. isn't the parent directory of
49490         the directory whose file descriptor is NNN.  This needs to
49491         be worked around at run time, not compile time, since a
49492         program might be built on Solaris 8, where things work, and
49493         run on Solaris 10.
49494         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49495         to use the following interface instead:
49496         (OPENAT_BUFFER_SIZE): New macro.
49497         (openat_proc_name): New function.
49498         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49499         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49500         Likewise.
49501         * lib/openat-proc.c: New file.
49502         * modules/openat (Files): Add lib/openat-proc.c.
49503         (Depends-on): Add same-inode, stdbool.
49504         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49505
49506 2006-09-29  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49509         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49510         argument. Set stdout_closed before testing for ferror, not after.
49511         (fwriteerror, fwriteerror_no_ebadf): New functions.
49512
49513 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49514
49515         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49516
49517 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49518
49519         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49520         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49521
49522 2006-09-28  Jim Meyering  <jim@meyering.net>
49523
49524         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49525         Include <unistd.h>.
49526
49527 2006-09-28  Bruno Haible  <bruno@clisp.org>
49528
49529         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49530         * modules/linkedhash-list (Depends-on): Likewise.
49531         * modules/rbtreehash-list (Depends-on): Likewise.
49532
49533 2006-09-28  Bruno Haible  <bruno@clisp.org>
49534
49535         * lib/strndup.h: Simplify the redefinition of strndup.
49536         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49537         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49538
49539 2006-09-28  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49542         * lib/gl_linkedhash_list.c: Likewise.
49543         * lib/gl_rbtreehash_list.c: Likewise.
49544
49545 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49546
49547         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49548         getaddrinfo.
49549
49550         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49551         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49552         it causes <stdio_ext.h> to cause a compile-time error.
49553         Problem reported by Nelson H. F. Beebe.
49554         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49555         of HAVE_DECL___PENDING.
49556
49557         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49558         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49559         declaration.
49560
49561 2006-09-27  Jim Meyering  <jim@meyering.net>
49562
49563         This file could end up with a definition for a function
49564         named __strndup, rather than rpl_strndup on a system with
49565         incomplete weak_alias support.
49566         * lib/strndup.c (strndup): Rename from __strndup.
49567         Remove #defines that used to map __strndup to strndup.
49568         Don't use K&R prototypes.
49569         Remove LIBC-related code, since this file is not sync'd with glibc.
49570         * lib/strndup.h: Revamp, accordingly.
49571         * m4/strndup.m4: Modernize.
49572
49573 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49574
49575         * modules/savewd (Depends-on): Add 'raise'.
49576         * lib/savewd.c: Include <signal.h>, for 'raise'.
49577
49578 2006-09-26  Jim Meyering  <jim@meyering.net>
49579
49580         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49581         when we detect Darwin 8.7.0's acl_get_file bug.
49582         Rearrange to perform the new (below) run-test while $LIBS
49583         contains any acl-related library.  Set USE_ACL at the end.
49584         (gl_ACL_GET_FILE): New function.
49585
49586 2006-09-26  Eric Blake  <ebb9@byu.net>
49587
49588         * lib/verror.c: Include <config.h> unconditionally.
49589
49590 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49591
49592         * modules/clock-time (Maintainer): Add self.
49593         * modules/getlogin_r (Depends-on): Add extensions.
49594
49595 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49596
49597         * modules/clock-time: New module.
49598         * modules/nanosleep (Depends-on): Add clock-time.
49599         * modules/gethrxtime (Depends-on): Likewise.
49600         * modules/gettime (Depends-on): Likewise.
49601         * modules/settime (Depends-on): Likewise.
49602
49603         * modules/fts-lgpl: Depend on openat.
49604         * modules/mkancesdirs: Depend on savewd.
49605         * modules/mkdir-p: Likewise.
49606
49607 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49608
49609         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49610
49611         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49612         `gl_have_arbitrary_file_name_length_limit' to
49613         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49614         actually works between configure runs.
49615
49616 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49617             Bruno Haible  <bruno@clisp.org>
49618
49619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49620
49621 2006-09-25  Jim Meyering  <jim@meyering.net>
49622
49623         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49624         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49625
49626 2006-09-25  Eric Blake  <ebb9@byu.net>
49627
49628         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49629         exec's in 2006-09-18 patch when shuffling fds.
49630
49631 2006-09-25  Bruno Haible  <bruno@clisp.org>
49632
49633         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49634         Reported by Jim Meyering.
49635
49636 2006-09-24  Jim Meyering  <jim@meyering.net>
49637
49638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49639         compare a pointer against a literal "0".  That caused failures with
49640         at least HP-UX's hpcc.
49641
49642 2006-09-22  Simon Josefsson  <jas@extundo.com>
49643
49644         * modules/gc-sha1:
49645         * modules/gc-md4:
49646         * modules/gc-hmac-sha1:
49647         * modules/gc-hmac-md5:
49648         * modules/gc-des:
49649         * modules/gc-arcfour: Distribute more files.
49650
49651 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49652
49653         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49654         (gl_linked_iterator_from_to): Initialize struct completely.
49655         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49656         (gl_tree_iterator_from_to): Likewise
49657         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49658         * lib/gl_array_list.c [lint] (gl_array_iterator)
49659         (gl_array_iterator_from_to): Likewise.
49660         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49661         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49662         (gl_carray_iterator_from_to): Likewise.
49663
49664         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49665         * lib/md4.c (md4_process_block): Remove unused variable.
49666         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49667         parentheses for clarity.
49668
49669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49670
49671         * modules/bison-i18n (Depends-on): Add gettext.
49672
49673 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49674
49675         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49676         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49677         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49678         also add missing comma that caused broken test.
49679         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49680         stdlib.h, for `abort'.
49681         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49682         variables.
49683         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49684         include unistd.h if present, for `rmdir'.
49685         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49686         variables.
49687         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49688         in the process include standard headers for prototypes.
49689         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49690         gets declared on GNU/Linux.
49691         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49692         unistd.h, for `rmdir'.
49693         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49694
49695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49696         always true.
49697         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49698
49699         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49700
49701 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49702
49703         * gnulib-tool (func_version): Create output all at once.  This
49704         may help avoid triggering unnecessary SIGPIPEs, and at any
49705         rate it doesn't hurt.
49706
49707 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49708             Bruno Haible  <bruno@clisp.org>
49709
49710         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49711         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49712         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49713
49714         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49715         (gl_FUNC_VASPRINTF): Invoke it.
49716
49717 2006-09-22  Bruno Haible  <bruno@clisp.org>
49718
49719         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49720         getloadavg.c as first argument.
49721
49722 2006-09-22  Bruno Haible  <bruno@clisp.org>
49723
49724         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49725         at the beginning of the gl_INIT macro.
49726         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49727         gl_GETLOADAVG.
49728
49729 2006-09-22  Bruno Haible  <bruno@clisp.org>
49730
49731         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49732         module.
49733         Suggested by Ralf Wildenhues.
49734
49735 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49736
49737         Import this patch from libc:
49738
49739         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49740
49741         * lib/regex_internal.c (re_string_reconstruct): Handle
49742         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49743         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49744         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49745         re_string_context_at.
49746
49747         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49748         now requires it.
49749         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49750         gl_REGEX now does it for us.
49751         (gl_REGEX): Add test taken from
49752         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49753
49754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49755         Check that large offsets work.  Modernize Autoconf usages.
49756         Prefer "yes" to mean a good thing rather than a bad.
49757         Don't put "#define mkstemp" in config.h, as this might interfere
49758         with standard system headers that "#define mkstemp mkstemp64".
49759
49760         * modules/mkstemp (Depends-on): Add extensions, so that
49761         mkstemp is visible on some platforms.
49762         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49763         (Include): Change to "mkstemp.h" from <stdlib.h>.
49764         (Files): Add mkstemp.h.
49765
49766         * lib/mkstemp.h: New file, since some standard headers
49767         #define mkstemp.
49768         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49769         Include "mkstemp.h".
49770         Make the _LIBC code resemble glibc original more,
49771         e.g., use K&R style.
49772         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49773         (mkstemp): Remove, since mkstemp.h does this for us.
49774         * lib/stdlib--.h: Include mkstemp.h.
49775
49776         Import this patch from libc:
49777
49778         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49779
49780         * lib/tempname.c (__gen_tempname): Change attempts_min
49781         into a macro.  Use preprocessor to decide how to initialize
49782         attempts [Coverity CID 67].
49783
49784 2006-09-20  Bruno Haible  <bruno@clisp.org>
49785
49786         * lib/mkdtemp.c: Import from libc.
49787         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49788                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49789                 attempts_min into a macro.  Use preprocessor to decide how to
49790                 initialize attempts [Coverity CID 67].
49791         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49792                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49793                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49794
49795 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49796
49797         * gnulib-tool (func_exit): New function, to allow to pass the
49798         exit status portably through the trap.  Use everywhere.
49799         (--help, --version): Signal a write error.
49800         (trap): catch SIGPIPE, for write errors.
49801         Exit at the end of the trap, with the correct exit status.
49802
49803 2006-09-19  Karl Berry  <karl@gnu.org>
49804
49805         * doc/gnulib.texi: note about the license texinfo files.
49806
49807 2006-09-19  Eric Blake  <ebb9@byu.net>
49808
49809         * gnulib-tool: Avoid space-tab.
49810
49811 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49812
49813         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49814         that prevented coreutils 6.1 from building.  Problem reported
49815         by Petter Reinholdtsen.
49816
49817 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49818
49819         * gnulib-tool (avoidlist): Fix typo that broke options like
49820         --avoid=lock that are used by coreutils bootstrap.
49821
49822 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49823
49824         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49825         more systematically.
49826
49827 2006-09-18  Jim Meyering  <jim@meyering.net>
49828
49829         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49830
49831 2006-09-18  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49834
49835 2006-09-18  Bruno Haible  <bruno@clisp.org>
49836
49837         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49838         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49839         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49840         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49841         * m4/gettext.m4: Require autoconf >= 2.52.
49842         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49843         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49844         of gl_cv_header_inttypes_h.
49845
49846 2006-09-18  Bruno Haible  <bruno@clisp.org>
49847
49848         * lib/javaversion.c: Include configmake.h.
49849
49850 2006-09-18  Bruno Haible  <bruno@clisp.org>
49851
49852         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49853         avoid that the while loops be executed in a subshell.
49854
49855 2006-09-18  Bruno Haible  <bruno@clisp.org>
49856
49857         * MODULES.html.sh (func_module): Break long lines.
49858         Suggested by Bruce Korb <bkorb@gnu.org>.
49859
49860 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49861
49862         Speed up by a factor of 1.12.
49863         * gnulib-tool (nl): New variable.
49864         (func_import): Rewrite include directive extraction to only read each
49865         directive once.
49866
49867 2006-09-17  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/javaversion (Makefile.am): Remove DEFS setting.
49870         (Depends-on): Add configmake, for PKGDATADIR definition.
49871
49872 2006-09-17  Bruno Haible  <bruno@clisp.org>
49873
49874         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49875
49876 2006-09-17  Bruno Haible  <bruno@clisp.org>
49877
49878         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49879         (func_modules_transitive_closure, func_modules_add_dummy,
49880         func_modules_to_filelist, func_import, func_create_testdir,
49881         func_create_megatestdir, ...): Use it wherever possible.
49882         Suggested by Ralf Wildenhues.
49883
49884 2006-09-16  Karl Berry  <karl@gnu.org>
49885
49886         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49887         to avoid sectioning errors.
49888         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49889         [ifinfo]: blank line after @center-ed titles.
49890         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49891         Spell FSF address consistently with others.
49892         (These changes approved by rms.)
49893
49894 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49895
49896         Speed up by a factor of 1.61.
49897         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49898         already checked module names again.
49899
49900 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49901
49902         Speed up by a factor of 1.13.
49903         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49904         for new_files, and the input to func_add_or_update.
49905
49906 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49907
49908         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49909         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49910
49911 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49912
49913         * modules/mkancesdirs (Depends-on): Add fcntl.
49914         * modules/savewd: New file.
49915         * MODULES.html.sh (File system functions): Add savewd.
49916
49917         * modules/configmake (Makefile.am): Add support for the
49918         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49919
49920 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49921
49922         * m4/savewd.m4: New file.
49923
49924 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49927         (dirchownmod): New arg FD.  All callers changed.
49928         Use FD rather than opening the directory ourself, as opening is
49929         now the caller's responsibility.
49930         * lib/dirchownmod.h: Likewise.
49931         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49932         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49933         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49934         (test_dir): Remove.
49935         (mkancesdirs): Return length of prefix of FILE that has already
49936         been made, or -2 if there is a child doing the work.  Redo
49937         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49938         ".", and treat ".." specially since it might stray back into
49939         already-created areas.  Use a subprocess if necessary.  New arg
49940         WD; all users changed.  MAKE_DIR function should now return 1
49941         if it creates a directory that is not readable.  Return -2 if
49942         a child process is spun off.
49943         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49944         Adjust signature to match code.
49945         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49946         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49947         all users changed.
49948         * lib/savewd.c, lib/savewd.h: New files.
49949
49950 2006-09-15  Jim Meyering  <jim@meyering.net>
49951
49952         * modules/rename-dest-slash: New module.
49953         * MODULES.html.sh (posix_compat): Add it here.
49954
49955         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49956
49957 2006-09-15  Jim Meyering  <jim@meyering.net>
49958
49959         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49960         file.
49961
49962         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49963
49964 2006-09-15  Jim Meyering  <jim@meyering.net>
49965
49966         * lib/rename-dest-slash.c (has_trailing_slash): Use
49967         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49968         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49969         test before testing whether SRC is a directory.
49970         Suggestions from Bruno Haible.
49971
49972         Avoid a warning about an unused variable.
49973         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49974         into the #ifdef block where it's used.
49975
49976         * lib/rename-dest-slash.c: New file.
49977
49978 2006-09-14  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/allocsa.c: Include <config.h> unconditionally.
49981         * lib/asnprintf.c: Likewise.
49982         * lib/asprintf.c: Likewise.
49983         * lib/c-strcasecmp.c: Likewise.
49984         * lib/c-strcasestr.c: Likewise.
49985         * lib/c-strncasecmp.c: Likewise.
49986         * lib/c-strstr.c: Likewise.
49987         * lib/classpath.c: Likewise.
49988         * lib/clean-temp.c: Likewise.
49989         * lib/concatpath.c: Likewise.
49990         * lib/copy-file.c: Likewise.
49991         * lib/csharpcomp.c: Likewise.
49992         * lib/csharpexec.c: Likewise.
49993         * lib/execute.c: Likewise.
49994         * lib/fatal-signal.c: Likewise.
49995         * lib/findprog.c: Likewise.
49996         * lib/fwriteerror.c: Likewise.
49997         * lib/gl_array_list.c: Likewise.
49998         * lib/gl_array_oset.c: Likewise.
49999         * lib/gl_avltree_list.c: Likewise.
50000         * lib/gl_avltree_oset.c: Likewise.
50001         * lib/gl_avltreehash_list.c: Likewise.
50002         * lib/gl_carray_list.c: Likewise.
50003         * lib/gl_linked_list.c: Likewise.
50004         * lib/gl_linkedhash_list.c: Likewise.
50005         * lib/gl_list.c: Likewise.
50006         * lib/gl_oset.c: Likewise.
50007         * lib/gl_rbtree_list.c: Likewise.
50008         * lib/gl_rbtree_oset.c: Likewise.
50009         * lib/gl_rbtreehash_list.c: Likewise.
50010         * lib/imaxabs.c: Likewise.
50011         * lib/imaxdiv.c: Likewise.
50012         * lib/javacomp.c: Likewise.
50013         * lib/javaexec.c: Likewise.
50014         * lib/javaversion.c: Likewise.
50015         * lib/linebreak.c: Likewise.
50016         * lib/localcharset.c: Likewise.
50017         * lib/lock.c: Likewise.
50018         * lib/mbchar.c: Likewise.
50019         * lib/mbswidth.c: Likewise.
50020         * lib/mkdtemp.c: Likewise.
50021         * lib/pipe.c: Likewise.
50022         * lib/printf-args.c: Likewise.
50023         * lib/printf-parse.c: Likewise.
50024         * lib/progname.c: Likewise.
50025         * lib/progreloc.c: Likewise.
50026         * lib/readlink.c: Likewise.
50027         * lib/sh-quote.c: Likewise.
50028         * lib/stpcpy.c: Likewise.
50029         * lib/stpncpy.c: Likewise.
50030         * lib/strcasecmp.c: Likewise.
50031         * lib/strcasestr.c: Likewise.
50032         * lib/strcspn.c: Likewise.
50033         * lib/striconv.c: Likewise.
50034         * lib/strncasecmp.c: Likewise.
50035         * lib/strnlen1.c: Likewise.
50036         * lib/strstr.c: Likewise.
50037         * lib/strtok_r.c: Likewise.
50038         * lib/tls.c: Likewise.
50039         * lib/tmpdir.c: Likewise.
50040         * lib/unicodeio.c: Likewise.
50041         * lib/unsetenv.c: Likewise.
50042         * lib/vasnprintf.c: Likewise.
50043         * lib/vasprintf.c: Likewise.
50044         * lib/wait-process.c: Likewise.
50045         * lib/xallocsa.c: Likewise.
50046         * lib/xsetenv.c: Likewise.
50047         * lib/xstriconv.c: Likewise.
50048
50049 2006-09-13  Simon Josefsson  <jas@extundo.com>
50050
50051         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50052         that internally, suggested by Ralf Wildenhues
50053         <Ralf.Wildenhues@gmx.de>.
50054
50055 2006-09-13  Simon Josefsson  <jas@extundo.com>
50056
50057         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50058         @LIBOBJS@.
50059         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50060
50061 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50064         longer worry about uses that don't define HAVE_CONFIG_H.
50065         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50066         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50067         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50068         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50069         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50070         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50071         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50072         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50073         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50074         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50075         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50076         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50077         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50078         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50079         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50080         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50081         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50082         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50083         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50084         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50085         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50086         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50087         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50088         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50089         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50090         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50091         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50092         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50093         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50094         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50095         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50096         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50097         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50098         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50099         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50100         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50101         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50102         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50103         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50104         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50105         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50106         Likewise.
50107
50108 2006-09-13  Eric Blake  <ebb9@byu.net>
50109
50110         * lib/getopt.c: Fix typo in last commit.
50111
50112 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50113
50114         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50115         dgettext.
50116
50117 2006-09-12  Jim Meyering  <jim@meyering.net>
50118
50119         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50120         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50121         Reported by Nelson H. F. Beebe.
50122
50123 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50124
50125         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50126         program_invocation_name and program_invocation_short_name are
50127         initialized.
50128         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50129         and program_invocation_short_name to argp.h, so they are visible
50130         to user programs.
50131         * lib/argp.h: Likewise
50132
50133 2006-09-10  Bruno Haible  <bruno@clisp.org>
50134
50135         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50136         m4/inttypes_h.m4, m4/uintmax_t.m4.
50137
50138 2006-09-10  Bruno Haible  <bruno@clisp.org>
50139
50140         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50141         gl_AC_TYPE_UINTMAX_T.
50142
50143 2006-09-10  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50146
50147 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50148
50149         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50150         convention.  Text proposed by Bruno Haible.
50151         (struct argp_option): Document the use of N_() wrappers.
50152
50153         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50154         '\v', and translate the two parts separately, instead of feeding
50155         the whole string to gettext.  This allows to exclude
50156         '\v' from the strings visible to the translator by writing doc
50157         strings as N_("..") "\v" N_("..").
50158
50159 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * config/srclist.txt: Undo latest change; the bug was fixed.
50162
50163 2006-09-09  Bruno Haible  <bruno@clisp.org>
50164
50165         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50166         assignments if building a library without libtool.
50167         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50168         in func_emit_lib_Makefile_am.
50169         (func_import): When building a static library libfoo.a, arrange to
50170         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50171         (func_create_testdir): Likewise.
50172         * modules/gc (configure.ac, Makefile.am): If building statically,
50173         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50174         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50175         * modules/striconv (configure.ac, Makefile.am): Likewise.
50176         Based on a suggestion by Ralf Wildenhues.
50177
50178 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50179
50180         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50181         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50182         Also:
50183
50184         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50185         Add year_2050_test to catch glibc bug 2821
50186         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50187
50188         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50189         Prefer #ifdef to #if.
50190
50191         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50192         Return from 'main' instead of calling 'exit'.
50193
50194 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50195
50196         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50197         returned the maximum time_t value rather than (time_t) -1.
50198         Problem originally reported by William Bardwell
50199         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50200
50201         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50202         Moved to here ...
50203         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50204         ... from here.
50205
50206 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50207
50208         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50209         2821 is fixed.
50210
50211 2006-09-08  Jim Meyering  <jim@meyering.net>
50212
50213         Don't make generated files read-only.  That would bother too many
50214         people.  However, do retain the ability to work when targets are
50215         read-only: remove the destination and temporary files before writing
50216         them (when generated via sed or echo), or by using the -f option for
50217         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50218         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50219         * modules/byteswap, modules/configmake, modules/fcntl:
50220         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50221         * modules/localcharset, modules/netinet_in, modules/poll:
50222         * modules/stdbool, modules/stdint, modules/sys_select:
50223         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50224
50225 2006-09-08  Jim Meyering  <jim@meyering.net>
50226
50227         Avoid new build failure on FreeBSD 6.0.
50228         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50229         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50230         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50231
50232 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50233
50234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50235
50236 2006-09-07  Jim Meyering  <jim@meyering.net>
50237
50238         Fix global typo in last change: use chmod u-w, not chmod u-x.
50239         Spotted by Paul Eggert and Bruce Korb.
50240         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50241         * modules/byteswap, modules/configmake, modules/fcntl:
50242         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50243         * modules/localcharset, modules/netinet_in, modules/poll:
50244         * modules/stdbool, modules/stdint, modules/sys_select:
50245         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50246
50247 2006-09-06  Jim Meyering  <jim@meyering.net>
50248
50249         Make generated files be read-only.
50250         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50251         Ensure that each generated file is now read-only.
50252         * modules/argz: Likewise.
50253         * modules/arpa_inet: Likewise.
50254         * modules/byteswap: Likewise.
50255         * modules/configmake: Likewise.
50256         * modules/fcntl: Likewise.
50257         * modules/fnmatch: Likewise.
50258         * modules/getopt: Likewise.
50259         * modules/glob: Likewise.
50260         * modules/inttypes: Likewise.
50261         * modules/netinet_in: Likewise.
50262         * modules/poll: Likewise.
50263         * modules/stdbool: Likewise.
50264         * modules/stdint: Likewise.
50265         * modules/sys_select: Likewise.
50266         * modules/sys_socket: Likewise.
50267         * modules/sys_stat: Likewise.
50268         * modules/sysexits: Likewise.
50269         * modules/localcharset: Same as above, but continue using temporary
50270         file named "t-$@" (why different?) rather than the "$@-t" used
50271         everywhere else.
50272
50273         * modules/sysexits (Makefile.am): Replace literal occurrences
50274         of "sysexit.h" more readable, and more consistent, "$@".
50275
50276 2006-09-06  Bruno Haible  <bruno@clisp.org>
50277
50278         * modules/striconv: New file.
50279         * modules/xstriconv: New file.
50280         * MODULES.html.sh (Internationalization functions): Add striconv,
50281         xstriconv.
50282
50283 2006-09-06  Bruno Haible  <bruno@clisp.org>
50284
50285         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50286         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50287         not using libtool correctly.
50288
50289 2006-09-06  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/striconv.h: New file.
50292         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50293         iconvstring.c.
50294         * lib/xstriconv.h: New file.
50295         * lib/xstriconv.c: New file.
50296
50297 2006-09-06  Bruno Haible  <bruno@clisp.org>
50298
50299         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50300         lib_..._LDFLAGS.
50301
50302 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50303
50304         * lib/argz_.h: Sync from Libtool.
50305
50306         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50307                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50308
50309         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50310
50311 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50312
50313         * modules/trim: New file.
50314
50315 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50316
50317         * lib/trim.h: New file.
50318         * lib/trim.c: New file.
50319
50320 2006-09-05  Bruno Haible  <bruno@clisp.org>
50321
50322         * MODULES.html.sh (String handling): Add trim.
50323
50324 2006-09-04  Karl Berry  <karl@gnu.org>
50325
50326         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50327         until next release.
50328
50329 2006-09-03  Bruno Haible  <bruno@clisp.org>
50330
50331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50332         correctly.
50333
50334 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50335
50336         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50337         not gl_GETLOADAVG.  Omit unneeded semicolons.
50338         Problems reported by Ralf Wildenhues in
50339         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50340         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50341         at the end, which is the usual gnulib style.
50342
50343         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50344         of doing all the work ourselves.
50345         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50346         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50347
50348 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50349
50350         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50351         Problem reported by Ralf Wildenhues in
50352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50353
50354         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50355         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50356
50357 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50360         yesterday's patch by changing test -n to test -z.
50361
50362 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50363
50364         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50365         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50366         the former is now obsolescent.
50367
50368         * modules/chdir-long (Depends-on): Add fcntl.
50369
50370 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50373         obsolescent, and programs should use gnulib instead.
50374         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50375         but with prefixes changed.
50376
50377 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50380         or stdbool.h, because they might not exist while configuring.
50381
50382         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50383         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50384         does that for us.
50385         (O_DIRECTORY): Remove.
50386
50387 2006-08-31  Eric Blake  <ebb9@byu.net>
50388
50389         * gnulib-tool: Don't let emacs change spaces to TAB.
50390
50391 2006-08-31  Bruno Haible  <bruno@clisp.org>
50392
50393         * gnulib-tool: When calling func_import more than once, do it in a
50394         subshell.
50395         Reported by Eric Blake <ebb9@byu.net>.
50396
50397 2006-08-31  Bruno Haible  <bruno@clisp.org>
50398
50399         * gnulib-tool (nl): Remove variable.
50400         (sed_transform_lib_file): Use more robust test for config-h module.
50401         (func_import): Fix typo in 2006-08-25 patch.
50402
50403 2006-08-31  Bruno Haible  <bruno@clisp.org>
50404
50405         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50406         specified, augment Makefile.am variables instead of assigning them.
50407
50408 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50409
50410         Work around a bug in both the Linux and SunOS 64-bit kernels:
50411         nanosleep mishandles sleeps for longer than 2**31 seconds.
50412         Problem reported by Frank v Waveren in
50413         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50415         Check for nanosleep bug.
50416         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50417
50418 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50419
50420         Work around a bug in both the Linux and SunOS 64-bit kernels:
50421         nanosleep mishandles sleeps for longer than 2**31 seconds.
50422         Problem reported by Frank v Waveren in
50423         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50424         * lib/nanosleep.c (BILLION): New constant.
50425         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50426         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50427         implementation.
50428
50429 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         * modules/nanosleep (Depends-on): Add gettime.
50432
50433 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50434         and Simon Josefsson  <jas@extundo.com>
50435         and Oskar Liljeblad  <oskar@osk.mine.nu>
50436
50437         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50438         * gnulib-tool (func_import): New license type 'unmodifiable license
50439         text'.
50440         * modules/fdl: Use it.  Longer description.
50441         * module/gpl, module/lgpl: New files.
50442
50443 2006-08-30  Jim Meyering  <jim@meyering.net>
50444
50445         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50446         shadowing the parameter.
50447
50448 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50449
50450         Sync from Libtool:
50451
50452         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50453
50454         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50455         sharing with gnulib.  Report by Eric Blake.
50456
50457 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * modules/isapipe: New file.
50460         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50461
50462 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         * modules/configmake (Makefile.am): Add a comment, and omit
50465         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50466         by Bruno Haible.
50467
50468 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50469
50470         * m4/isapipe.m4: New file.
50471
50472 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50473
50474         * lib/isapipe.c, lib/isapipe.h: New files.
50475
50476 2006-08-29  Jim Meyering  <jim@meyering.net>
50477
50478         * modules/configmake (Makefile.am): Make configmake.h depend on
50479         Makefile.  Otherwise, a stale configmake.h could hang around.
50480
50481 2006-08-29  Eric Blake  <ebb9@byu.net>
50482
50483         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50484         resolution of upstream bug 3044.
50485
50486 2006-08-29  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/localcharset (Depends-on): Add configmake.
50489         (Makefile.am): Remove setting of LIBDIR through DEFS.
50490
50491 2006-08-29  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50494         defined.
50495
50496 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         * modules/fcntl: New file.
50499         * modules/chdir-safer (Depends-on): Add fcntl.
50500         * modules/fts: Likewise.
50501         * modules/mkdir-p: Likewise.
50502
50503         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50504         This undoes the most recent change, since we're now addressing the
50505         problem in a different way.
50506
50507         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50508         into output, since the output might be called Makefile.am even
50509         if $makefile_name is something different.
50510         (func_import): Use $makefile_am rather than
50511         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50512         empty.
50513
50514         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50515
50516 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50517
50518         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50519         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50520         recent change to stdint.m4, since we're now addressing the problem in a
50521         different way.
50522
50523 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         * m4/fcntl_h.m4: New file.
50526
50527 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         * lib/fcntl_.h: New file.
50530         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50531         the fcntl module.
50532         * lib/dirchownmod.c: Likewise.
50533         * lib/fts.c: Likewise.
50534
50535         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50536         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50537         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50538         just before including <inttypes.h>, to avoid circular inclusion.
50539
50540 2006-08-28  Jim Meyering  <jim@meyering.net>
50541
50542         * doc/visibility.texi: Actually read and correct the grammar of the
50543         sentence affected by yesterday's change.
50544
50545 2006-08-28  Eric Blake  <ebb9@byu.net>
50546
50547         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50548         needs wrapper.
50549
50550 2006-08-28  Eric Blake  <ebb9@byu.net>
50551
50552         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50553
50554 2006-08-28  Eric Blake  <ebb9@byu.net>
50555
50556         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50557
50558 2006-08-28  Bruno Haible  <bruno@clisp.org>
50559
50560         * modules/c-strstr: New file, from GNU gettext.
50561         * MODULES.html.sh (String handling): Add c-strstr.
50562
50563 2006-08-28  Bruno Haible  <bruno@clisp.org>
50564
50565         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50566         macros.
50567         Reported by Eric Blake.
50568
50569 2006-08-28  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50572         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50573         * lib/vasprintf.c: Include errno.h, limits.h.
50574         (EOVERFLOW): New fallback definition.
50575         (vasprintf): Test here whether the string length is > INT_MAX.
50576         * lib/vsnprintf.c: Include errno.h, limits.h.
50577         (EOVERFLOW): New fallback definition.
50578         (vsnprintf): Fix bug when generated string was too long for the buffer.
50579         Test here whether the string length is > INT_MAX.
50580
50581 2006-08-28  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/inttypes_.h (SCNX*): Remove definitions.
50584         Reported by Eric Blake.
50585
50586 2006-08-28  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/c-strstr.h: New file, from GNU gettext.
50589         * lib/c-strstr.c: New file, from GNU gettext.
50590
50591 2006-08-28  Bruno Haible  <bruno@clisp.org>
50592
50593         * gnulib-tool: Reorder some statements.
50594
50595 2006-08-28  Bruno Haible  <bruno@clisp.org>
50596
50597         * gnulib-tool: New option --makefile-name.
50598         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50599         $makefile_name.
50600         (func_import): Write $makefile_name to the cache file, and read it from
50601         there unless explicitly specified. Use $makefile_name as file name
50602         instead of Makefile.am. Adjust the recommendations accordingly.
50603
50604 2006-08-28  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool (func_verify_module): Check against misapplying patch.
50607
50608 2006-08-28  Bruno Haible  <bruno@clisp.org>
50609
50610         * gnulib-tool (func_relativize, func_relconcat): New functions.
50611         Give an error if --local-dir is given with --update.
50612         Remove trailing slashes from $local_gnulib_dir.
50613         (func_import): Store the relativized $local_gnulib_dir in
50614         gnulib-cache.m4, and read it from there if not specified explicitly.
50615
50616 2006-08-28  Bruno Haible  <bruno@clisp.org>
50617
50618         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50619         is the current directory. Respect also $local_gnulib_dir.
50620
50621 2006-08-28  Bruno Haible  <bruno@clisp.org>
50622             Simon Josefsson  <jas@extundo.com>
50623
50624         BeOS portability.
50625         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50626
50627 2006-08-27  Jim Meyering  <jim@meyering.net>
50628
50629         * doc/visibility.texi: Remove duplicate word: "pointer".
50630
50631 2006-08-26  Bruno Haible  <bruno@clisp.org>
50632
50633         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50634         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50635         (Makefile.am): Create inttypes.h from inttypes_.h.
50636         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50637
50638         * modules/imaxabs: New file.
50639
50640         * modules/imaxdiv: New file.
50641
50642 2006-08-26  Bruno Haible  <bruno@clisp.org>
50643
50644         * m4/inttypes.m4: New file.
50645         * m4/_inttypes_h.m4: Remove file.
50646         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50647         PRI_MACROS_BROKEN.
50648         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50649
50650         * m4/imaxabs.m4: New file.
50651
50652         * m4/imaxdiv.m4: New file.
50653
50654 2006-08-26  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/inttypes_.h: New file.
50657         * lib/inttypes.h: Remove file.
50658         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50659
50660         * lib/imaxabs.c: New file.
50661
50662         * lib/imaxdiv.c: New file.
50663
50664 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         New config-h module, so that "make" output needn't be cluttered
50667         by -DHAVE_CONFIG_H.
50668         * MODULES.html.sh (Support for building libraries and executables):
50669         Add config-h.
50670         * modules/config-h: New file.
50671         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50672         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50673         the config-h module is used.
50674
50675         New configmake module, so that "make" output needn't be cluttered
50676         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50677         * MODULES.html.sh (Support for building libraries and executables):
50678         Add configmake.
50679         * modules/configmake: New file.
50680
50681 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * m4/config-h.m4: New file.
50684
50685 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * config/srclist.txt: Add elisp-comp.
50688
50689 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * MODULES.html.sh (Support for building libraries and executables):
50692         Add elisp-comp.
50693         * build-aux/elisp-comp: New file.
50694         * modules/elisp-comp: New file.
50695
50696 2006-08-24  Bruno Haible  <bruno@clisp.org>
50697
50698         * gnulib-tool (func_create_testdir): Use non-default values of
50699         sourcebase and m4base.
50700
50701 2006-08-24  Bruno Haible  <bruno@clisp.org>
50702
50703         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50704         HTML structure.
50705
50706 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50707
50708         * modules/openat (Depends-on): Add lchown.
50709
50710 2006-08-23  Bruno Haible  <bruno@clisp.org>
50711
50712         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50713         of gl_LOCK_EARLY instead of gl_LOCK.
50714
50715 2006-08-23  Bruno Haible  <bruno@clisp.org>
50716
50717         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50718         on OSF/1 to no.
50719         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50720
50721 2006-08-23  Bruno Haible  <bruno@clisp.org>
50722
50723         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50724         as unusable.
50725
50726         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50727         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50728         (gl_LOCK): New macro.
50729
50730 2006-08-22  Simon Josefsson  <jas@extundo.com>
50731
50732         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50733         to md5 module.
50734
50735 2006-08-22  Simon Josefsson  <jas@extundo.com>
50736
50737         * MODULES.html.sh: Add "Support for maintaining and release
50738         projects".
50739
50740         * build-aux/gnupload: New file, from coreutils.
50741
50742 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50743
50744         Avoid the need for AC_LIBSOURCES in m4 macros.
50745         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50746         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50747         * modules/check-version (EXTRA_DIST): Add check-version.h.
50748         * modules/crc (EXTRA_DIST): Add crc.h.
50749         * modules/des (EXTRA_DIST): Add des.h.
50750         * modules/gc (EXTRA_DIST): Add gc.h.
50751         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50752         * modules/getline (EXTRA_DIST): Add getline.h.
50753         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50754         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50755         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50756         * modules/md2 (EXTRA_DIST): Add md2.h.
50757         * modules/md4 (EXTRA_DIST): Add md4.h.
50758         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50759         * modules/read-file (EXTRA_DIST): Add read-file.h.
50760         * modules/readline (EXTRA_DIST): Add readline.h.
50761         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50762         rijndael-api-fst.h.
50763
50764 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50765
50766         * m4/rijndael.m4 (gl_ARCFOUR):
50767         * m4/arctwo.m4 (gl_ARCTWO):
50768         * m4/check-version.m4 (gl_CHECK_VERSION):
50769         * m4/crc.m4 (gl_CRC):
50770         * m4/des.m4 (gl_DES):
50771         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50772         * m4/gc.m4 (gl_GC):
50773         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50774         * m4/getline.m4 (gl_FUNC_GETLINE):
50775         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50776         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50777         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50778         * m4/md2.m4 (gl_MD2):
50779         * m4/md4.m4 (gl_MD4):
50780         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50781         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50782         * m4/readline.m4 (gl_FUNC_READLINE):
50783         * m4/rijndael.m4 (gl_RIJNDAEL):
50784         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50785         to get the necessary .h files and whatnot.
50786
50787 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50788
50789         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50790         gnulib rather than the other way around.
50791         * config/srclistvars.sh (COREUTILS): Remove.
50792
50793 2006-08-22  Jim Meyering  <jim@meyering.net>
50794
50795         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50796
50797         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50798
50799 2006-08-22  Eric Blake  <ebb9@byu.net>
50800
50801         * modules/regexprops-generic: New file.
50802         * MODULES.html.sh (Support for building documentation): List it.
50803
50804 2006-08-22  Eric Blake  <ebb9@byu.net>
50805
50806         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50807         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50808         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50809         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50810
50811 2006-08-22  Bruno Haible  <bruno@clisp.org>
50812
50813         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50814         and lib_LTLIBRARIES like the other lib_* variables.
50815
50816 2006-08-22  Bruno Haible  <bruno@clisp.org>
50817
50818         * build-aux/x-to-1.in: New file, from GNU gettext.
50819
50820 2006-08-22  Bruno Haible  <bruno@clisp.org>
50821
50822         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50823         <utmpx.h> exists.
50824
50825 2006-08-22  Bruno Haible  <bruno@clisp.org>
50826
50827         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50828         <utmpx.h> exists.
50829
50830 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50831
50832         BeOS portability.
50833         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50834         exist.
50835         Problem reported by Bruno Haible.
50836
50837 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50838
50839         Avoid the need for AC_LIBSOURCES in m4 macros.
50840         * modules/acl (EXTRA_DIST): Add acl.h.
50841         * modules/argmatch (Files): Add m4/argmatch.m4.
50842         (configure.ac): Add gl_ARGMATCH.
50843         (EXTRA_DIST): Renamed from lib_SOURCES, for
50844         consistency with the other modules.  Remove argmatch.c.
50845         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50846         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50847         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50848         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50849         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50850         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50851         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50852         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50853         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50854         * modules/closeout (EXTRA_DIST): Add closeout.h.
50855         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50856         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50857         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50858         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50859         dirname.h; remove basename.c and stripslash.c.
50860         * modules/exclude (EXTRA_DIST): Add exclude.h.
50861         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50862         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50863         * modules/file-type (EXTRA_DIST): Add file-type.h.
50864         * modules/filemode (EXTRA_DIST): Add filemode.h.
50865         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50866         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50867         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50868         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50869         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50870         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50871         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50872         * modules/getdate (EXTRA_DIST): Add getdate.c.
50873         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50874         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50875         * modules/getpass (EXTRA_DIST): Add getpass.h.
50876         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50877         * modules/group-member (EXTRA_DIST): Add group-member.h.
50878         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50879         * modules/hash (EXTRA_DIST): Add hash.h.
50880         * modules/human (EXTRA_DIST): Add human.h.
50881         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50882         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50883         * modules/lchown (EXTRA_DIST): Add lchown.h.
50884         * modules/long-options (EXTRA_DIST): Add long-options.h.
50885         * modules/lstat (EXTRA_DIST): Add lstat.h.
50886         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50887         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50888         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50889         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50890         * modules/memxor (EXTRA_DIST): Add memxor.h.
50891         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50892         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50893         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50894         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50895         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50896         * modules/physmem (EXTRA_DIST): Add physmem.h.
50897         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50898         * modules/posixver (EXTRA_DIST): Add posixver.h.
50899         * modules/quote (EXTRA_DIST): Add quote.h.
50900         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50901         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50902         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50903         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50904         regex_internal.h regexec.c.
50905         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50906         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50907         * modules/same (EXTRA_DIST): Add same.h.
50908         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50909         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50910         * modules/savedir (EXTRA_DIST): Add savedir.h.
50911         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50912         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50913         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50914         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50915         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50916         * modules/strdup (EXTRA_DIST): Add strdup.h.
50917         * modules/strftime (EXTRA_DIST): Add strftime.h.
50918         * modules/strndup (EXTRA_DIST): Add strndup.h.
50919         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50920         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50921         * modules/time_r (EXTRA_DIST): Add time_r.h.
50922         * modules/timespec (EXTRA_DIST): Add timespec.h.
50923         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50924         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50925         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50926         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50927         * modules/userspec (EXTRA_DIST): Add userspec.h.
50928         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50929         * modules/utimens (EXTRA_DIST): Add utimens.h.
50930         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50931         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50932         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50933         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50934         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50935         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50936         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50937         * modules/yesno (EXTRA_DIST): Add yesno.h.
50938
50939 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50940
50941         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50942
50943         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50944         * m4/dev-ino.m4, same-inode.m4: Remove.
50945
50946         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50947         * m4/acl.m4 (AC_FUNC_ACL):
50948         * m4/backupfile.m4 (gl_BACKUPFILE):
50949         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50950         * m4/canon-host.m4 (gl_CANON_HOST):
50951         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50952         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50953         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50954         * m4/cloexec.m4 (gl_CLOEXEC):
50955         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50956         * m4/closeout.m4 (gl_CLOSEOUT):
50957         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50958         * m4/dirname.m4 (gl_DIRNAME):
50959         * m4/exclude.m4 (gl_EXCLUDE):
50960         * m4/exitfail.m4 (gl_EXITFAIL):
50961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50962         * m4/file-type.m4 (gl_FILE_TYPE):
50963         * m4/filemode.m4 (gl_FILEMODE):
50964         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50965         * m4/fpending.m4 (gl_FUNC_FPENDING):
50966         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50967         * m4/fts.m4 (gl_FUNC_FTS):
50968         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50969         * m4/getdate.m4 (gl_GETDATE):
50970         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50971         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50972         * m4/getpass.m4 (gl_FUNC_GETPASS):
50973         * m4/gettime.m4 (gl_GETTIME):
50974         * m4/getugroups.m4 (gl_GETUGROUPS):
50975         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50976         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50977         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50978         * m4/hash.m4 (gl_HASH):
50979         * m4/idcache.m4 (gl_IDCACHE):
50980         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50981         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50982         * m4/long-options.m4 (gl_LONG_OPTIONS):
50983         * m4/lstat.m4 (gl_FUNC_LSTAT):
50984         * m4/md5.m4 (gl_MD5):
50985         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50986         * m4/memcoll.m4 (gl_MEMCOLL):
50987         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50988         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50989         * m4/memxor.m4 (gl_MEMXOR):
50990         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50991         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50992         * m4/modechange.m4 (gl_MODECHANGE):
50993         * m4/mountlist.m4 (gl_MOUNTLIST):
50994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50995         * m4/openat.m4 (gl_FUNC_OPENAT):
50996         * m4/pathmax.m4 (gl_PATHMAX):
50997         * m4/physmem.m4 (gl_PHYSMEM):
50998         * m4/posixtm.m4 (gl_POSIXTM):
50999         * m4/posixver.m4 (gl_POSIXVER):
51000         * m4/quote.m4 (gl_QUOTE):
51001         * m4/quotearg.m4 (gl_QUOTEARG):
51002         * m4/readtokens.m4 (gl_READTOKENS):
51003         * m4/readutmp.m4 (gl_READUTMP):
51004         * m4/regex.m4 (gl_REGEX):
51005         * m4/safe-read.m4 (gl_SAFE_READ):
51006         * m4/safe-write.m4 (gl_SAFE_WRITE):
51007         * m4/same.m4 (gl_SAME):
51008         * m4/save-cwd.m4 (gl_SAVE_CWD):
51009         * m4/savedir.m4 (gl_SAVEDIR):
51010         * m4/settime.m4 (gl_SETTIME):
51011         * m4/sha1.m4 (gl_SHA1):
51012         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51013         * m4/stat-macros.m4 (gl_STAT_MACROS):
51014         * m4/stat-time.m4 (gl_STAT_TIME):
51015         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51016         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51017         * m4/strdup.m4 (gl_FUNC_STRDUP):
51018         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51019         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51020         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51021         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51022         * m4/time_r.m4 (gl_TIME_R):
51023         * m4/timespec.m4 (gl_TIMESPEC):
51024         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51025         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51026         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51027         * m4/userspec.m4 (gl_USERSPEC):
51028         * m4/utimecmp.m4 (gl_UTIMECMP):
51029         * m4/utimens.m4 (gl_UTIMENS):
51030         * m4/xalloc.m4 (gl_XALLOC):
51031         * m4/xgetcwd.m4 (gl_XGETCWD):
51032         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51033         * m4/xreadlink.m4 (gl_XREADLINK):
51034         * m4/xstrtod.m4 (gl_XSTRTOD):
51035         * m4/yesno.m4 (gl_YESNO):
51036         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51037         to get the necessary .h files and whatnot.
51038
51039 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51040             Bruno Haible  <bruno@clisp.org>
51041
51042         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51043         /bin/sh understanding of '!' conditional negation.
51044
51045 2006-08-21  Jim Meyering  <jim@meyering.net>
51046
51047         * modules/openat (Depends-on): Really alphabetize.
51048
51049         * modules/acl (Depends-on): Add error and quote.
51050
51051         * check-module (find_included_lib_files): Add at-func.c to the
51052         ok-to-include-more-than-once white list.
51053
51054         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51055
51056 2006-08-21  Bruno Haible  <bruno@clisp.org>
51057
51058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51059         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51060         Reported by Martin Lambers <marlam@marlam.de>.
51061
51062 2006-08-21  Bruno Haible  <bruno@clisp.org>
51063
51064         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51065         specify an installation location, don't emit a noinst_LIBRARIES or
51066         noinst_LTLIBRARIES assignment.
51067
51068 2006-08-21  Bruno Haible  <bruno@clisp.org>
51069
51070         BeOS portability.
51071         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51072         BeOS has mbrtowc() but no <wctype.h>.
51073
51074 2006-08-21  Bruno Haible  <bruno@clisp.org>
51075
51076         BeOS portability.
51077         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51078         exist.
51079
51080 2006-08-21  Bruno Haible  <bruno@clisp.org>
51081
51082         BeOS portability.
51083         * lib/mbchar.h: Include <wctype.h> only if it exists.
51084
51085 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51086
51087         Remove files that are no longer needed by their respective modules.
51088         * m4/obstack.m4: Remove.
51089         * m4/strerror_r.m4: Remove.
51090         * m4/uint32_t.m4: Remove.
51091         * m4/uintptr_t.m4: Remove.
51092         * m4/ullong_max.m4: Remove.
51093         * m4/xstrtoimax.m4: Remove.
51094         * m4/xstrtoumax.m4: Remove.
51095
51096         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51097         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51098         dependencies now capture this.
51099
51100         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51101         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51102         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51103         * m4/human.m4 (gl_HUMAN): Likewise.
51104         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51105         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51106
51107         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51108
51109         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51110         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51111         stdint.
51112         * m4/human.m4 (gl_HUMAN): Likewise.
51113         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51114         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51115         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51116         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51117         * m4/xstrtol (gl_XSTRTOL): Likewise.
51118
51119         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51120         AC_TYPE_LONG_LONG_INT.
51121         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51122         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51123         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51124         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51125
51126         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51127         on stdbool.
51128
51129         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51130         (gl_PREREQ_XSTRTOUL): Remove.
51131
51132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51133
51134         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51135         mode.
51136
51137 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51138
51139         Add and change modules to make it easier for coreutils to use
51140         gnulib-tool.
51141         * modules/backupfile (Files): Remove m4/d-ino.m4.
51142         (Depends-on): Add d-ino.
51143         * modules/cycle-check (Depends-on): Add stdint.
51144         (lib_SOURCES): Add cycle-check.h.
51145         * modules/d-ino: New module.
51146         * modules/d-type: New module.
51147         * modules/error (Files): Remove m4/strerror_r.m4.
51148         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51149         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51150         m4/inttypes_h.m4, m4/uintmax_t.m4.
51151         (Depends-on): Add stdint.
51152         (lib_SOURCES): Add fsusage.h.
51153         * modules/getcwd (Files): Remove d-ino.m4.
51154         (Depends-on): Add d-ino.
51155         * modules/getndelim2 (Depends-on): Add stdint.
51156         * modules/glob (Files): Remove m4/d-type.m4.
51157         (Depends-on): Add d-type.
51158         * modules/host-os: New module.
51159         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51160         m4/inttypes_h.m4, m4/uintmax_t.m4.
51161         * Depends-on: Add stdint.
51162         (lib_SOURCES): Add human.h.
51163         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51164         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51165         m4/uintmax_t.m4, m4/ulonglong.m4.
51166         (Depends-on): Add stdint.
51167         (EXTRA_DIST): Add inttostr.h.
51168         * modules/lchmod: New module.
51169         * modules/link-follow: New module.
51170         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51171         (Depends-on): Add lchmod.
51172         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51173         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51174         (Depends-on): Add stdint.
51175         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51176         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51177         (Depends-on): Add stdint.
51178         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51179         * modules/perl: New module.
51180         * modules/regex (Depends-on): Add stdint.
51181         * modules/rmdir-errno: New module.
51182         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51183         m4/intmax_t.m4.
51184         (Depends-on): Add stdint.
51185         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51186         m4/uintmax_t.m4.
51187         (Depends-on): Add stdint.
51188         * modules/unlink-busy: New module.
51189         * modules/utimecmp (Depends-on): Add stdint.
51190         * modules/uptime: New module.
51191         * modules/winsz-ioctl: New module.
51192         * modules/winsz-termios: New module.
51193         * modules/xnanosleep (Depends-on): Add nanosleep.
51194         * modules/ullong_max: Remove.
51195         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51196         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51197         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51198         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51199         (Depends-on): Add inttypes.
51200         (lib_SOURCES): Add xstrtol.h.
51201         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51202         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51203         * MODULES.html.sh: Move 'assert' into the assert section.
51204         Move 'dummy' into the linking section.
51205         Remove ullong_max.
51206         Add section for compatibility checks for POSIX:2001 functions,
51207         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51208         winsz-ioctl, and winsz-termios into it.
51209         Add lchmod.
51210         Add top-level Misc section and put host-os, perl, and uptime
51211         into it.
51212
51213 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51216         now assume the stdint module.  Do not include inttypes.h.
51217         * lib/fsusage.h: Likewise.
51218         * lib/getndelim2.c: Likewise.
51219         * lib/human.h: Likewise.
51220         * lib/inttostr.h: Likewise.
51221         * lib/obstack.c: Likewise.
51222         * lib/regex_internal.h: Likewise.
51223         * lib/tempname.c: Likewise.
51224         * lib/utimecmp.c: Likewise.
51225         * lib/xstrtol.h: Likewise.
51226
51227         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51228
51229         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51230         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51231         * lib/xtime.h: Likewise.
51232
51233 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51234
51235         * modules/openat (Files): Add lib/fchmodat.c.
51236         Fixes problem reported by Jay Youngman.
51237
51238 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51239
51240         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51241         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51242
51243 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51244             Bruno Haible  <bruno@clisp.org>
51245
51246         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51247         and is a script that invokes bison. Tighten the code. Add comments.
51248
51249 2006-08-18  Jim Meyering  <jim@meyering.net>
51250
51251         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51252         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51253         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51254         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51255
51256 2006-08-18  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/bison-i18n: New file.
51259         * MODULES.html.sh (Internationalization functions): Add it.
51260
51261 2006-08-18  Bruno Haible  <bruno@clisp.org>
51262
51263         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51264         sys/statvfs.h. When getmntinfo was found, check its declaration and
51265         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51266
51267 2006-08-18  Bruno Haible  <bruno@clisp.org>
51268
51269         * m4/bison-i18n.m4: New file, from bison.
51270
51271 2006-08-18  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51274         (ME_DUMMY): Treat "kernfs" as a dummy.
51275         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51276
51277 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51278
51279         Update from coreutils.
51280
51281         2006-08-15  Jim Meyering  <jim@meyering.net>
51282
51283         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51284
51285         2006-01-17  Jim Meyering  <jim@meyering.net>
51286
51287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51288
51289         2006-01-11  Jim Meyering  <jim@meyering.net>
51290
51291         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51292         Check for the lchmod function.
51293
51294 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51295
51296         Update from coreutils.
51297
51298         * lib/__fpending.h: Add copyright notice.
51299         * lib/fprintftime.h: Likewise.
51300         * lib/savedir.c: Use (C) in copyright notice.
51301         * lib/savedir.h: Likewise.
51302
51303         2006-08-15  Jim Meyering  <jim@meyering.net>
51304
51305         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51306         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51307         in support of the EXPECTED_ERRNO macro.
51308         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51309         definitions.  Instead, define the appropriate symbols and include
51310         "at-func.c".
51311         * lib/mkdirat.c (mkdirat): Likewise.
51312         * lib/fchmodat.c (fchmodat): Likewise.
51313         (ENOSYS): Remove definition.
51314         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51315         it.  Don't include "unistd--.h" -- it wasn't ever used.
51316
51317         2006-01-17  Jim Meyering  <jim@meyering.net>
51318
51319         Rewrite fts.c not to change the current working directory,
51320         by using openat, fstatat, fdopendir, etc..
51321
51322         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51323         (HAVE_OPENAT_SUPPORT): Define.
51324         [_LIBC] (fchdir): Don't undef or define; no longer used.
51325         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51326         Now, this `function' always succeeds, and consumes its file descriptor
51327         parameter -- so callers must not close such FDs.  Update callers.
51328         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51329         (diropen): Add parameter, SP.  Adjust all callers.
51330         Implement using diropen_fd, rather than open.
51331         (fts_open): Initialize new member, fts_cwd_fd.
51332         Remove fts_rft-setting code.
51333         (fts_close): Close fts_cwd_fd, if necessary.
51334         (__opendir2): Define in terms of opendir or opendirat,
51335         depending on whether the FST_NOCHDIR flag is set.
51336         (fts_build): Since fts_safe_changedir consumes its FD, and since
51337         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51338         and close the dup'd file descriptor upon failure.
51339         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51340         (fts_safe_changedir): Tweak semantics to reflect that this function
51341         now calls cwd_advance_fd and hence consumes its FD argument.
51342         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51343         [struct FTS] (fts_rft): Remove now-unused member.
51344         [struct FTS] (fts_cycle.state): Improve comment.
51345
51346         * lib/openat.c (openat_needs_fchdir): New function.
51347         * lib/openat.h (openat_needs_fchdir): Declare it.
51348
51349 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51350
51351         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51352         Problem and fix reported by Pádraig Brady in
51353         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51354
51355 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51356
51357         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51358
51359 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51360
51361         * lib/memcoll.c (memcoll): Optimize for the common case where the
51362         arguments are bytewise equal.
51363
51364 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51365
51366         * doc/regexprops-generic.texi: Add a copyright notice.
51367
51368 2006-08-15  Bruno Haible  <bruno@clisp.org>
51369
51370         * modules/tmpdir (License): Change to LGPL.
51371
51372 2006-08-15  Bruno Haible  <bruno@clisp.org>
51373
51374         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51375         module.
51376
51377 2006-08-14  Simon Josefsson  <jas@extundo.com>
51378
51379         * config/srclist.txt: Add gnupload.
51380
51381 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         Change copyright notice from LGPL 2 to GPL 2, since that's the
51384         standard form used in the gnulib repository.
51385         * tests/test-lock.c: Likewise.
51386         * tests/test-stdint.c: Likewise.
51387         * tests/test-tls.c: Likewise.
51388
51389         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51390         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51391         Add copyright notice.
51392
51393         * check-module: Add copyright notice.  Output a copyright
51394         notice if "--version" is specified.
51395         * modules/COPYING: New file.
51396         * tests/test-getaddrinfo.c: Add copyright notice.
51397         * tests/test-verify.c: Likewise.
51398
51399 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         Change copyright notice from LGPL 2 to GPL 2, since that's the
51402         standard form used in the gnulib repository.
51403         * lib/lock.c: LGPL -> GPL.
51404         * lib/lock.h: Likewise.
51405         * lib/strnlen1.c: Likewise.
51406         * lib/strnlen1.h: Likewise.
51407         * lib/tls.c: Likewise.
51408         * lib/tls.h: Likewise.
51409         * lib/tmpdir.c: Likewise.
51410
51411         * lib/TODO: Remove; this belongs only in coreutils.
51412
51413 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         Add copyright notices to long-enough files that lack them, since
51416         otherwise the files aren't clearly free.  Use the same notice that
51417         getdate.texi already uses.
51418         * doc/alloca-opt.texi: Add copyright notice.
51419         * doc/alloca.texi: Likewise.
51420         * doc/ctime.texi: Likewise.
51421         * doc/functions.texi: Likewise.
51422         * doc/gcd.texi: Likewise.
51423         * doc/gnulib-tool.texi: Likewise.
51424         * doc/inet_ntoa.texi: Likewise.
51425         * doc/visibility.texi: Likewise.
51426
51427         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51428         * doc/quote.texi: Add copyright notice.
51429
51430         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51431         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51432         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51433         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51434         is now obsolete, and give a pointer to the Sun list.
51435         Add copyright notice.
51436
51437 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         * config/srclistvars.sh: Add copyright notice.
51440
51441 2006-08-14  Eric Blake  <ebb9@byu.net>
51442
51443         Import the following change from libc:
51444
51445         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51446
51447         Upstream bug 2997.
51448         * lib/misc/error.c: Add space between program name and message if file
51449         name is missing.
51450
51451 2006-08-12  Karl Berry  <karl@gnu.org>
51452
51453         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51454         remove, these originate in gnulib now.
51455
51456 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51457
51458         * doc/Makefile (standards.info standards.html standards.dvi):
51459         Also depend on make-stds.texi.
51460
51461 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51464         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51465
51466         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51467         in wchar_t.  Problem reported by Eric Blake.
51468
51469         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51470         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51471         Also, help the compiler to keep LEN in a register.
51472
51473 2006-08-11  Eric Blake  <ebb9@byu.net>
51474
51475         * users.txt: Sort.  Add tar.
51476
51477 2006-08-11  Bruno Haible  <bruno@clisp.org>
51478
51479         * users.txt: New file.
51480
51481 2006-08-11  Bruno Haible  <bruno@clisp.org>
51482
51483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51484         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51485
51486 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51487
51488         * modules/snprintf (Depends-on): Remove minmax.
51489         (Maintainer): Add self and Bruno.
51490
51491 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51494         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51495         (EOVERFLOW): Define if the system does not.
51496         Do not include "minmax.h"; it wasn't used.
51497         (snprintf): Don't assume size_t promotes to an unsigned type.
51498         Fix bug when generated string was too long for the buffer: the
51499         buffer's contents are supposed to be the initial prefix of the
51500         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51501         exceeds INT_MAX; do the check ourselves.
51502
51503         Import the following changes from libc:
51504
51505         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51506
51507         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51508         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51509         set wc to the byte which couldn't be converted.
51510         (re_string_reconstruct): Don't clear valid_raw_len before calling
51511         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51512         tip_context using re_string_context_at.
51513
51514         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51515
51516         * lib/posix/regex.h: g++ still cannot handled [restrict].
51517
51518         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51519
51520         * lib/posix/regex.h: Remove special handling for VMS.
51521
51522 2006-08-10  Jim Meyering  <jim@meyering.net>
51523
51524         * modules/same-inode: New module.
51525         * modules/dev-ino: New module.
51526         * modules/cycle-check: Depend on these modules, rather than simply
51527         including their .h files.
51528         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51529         required via m4/cycle-check.m4.
51530         * modules/same: Depend on new same-inode module, rather than
51531         including same-inode.h.
51532         * modules/chdir-safer: New file.
51533
51534         * modules/chown (Depends-on): Add stat-macros.
51535
51536 2006-08-10  Jim Meyering  <jim@meyering.net>
51537
51538         * m4/cycle-check.m4: New file.
51539         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51540         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51541
51542 2006-08-10  Eric Blake  <ebb9@byu.net>
51543
51544         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51545         in from original proposal.
51546
51547 2006-08-10  Eric Blake  <ebb9@byu.net>
51548         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51549
51550         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51551         namespace.
51552
51553 2006-08-10  Bruno Haible  <bruno@clisp.org>
51554
51555         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51556         as well.
51557
51558 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51559
51560         Sync from coreutils.
51561
51562         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51563
51564         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51565         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51566
51567 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         * modules/restrict: Remove; no longer needed now that we assume
51570         Autoconf 2.59 or later.
51571         * MODULES.html.sh: Remove 'restrict'.
51572         * modules/argp (Depends-on): Remove 'restrict'.
51573         * modules/base64 (Depends-on): Likewise.
51574         * modules/gc (Depends-on): Likewise.
51575         * modules/getaddrinfo (Depends-on): Likewise.
51576         * modules/glob (Depends-on): Likewise.
51577         * modules/inet_ntop (Depends-on): Likewise.
51578         * modules/inet_pton (Depends-on): Likewise.
51579         * modules/memxor (Depends-on): Likewise.
51580         * modules/regex (Depends-on): Likewise.
51581         * modules/strtok_r (Depends-on): Likewise.
51582         * modules/time_r (Depends-on): Likewise.
51583
51584 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51585
51586         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51587         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51588         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51589         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51590         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51591         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51592         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51593         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51594
51595         Merge from coreutils.
51596         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51597         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51598         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51599         * m4/time_r.m4 (gl_TIME_R): Likewise.
51600
51601 2006-08-09  Karl Berry  <karl@gnu.org>
51602
51603         * config/srclist.txt: no more gettext-tools, per Bruno.
51604
51605 2006-08-08  Eric Blake  <ebb9@byu.net>
51606
51607         * modules/verror: New module.
51608         * MODULES.html.sh: Document it.
51609
51610 2006-08-08  Eric Blake  <ebb9@byu.net>
51611
51612         * lib/verror.h, lib/verror.c: New files.
51613
51614 2006-08-08  Eric Blake  <ebb9@byu.net>
51615
51616         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51617         verror_at_line output complies with GNU Coding Standards even when
51618         file is NULL.
51619
51620 2006-08-07  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51623         versions of AIX.
51624         Reported by Ralf Wildenhues.
51625
51626 2006-08-07  Bruno Haible  <bruno@clisp.org>
51627
51628         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51629         in an AC_DEFUN. Needed so that the autoconf snippets can use
51630         AC_REQUIRE.
51631
51632 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51633
51634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51635         Initialize pkgdata_DATA.
51636         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51637         overriding it.
51638
51639 2006-08-06  Eric Blake  <ebb9@byu.net>
51640
51641         * lib/error.h: Fold in some upstream changes from glibc.
51642         * lib/error.c: Likewise.
51643
51644 2006-08-04  Bruno Haible  <bruno@clisp.org>
51645
51646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51647         Make the mostlyclean-local rule depend on mostlyclean-generic.
51648         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51649
51650 2006-07-31  Bruno Haible  <bruno@clisp.org>
51651
51652         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51653         <stdlib.h>, <string.h>.
51654
51655 2006-07-30  Bruno Haible  <bruno@clisp.org>
51656
51657         * modules/readlink (License): Change to LGPL.
51658
51659 2006-07-30  Bruno Haible  <bruno@clisp.org>
51660
51661         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51662         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51663         set PKGDATADIR to point to it.
51664
51665 2006-07-30  Bruno Haible  <bruno@clisp.org>
51666
51667         * modules/csharpexec (configure.ac): Comment out macro invocation.
51668         * modules/javaexec (configure.ac): Likewise.
51669         * modules/javacomp-script (configure.ac): Likewise.
51670
51671         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51672
51673 2006-07-30  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51676         linked-list.
51677
51678 2006-07-30  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51681
51682 2006-07-30  Bruno Haible  <bruno@clisp.org>
51683
51684         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51685         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51686         get removed.
51687
51688 2006-07-29  Bruno Haible  <bruno@clisp.org>
51689
51690         Make it possible for gnulib-tool to work with locally modified or
51691         augmented gnulib repositories.
51692         * gnulib-tool (func_usage): Document --local-dir option.
51693         (local_gnulib_dir): New variable.
51694         Handle --local-dir option.
51695         (func_lookup_file): New function.
51696         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51697         (func_get_description, func_get_filelist, func_get_description,
51698         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51699         func_get_automake_snippet, func_get_include_directive,
51700         func_get_license, func_get_maintainer): Use func_lookup_file.
51701         (func_import, func_create_testdir): Use func_lookup_file.
51702
51703 2006-07-29  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/setenv (Depends-on): Add unistd.
51706
51707 2006-07-29  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51710
51711 2006-07-29  Bruno Haible  <bruno@clisp.org>
51712
51713         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51714
51715 2006-07-29  Bruno Haible  <bruno@clisp.org>
51716
51717         * gnulib-tool (import, update): If there is no Makefile.am, look at
51718         aclocal.m4, instead of bailing out.
51719
51720 2006-07-29  Bruno Haible  <bruno@clisp.org>
51721
51722         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51723         Categorize the options by when they are useful.
51724
51725 2006-07-29  Bruno Haible  <bruno@clisp.org>
51726
51727         * gnulib-tool (func_usage): Document option --no-libtool.
51728         Handle option --no-libtool.
51729         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51730         for changed semantics of $libtool variable.
51731         (func_import): Likewise. If libtool is not used, show this through
51732         an option --no-libtool.
51733         (func_create_testdir): Update.
51734
51735 2006-07-29  Bruno Haible  <bruno@clisp.org>
51736
51737         * gnulib-tool (func_import): Extend error message about missing
51738         --doc-base.
51739
51740 2006-07-29  Bruno Haible  <bruno@clisp.org>
51741
51742         * gnulib-tool (func_import): Don't create the $docbase directory if
51743         there is no file to store there.
51744
51745 2006-07-29  Bruno Haible  <bruno@clisp.org>
51746
51747         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51748         relevant, look for configure.ac there, not in the current directory.
51749         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51750
51751 2006-07-29  Bruno Haible  <bruno@clisp.org>
51752
51753         * gnulib-tool (SORT): New variable.
51754         (func_usage): Undocument --assume-autoconf option.
51755         Remove --assume-autoconf option handling.
51756         (autoconf_minversion): Determine from the contents of configure.ac.
51757         (func_import): Remove autoconf_minversion handling.
51758         Suggested by Eric Blake.
51759
51760 2006-07-29  Bruno Haible  <bruno@clisp.org>
51761
51762         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51763
51764 2006-07-29  Bruno Haible  <bruno@clisp.org>
51765
51766         * config/srclist.txt (*setenv.[ch]): Remove rules.
51767
51768 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51769
51770         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51771
51772 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51773
51774         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51775         arpa/inet.h.
51776
51777 2006-07-28  Simon Josefsson  <jas@extundo.com>
51778
51779         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51780         * modules/inet_pton (Depends-on): Likewise.
51781
51782 2006-07-28  Simon Josefsson  <jas@extundo.com>
51783
51784         * m4/netinet_in_h.m4: New file.
51785
51786 2006-07-28  Simon Josefsson  <jas@extundo.com>
51787
51788         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51789         #include's.
51790
51791 2006-07-28  Simon Josefsson  <jas@extundo.com>
51792
51793         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51794         #include's.
51795
51796 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51797
51798         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51799         setgid on directories only if they set these bits.
51800         * lib/modechange.h: Remove obsolete comment about masks.
51801
51802 2006-07-28  Eric Blake  <ebb9@byu.net>
51803
51804         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51805         macro expansion.
51806
51807 2006-07-28  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51810
51811 2006-07-28  Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51814
51815 2006-07-28  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51818         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51819         Define fallbacks.
51820         Avoids link error on FreeBSD 4.x.
51821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51822
51823         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51824         encoding.
51825         * lib/mbswidth.c (iswcntrl): Likewise.
51826
51827 2006-07-27  Bruno Haible  <bruno@clisp.org>
51828
51829         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51830         test.
51831
51832 2006-07-27  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51835         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51836         defined.
51837
51838 2006-07-26  Eric Blake  <ebb9@byu.net>
51839
51840         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51841
51842 2006-07-26  Eric Blake  <ebb9@byu.net>
51843
51844         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51845         like mingw that lack mkstemp.
51846         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51847         avoid compilation warning on mingw.
51848
51849 2006-07-26  Bruno Haible  <bruno@clisp.org>
51850
51851         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51852         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51853         INT_FAST*_MIN, INTPTR_MIN.
51854
51855 2006-07-25  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/version-etc (Depends-on): Add stdarg.
51858
51859 2006-07-25  Bruno Haible  <bruno@clisp.org>
51860
51861         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51862         complex commands.
51863
51864 2006-07-25  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51867         defined in <stdarg.h> or config.h.
51868
51869 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51870
51871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51872         (gl_STDIO_SAFER): Remove.
51873
51874 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         * MODULES.html.sh (File stream based Input/Output):
51877         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51878         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51879         * modules/fopen-safer, modules/tmpfile-safer: New files.
51880         * modules/stdio-safer: Remove.
51881
51882 2006-07-24  Bruno Haible  <bruno@clisp.org>
51883
51884         * modules/tmpdir: New file.
51885         * MODULES.html.sh (File system functions): Add it.
51886
51887 2006-07-24  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51890         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51891
51892 2006-07-24  Bruno Haible  <bruno@clisp.org>
51893
51894         * modules/clean-temp: New file.
51895
51896 2006-07-24  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/tmpdir.m4: New file, from GNU gettext.
51899
51900 2006-07-24  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/tmpdir.h: New file, from GNU gettext.
51903         * lib/tmpdir.c: New file, from GNU gettext.
51904
51905 2006-07-24  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/clean-temp.h: New file, from GNU gettext.
51908         * lib/clean-temp.c: New file, from GNU gettext.
51909
51910 2006-07-23  Eric Blake  <ebb9@byu.net>
51911
51912         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51913         (Depends-on): Add binary-io.
51914
51915 2006-07-23  Eric Blake  <ebb9@byu.net>
51916
51917         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51918
51919 2006-07-23  Eric Blake  <ebb9@byu.net>
51920
51921         * lib/tmpfile-safer.c: New file.
51922         * lib/stdio-safer.h (fopen_safer): Add prototype.
51923         * lib/stdio--.h (tmpfile): Make safer.
51924
51925 2006-07-23  Bruno Haible  <bruno@clisp.org>
51926
51927         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51928         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51929         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51930         gl_linked_remove_at): Use it.
51931
51932 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51933         and Simon Josefsson <jas@extundo.com>
51934
51935         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51936
51937         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51938
51939 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         * modules/close-stream: New file.
51942         * modules/closeout (Description): Make it clear that it exits
51943         with a diagnostic on error.
51944         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51945         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51946
51947 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * m4/close-stream.m4: New file.
51950
51951 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * lib/close-stream.c, lib/close-stream.h: New files.
51954
51955 2006-07-22  Bruno Haible  <bruno@clisp.org>
51956
51957         Merge from GNU gettext 0.15.
51958
51959         2006-05-01  Bruno Haible  <bruno@clisp.org>
51960
51961                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51962
51963         2006-07-22  Bruno Haible  <bruno@clisp.org>
51964
51965                 * modules/javaversion: New file.
51966                 * MODULES.html.sh (Java): Add javaversion.
51967
51968         2006-03-12  Bruno Haible  <bruno@clisp.org>
51969
51970                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51971
51972         2005-12-04  Bruno Haible  <bruno@clisp.org>
51973
51974                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51975                 (untested).
51976
51977         2006-06-21  Bruno Haible  <bruno@clisp.org>
51978
51979                 Avoid warnings from recent versions of mcs.
51980                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51981                 -o, -L, -r any more. Use options documented since mcs-1.0
51982                 instead. Similarly for -g.
51983
51984         2005-12-04  Bruno Haible  <bruno@clisp.org>
51985
51986                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51987                 .resources, not .resource.
51988
51989         2005-07-09  Bruno Haible  <bruno@clisp.org>
51990
51991                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51992                 add a .dll suffix.
51993                 Reported by Mark Junker <mjscod@gmx.de>.
51994
51995         2006-07-22  Bruno Haible  <bruno@clisp.org>
51996
51997                 * modules/gettext: Upgrade to gettext-0.15.
51998                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51999                 m4/visibility.m4.
52000                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52001
52002 2006-07-22  Bruno Haible  <bruno@clisp.org>
52003
52004         Merge from GNU gettext 0.15.
52005
52006         2006-03-25  Bruno Haible  <bruno@clisp.org>
52007
52008                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52009
52010         2006-07-21  Bruno Haible  <bruno@clisp.org>
52011
52012                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52013                 "1.1".
52014
52015         2006-05-09  Bruno Haible  <bruno@clisp.org>
52016
52017                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52018                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52019                 for the conftestver execution.
52020
52021         2006-05-01  Bruno Haible  <bruno@clisp.org>
52022
52023                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52024                 optional target-version argument. Verify that the compiler
52025                 groks source of the specified source-version, or add -source
52026                 option as necessary. Verify that the compiler produces
52027                 bytecode in the specified target-version, or add -target and
52028                 -source options as necessary. Make the result of the test
52029                 available as variable CONF_JAVAC. Also log error output in
52030                 config.log.
52031
52032         2006-03-11  Bruno Haible  <bruno@clisp.org>
52033
52034                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52035
52036         2006-05-09  Bruno Haible  <bruno@clisp.org>
52037
52038                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52039                 CLASSPATH_SEPARATOR to a semicolon.
52040
52041         2006-03-12  Bruno Haible  <bruno@clisp.org>
52042
52043                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52044                 available as variable CONF_JAVA, for subsequent autoconf
52045                 tests. Also log error output in config.log.
52046
52047         2006-07-19  Bruno Haible  <bruno@clisp.org>
52048
52049                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52050                 that getline works on glibc2 systems. Needed to avoid trouble
52051                 in relocatable.c.
52052                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52053
52054         2005-12-04  Bruno Haible  <bruno@clisp.org>
52055
52056                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52057                 launcher (untested).
52058
52059         2005-12-04  Bruno Haible  <bruno@clisp.org>
52060
52061                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52062
52063         2006-07-22  Bruno Haible  <bruno@clisp.org>
52064
52065                 * gettext.m4: Update from GNU gettext-0.15.
52066                 * nls.m4: Likewise.
52067                 * po.m4: Likewise.
52068                 * inttypes-pri.m4: Likewise.
52069                 * inttypes-h.m4: Renamed from inttypes.m4.
52070                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52071
52072 2006-07-22  Bruno Haible  <bruno@clisp.org>
52073
52074         Merge from GNU gettext 0.15.
52075
52076         2005-07-05  Bruno Haible  <bruno@clisp.org>
52077
52078                 * printf-args.c (printf_fetchargs): Work around broken
52079                 definition of wint_t on mingw.
52080
52081         2005-02-12  Bruno Haible  <bruno@clisp.org>
52082
52083                 * xallocsa.h: Add extern "C" for C++.
52084
52085         2006-05-17  Bruno Haible  <bruno@clisp.org>
52086
52087                 Cygwin portability.
52088                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52089
52090         2006-04-30  Bruno Haible  <bruno@clisp.org>
52091
52092                 * progreloc.c: Include <mach-o/dyld.h> if available.
52093                 (find_executable): Use _NSGetExecutablePath when possible.
52094
52095         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52096
52097                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52098                 function.
52099
52100         2005-12-29  Bruno Haible  <bruno@clisp.org>
52101
52102                 * progreloc.c (set_program_name_and_installdir): Fix
52103                 compilation error.
52104
52105         2005-12-04  Bruno Haible  <bruno@clisp.org>
52106
52107                 Cygwin portability.
52108                 * progreloc.c: Include <windows.h> also on Cygwin.
52109                 (find_executable): Add support for Cygwin.
52110                 (set_program_name_and_installdir): Handle also platforms with
52111                 nonempty EXEEXT.
52112
52113         2006-07-11  Bruno Haible  <bruno@clisp.org>
52114
52115                 * javacomp.c: Fix a comment.
52116                 Reported by Jim Meyering.
52117
52118         2006-04-30  Bruno Haible  <bruno@clisp.org>
52119
52120                 * javacomp.h (compile_java_class): Add source_version,
52121                 target_version arguments.
52122                 * javacomp.c: Rewritten to choose only a compiler that
52123                 respects the specified source_version and target_version.
52124
52125         2006-06-27  Bruno Haible  <bruno@clisp.org>
52126
52127                 Assume correct S_ISDIR macro.
52128                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52129
52130         2006-07-22  Bruno Haible  <bruno@clisp.org>
52131
52132                 * javaversion.h: New file, from GNU gettext.
52133                 * javaversion.c: New file, from GNU gettext.
52134                 * javaversion.java: New file, from GNU gettext.
52135                 * javaversion.class: New file, from GNU gettext.
52136
52137         2006-05-17  Bruno Haible  <bruno@clisp.org>
52138
52139                 Cygwin portability.
52140                 * javaexec.c (execute_java_class): Test for jview program
52141                 also on Cygwin.
52142
52143         2006-04-09  Bruno Haible  <bruno@clisp.org>
52144
52145                 * fatal-signal.c: Don't include string.h.
52146                 (at_fatal_signal): Use a copying loop instead of memcpy.
52147
52148         2005-12-04  Bruno Haible  <bruno@clisp.org>
52149
52150                 * csharpexec.c: Add support for 'clix' launcher (untested).
52151                 (execute_csharp_using_sscli): New function.
52152                 (execute_csharp_program): Call it.
52153
52154         2006-06-21  Bruno Haible  <bruno@clisp.org>
52155
52156                 Avoid warnings from recent versions of mcs.
52157                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52158                 -o, -L, -r any more. Use options documented since mcs-1.0
52159                 instead. Similarly for -g.
52160
52161         2005-07-09  Bruno Haible  <bruno@clisp.org>
52162
52163                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52164                 add a .dll suffix.
52165                 Reported by Mark Junker <mjscod@gmx.de>.
52166
52167         2006-06-17  Bruno Haible  <bruno@clisp.org>
52168
52169                 * config.charset: Update for NetBSD 3.0.
52170
52171         2006-05-17  Bruno Haible  <bruno@clisp.org>
52172
52173                 Cygwin portability.
52174                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52175
52176         2006-05-16  Bruno Haible  <bruno@clisp.org>
52177
52178                 * localcharset.c [CYGWIN]: Include <windows.h>.
52179                 (get_charset_aliases): For Cygwin, return the same CPxxx
52180                 aliases list as under WIN32.
52181                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52182                 the environment variables. Fall back to GetACP().
52183
52184         2006-04-05  Bruno Haible  <bruno@clisp.org>
52185
52186                 * config.charset: Update Juan Manuel Guerrero's address.
52187
52188         2005-02-12  Bruno Haible  <bruno@clisp.org>
52189
52190                 * allocsa.h: Add extern "C" for C++.
52191
52192         2005-02-10  Bruno Haible  <bruno@clisp.org>
52193
52194                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52195                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52196
52197         2006-07-22  Bruno Haible  <bruno@clisp.org>
52198
52199                 * gettext.h: Update to GNU gettext-0.15.
52200
52201 2006-07-22  Bruno Haible  <bruno@clisp.org>
52202
52203         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52204         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52205         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52206
52207 2006-07-21  Eric Blake  <ebb9@byu.net>
52208
52209         * modules/stdlib-safer: New file.
52210         * MODULES.html.sh (File stream based Input/Output): Add
52211         stdlib-safer.
52212
52213 2006-07-21  Eric Blake  <ebb9@byu.net>
52214
52215         * lib/stdlib-safer.h: New file from coreutils, required by
52216         stdlib--.h.
52217
52218 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52219
52220         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52221
52222 2006-07-20  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool: Recognize new option --assume-autoconf.
52225         (autoconf_minversion): New variable.
52226         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52227
52228 2006-07-20  Bruno Haible  <bruno@clisp.org>
52229
52230         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52231
52232 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52233
52234         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52235         Reindent and repaginate.
52236
52237 2006-07-19  Derek Price  <derek@ximbiot.com>
52238
52239         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52240         Correct grammar.
52241
52242 2006-07-17  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/list: New file.
52245         * modules/array-list: New file.
52246         * modules/carray-list, modules/carray-list-tests: New files.
52247         * modules/linked-list, modules/linked-list-tests: New files.
52248         * modules/avltree-list, modules/avltree-list-tests: New files.
52249         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52250         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52251         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52252         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52253         * modules/oset: New file.
52254         * modules/array-oset: New file.
52255         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52256         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52257         * tests/test-carray_list.c: New file.
52258         * tests/test-linked_list.c: New file.
52259         * tests/test-avltree_list.c: New file.
52260         * tests/test-rbtree_list.c: New file.
52261         * tests/test-linkedhash_list.c: New file.
52262         * tests/test-avltreehash_list.c: New file.
52263         * tests/test-rbtreehash_list.c: New file.
52264         * tests/test-avltree_oset.c: New file.
52265         * tests/test-rbtree_oset.c: New file.
52266         * MODULES.html.sh (Container data structures): New section.
52267
52268 2006-07-17  Bruno Haible  <bruno@clisp.org>
52269
52270         * m4/gl_list.m4: New file.
52271
52272 2006-07-17  Bruno Haible  <bruno@clisp.org>
52273
52274         * lib/gl_list.h: New file.
52275         * lib/gl_list.c: New file.
52276         * lib/gl_array_list.h: New file.
52277         * lib/gl_array_list.c: New file.
52278         * lib/gl_carray_list.h: New file.
52279         * lib/gl_carray_list.c: New file.
52280         * lib/gl_linked_list.h: New file.
52281         * lib/gl_linked_list.c: New file.
52282         * lib/gl_anylinked_list1.h: New file.
52283         * lib/gl_anylinked_list2.h: New file.
52284         * lib/gl_avltree_list.h: New file.
52285         * lib/gl_avltree_list.c: New file.
52286         * lib/gl_anyavltree_list1.h: New file.
52287         * lib/gl_anyavltree_list2.h: New file.
52288         * lib/gl_rbtree_list.h: New file.
52289         * lib/gl_rbtree_list.c: New file.
52290         * lib/gl_anyrbtree_list1.h: New file.
52291         * lib/gl_anyrbtree_list2.h: New file.
52292         * lib/gl_anytree_list1.h: New file.
52293         * lib/gl_anytree_list2.h: New file.
52294         * lib/gl_linkedhash_list.h: New file.
52295         * lib/gl_linkedhash_list.c: New file.
52296         * lib/gl_anyhash_list1.h: New file.
52297         * lib/gl_anyhash_list2.h: New file.
52298         * lib/gl_avltreehash_list.h: New file.
52299         * lib/gl_avltreehash_list.c: New file.
52300         * lib/gl_rbtreehash_list.h: New file.
52301         * lib/gl_rbtreehash_list.c: New file.
52302         * lib/gl_anytreehash_list1.h: New file.
52303         * lib/gl_anytreehash_list2.h: New file.
52304
52305         * lib/gl_oset.h: New file.
52306         * lib/gl_oset.c: New file.
52307         * lib/gl_array_oset.h: New file.
52308         * lib/gl_array_oset.c: New file.
52309         * lib/gl_avltree_oset.h: New file.
52310         * lib/gl_avltree_oset.c: New file.
52311         * lib/gl_rbtree_oset.h: New file.
52312         * lib/gl_rbtree_oset.c: New file.
52313         * lib/gl_anytree_oset.h: New file.
52314
52315 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * m4/mkancesdirs.m4: New file.
52318         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52319         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52320         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52321         it.
52322
52323 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52324
52325         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52326         * lib/mkancesdirs.h: New files.
52327         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52328         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52329         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52330         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52331         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52332         callers changed.  Revamp internals significantly, by not
52333         attempting to create directories that are temporarily more
52334         permissive than the final results.  Do not attempt to use
52335         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52336         This removes some race conditions, fixes some bugs, and simplifies
52337         things.  Use new dirchownmod function to do owner and mode changes.
52338         * lib/mkdir-p.h: Likewise.
52339         * lib/modechange.c (octal_to_mode): New function.
52340         (struct mode_change): New member mentioned.
52341         (make_node_op_equals): New arg mentioned.  All callers changed.
52342         (mode_compile): Keep track of which mode bits the user has explicitly
52343         mentioned.
52344         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52345         New arg PMODE_BITS, to keep track of which mode bits the user
52346         mentioned; it treats S_ISUID and S_ISGID speciall.
52347         All callers changed.
52348         * lib/modechange.h: Likewise.
52349
52350 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52351
52352         * MODULES.html.sh: Add mkancestors.
52353         * modules/mkancesdirs: New module.
52354         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52355         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52356         The chdir-safer and afs files are now orphans; I'll remove them
52357         unless someone speaks up.
52358         Add lib/dirchownmod.c, lib/dirchownmod.h.
52359         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52360         Add lchown, mkancesdirs.
52361         (Maintainer): Add self.
52362
52363 2006-07-15  Karl Berry  <karl@gnu.org>
52364
52365         * gnulib-tool: help message wording/arrangement.
52366
52367 2006-07-14  Simon Josefsson  <jas@extundo.com>
52368
52369         * doc/gnulib.texi (Libtool and Windows): New section.
52370
52371 2006-07-12  Simon Josefsson  <jas@extundo.com>
52372
52373         * modules/gendocs (License): Fix license, approved by Karl.
52374
52375 2006-07-12  Eric Blake  <ebb9@byu.net>
52376
52377         * MODULES.html.sh: Add gendocs.
52378
52379 2006-07-11  Eric Blake  <ebb9@byu.net>
52380
52381         * modules/fdl: New module, to install doc/fdl.texi.
52382         * MODULES.html.sh: Add new section for documentation modules.
52383         * gnulib-tool: Avoid space-tab.
52384         (--doc-base): New option, to manage files from doc.
52385
52386 2006-07-11  Eric Blake  <ebb9@byu.net>
52387
52388         * m4/absolute-header.m4: Fix comments to match recent change.
52389
52390 2006-07-11  Eric Blake  <ebb9@byu.net>
52391
52392         * gnulib-tool: List --doc-base before --tests-base.
52393
52394 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52395
52396         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52397
52398 2006-07-11  Bruno Haible  <bruno@clisp.org>
52399
52400         * README: Mention where to put documentation.
52401
52402 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52403
52404         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52405
52406 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52407
52408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52409         to stdint.m4.
52410
52411 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52414         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52415         "no/such/file/stdint.h" when there is no such file, so that
52416         the resulting C code can be parsed by dodgy compilers.
52417         Problems reported by Bob Proulx.
52418
52419 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52420
52421         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52422         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52423         macros into the GNU _D_EXACT_NAMLEN.
52424         * lib/savedir.c:  Likewise.
52425         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52426
52427 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52428         and Paul Eggert  <eggert@cs.ucla.edu>
52429
52430         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52431         * m4/savedir.m4:
52432         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52433         macros into the GNU _D_EXACT_NAMLEN.
52434
52435 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52438         around the absolute name, to work around a problem with the HP-UX
52439         11.23 native C compiler, reported by Bob Proulx.
52440
52441 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * doc/maintain.texi, make-stds.texi: Sync from
52444         <http://savannah.gnu.org/projects/gnustandards>.
52445
52446 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52449
52450 2006-07-09  Jim Meyering  <jim@meyering.net>
52451
52452         * m4/glob.m4: Remove a doubled word in a comment.
52453
52454 2006-07-09  Jim Meyering  <jim@meyering.net>
52455
52456         * lib/argp-pv.c: Remove a doubled word in a comment.
52457         * lib/check-version.c (check_version): Likewise.
52458         * lib/javacomp.c (compile_java_class): Likewise.
52459
52460 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52461
52462         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52463         for the benefit of people using Autoconf 2.60.  If you want to
52464         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52465         (or m4/onceonly.m4, if pre-2.57) manually.
52466
52467 2006-07-08  Jim Meyering  <jim@meyering.net>
52468
52469         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52470         comment.
52471         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52472         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52473         comment.
52474
52475 2006-07-08  Jim Meyering  <jim@meyering.net>
52476
52477         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52478
52479 2006-07-07  Simon Josefsson  <jas@extundo.com>
52480
52481         * tests/test-crc.c: Change expected crc value, the test vector
52482         were probably computed using the old broken crc.c?
52483
52484 2006-07-06  Simon Josefsson  <jas@extundo.com>
52485
52486         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52487         now the canonical place for the M4 file).
52488
52489         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52490         from the sys_socket dependency now.
52491
52492         * modules/inet_pton (Files): Ditto.
52493
52494         * modules/inet_ntop (Files): Ditto.
52495
52496 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52497
52498         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52499         not gl_PREREQ_GETUSERSHELL.
52500
52501 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52502
52503         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52504         with only one argument, for Autoconf 2.60.
52505         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52506         expand to nothing, so add a shell command to avoid syntax error.
52507         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52508
52509 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52510
52511         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52512
52513 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52516         no longer needed.  Check for isblank decl.
52517         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52518         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52519         of existence.
52520
52521 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * lib/getloadavg.c: Use __VMS, not VMS.
52524         * lib/getopt.c: Likewise.
52525         * lib/getpagesize.h: Likewise.
52526         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52527         and probably does not work.
52528
52529 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * lib/.cppi-disable: Add wcwidth.
52532         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52533         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52534         (ISGRAPH): Remove.  All uses changed to isgraph.
52535         (FOLD) [!defined _LIBC]: Remove special case.
52536         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52537         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52538         HAVE_ISBLANK.
52539         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52540         case.
52541
52542 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52543
52544         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52545         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52546         brackets.  Other minor changes to suppress some compiler
52547         warnings.
52548
52549 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52550         and Paul Eggert  <eggert@cs.ucla.edu>
52551
52552         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52553         of invoking obsolescent AC_HEADER_DIRENT macro.
52554         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52555         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52556         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52557         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52558         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52559         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52560         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52561         * m4/readdir.m4: Remove; no longer needed.
52562
52563 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52564         and Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52567         Don't worry about this obsolete case any more.
52568         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52569         directories.
52570         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52571         worry about this obsolete case any more.
52572         * lib/fts.c: Likewise.
52573         * lib/getcwd.c: Likewise.
52574         * lib/glob.h: Likewise.
52575         * lib/savedir.c: Likewise.
52576
52577 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52580         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52581         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52582         needed.
52583         All uses removed.
52584         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52585         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52586         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52587         needed.
52588         * m4/getdate.m4 (gl_GETDATE): Likewise.
52589         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52590         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52591         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52592         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52593         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52594         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52595         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52596         needed.
52597
52598 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52599
52600         * lib/memcasecmp.c: Include <limits.h>.
52601         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52602         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52603         Don't assume isdigit succeeds only on '0' through '9'.
52604
52605 2006-07-05  Eric Blake  <ebb9@byu.net>
52606
52607         * modules/getaddrinfo (Depends-on): Add snprintf.
52608
52609 2006-07-05  Eric Blake  <ebb9@byu.net>
52610
52611         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52612         to avoid 'header present but could not be compiled' on cygwin.
52613
52614 2006-07-05  Eric Blake  <ebb9@byu.net>
52615
52616         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52617         missing from netdb.h.
52618         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52619
52620 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52621
52622         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52623         no longer needed.
52624         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52625         * m4/getdate.m4 (gl_GETDATE): Likewise.
52626         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52627         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52628         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52629         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52630         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52631
52632 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52633
52634         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52635         All uses of is_space replaced by isspace.
52636         * lib/exit.h: Don't talk about STDC_HEADERS.
52637         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52638         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52639         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52640         replaced by isprint etc.
52641         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52642         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52643         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52644         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52645         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52646         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52647
52648 2006-07-05  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52651         the function exists, before testing against AIX.
52652         Reported by Martin Lambers <marlam@marlam.de>.
52653
52654 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52657         From Mark D. Baushke.
52658
52659 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52662         to the absolute name, not just one, to bypass Sun C 5.8's
52663         "warning: #include of /usr/include/... may be non-portable".
52664
52665 2006-07-04  Eric Blake  <ebb9@byu.net>
52666
52667         * modules/dirname-tests: New test module.
52668         * tests/test-dirname.c: New file, replacing dirname.c
52669         TEST_DIRNAME section that was recently deleted.
52670
52671 2006-07-04  Bruno Haible  <bruno@clisp.org>
52672
52673         Assume ANSI C header files and <ctype.h> functions.
52674         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52675         (mbsnwidth): Use isprint, iscntrl instead.
52676
52677 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52678
52679         Merge from coreutils.
52680         * MODULES.html.sh: Add xstrtold.
52681         * modules/xstrtold: New file.
52682         * modules/cycle-check (Files): Add lib/same-inode.h.
52683         * modules/dirname (Files): Add m4/double-slash-root.m4.
52684         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52685         * modules/mkdir-p (Files): Add lib/same-inode.h.
52686         * modules/same (Files): Add lib/same-inode.h.
52687
52688 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52689
52690         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52691         This is to keep the terminology clean; POSIX talks about
52692         "absolute pathnames", not "full pathnames", but the GNU
52693         Coding Standards say to use "path" for something else;
52694         so use "absolute" to keep both sides happy.
52695         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52696         Set gl_absolute_header, not gl_full_header_path.
52697         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52698         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52699         All uses changed.
52700
52701         Merge from coreutils.
52702
52703         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52706         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52707         want to require the building of c-strtod.o.
52708         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52709         needs -lm directly.
52710         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52711
52712         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52713
52714         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52715         --as-needed option if available.  Problem reported by Albert Chin in
52716         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52717         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52718         cc merely issues a bunch of annoying warnings for --as-needed
52719         (this problem was reported by Bob Proulx).  Also, try linking with
52720         -lm to detect a bug in binutils 2.16 (this problem was reported
52721         by Ralf Wildenhues).
52722
52723         2006-06-18  Jim Meyering  <jim@meyering.net>
52724
52725         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52726         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52727         macro.
52728         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52729         also check for glibc-2.4's abort-inducing bug.
52730
52731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52732         Low-probability clean-up should be to use rmdir to get rid of
52733         the just-created directory, not unlink.
52734
52735         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52736         configure fail, and request a bug report to inform us about it.
52737         Add a comment that, barring reports to the contrary, in 2007 we'll
52738         assume ftruncate is universally available.
52739
52740         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52743
52744         2006-03-12  Jim Meyering  <jim@meyering.net>
52745
52746         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52747         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52748         * m4/same.m4 (gl_SAME): Likewise.
52749         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52750
52751         2006-03-11  Eric Blake  <ebb9@byu.net>
52752
52753         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52754         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52755         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52756         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52757
52758 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52761         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52762         reported by Mark D. Baushke, one in
52763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52764
52765         Merge from coreutils.
52766
52767         * lib/.cppi-disable: Add stdint_.h.
52768         * lib/.cvsignore: Add stdint.h.
52769
52770         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52773         both double and long double versions.
52774         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52775         * lib/xstrtold.c: New file.
52776         * lib/xstrtod.h (xstrtold): New decl.
52777
52778         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52779
52780         * lib/filemode.c (setst): Remove.
52781         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52782         (arguably) clearer, and the generated code is a bit smaller on my
52783         Debian GNU/Linux stable x86 host.
52784
52785         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52788         Assume that filemode.h includes sys/types.h and sys/stat.h.
52789         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52790         (ftypelet): Reorder to put common cases first, for efficiency.
52791         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52792         to do 'M'.
52793         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52794         of 10, for compatibility with FreeBSD.  All callers changed.
52795         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52796         types that can't be deduced solely from st_mode.  First arg is now a
52797         const pointer.
52798         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52799         (strmode): Renamed from mode_string.
52800         (filemodestring): New decl.
52801         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52802         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52803         needed.
52804         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52805
52806         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52809         fsusage.h now does that.  Include fsusage.h first, to test interface.
52810         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52811         at most one method (the old code could have generated decls that
52812         didn't conform to C89, not that this was ever exercised).
52813         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52814
52815         2006-03-19  Jim Meyering  <jim@meyering.net>
52816
52817         Work even in a chroot where d_ino values for entries in "/"
52818         don't match the stat.st_ino values for the same names.
52819         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52820         number, iterate through all entries again, using lstat instead.
52821         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52822         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52823
52824         * lib/getcwd.c (__getcwd): Clarify a comment.
52825         Use memcpy in place of a call to strcpy.
52826
52827         2006-03-12  Jim Meyering  <jim@meyering.net>
52828
52829         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52830         matches that of the current directory (which we're about to chdir ".."
52831         out of), then save the dev-ino of the parent, instead.
52832
52833         * lib/same-inode.h (SAME_INODE): New file/macro.
52834         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52835         Include "same-inode.h", instead.
52836         * lib/same.c: Likewise.
52837         * lib/cycle-check.h: Include "same-inode.h".
52838         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52839         * lib/cycle-check.c (SAME_INODE): Remove definition.
52840         * lib/root-dev-ino.h: Include "same-inode.h".
52841
52842         2006-03-11  Eric Blake  <ebb9@byu.net>
52843
52844         * lib/same.c (same_name): s/base_name/last_component/
52845         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52846         * lib/filenamecat.c (file_name_concat): Likewise.
52847
52848         2006-03-11  Eric Blake  <ebb9@byu.net>,
52849                     Paul Eggert  <eggert@cs.ucla.edu>
52850
52851         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52852         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52853         drive prefix.
52854         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52855         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52856         (last_component): New method.
52857         * lib/dirname.c (dir_len): Determine when drive letters need a
52858         subsequent slash.  Preserve // when it is special.
52859         (dir_name): Don't append dot when drive letter is absolute.
52860         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52861         * lib/basename.c (base_name): New semantics - malloc the result.
52862         Preserve // when it is special.  Preserve relative files that look
52863         like drive letters.
52864         (base_len): Preserve // when it is special.
52865         (last_component): New method, similar to old base_name semantics.
52866         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52867         base_name.  Strip redundant slashes from ///.
52868
52869 2006-07-03  Jim Meyering  <jim@meyering.net>
52870
52871         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52872         macro is used before the first cycle_check call.
52873
52874 2006-07-03  Eric Blake  <ebb9@byu.net>
52875
52876         * modules/dirname (Depends-on): Add xstrndup.
52877
52878 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52881         test cases, so that config.log is a bit easier to follow.
52882
52883 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52886         both are 64 bits, since this seems to be the tradition, and this
52887         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52888         we ever run into a host that prefers long long to long in this
52889         case, we'll need another configure-time test.  Problem reported by
52890         Jim Meyering.
52891
52892 2006-07-02  Eric Blake  <ebb9@byu.net>
52893
52894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52895
52896 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52897
52898         * modules/inttypes (Depends-on): No longer depends on stdint.
52899         * modules/stdint (Description): Say more about assumptions.
52900         Say that the fast types might differ.  Say macros are used.
52901         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52902         (Makefile.am): Revise list of substituted symbols to match
52903         new stdint.m4.
52904         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52905         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52906         * tests/test-stdint.c (verify_same_types)
52907         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52908         the code conforms to C99/C89.
52909         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52910         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52911
52912 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52915         but fix a bug, by requiring at least 64 bits.
52916         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52917         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52918         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52919         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52920
52921         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52922         changes.  Make 2.59 a prerequisite.  Check and substitute for
52923         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52924         inttypes.h.  Do not use special include files; just use the
52925         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52926         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52927         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52928         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52929         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52930         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52931         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52932         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52933         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52934         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52935         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52936         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52937         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52938         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52939         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52940         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52941         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52942         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52943         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52944         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52945         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52946         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52947         not check for things that C99 does not require, e.g., int8_t.  If
52948         a test isn't needed unless <stdint.h> isn't working, and is
52949         unlikely to be needed for any other reason, then don't do it
52950         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52951         size_t, since we assume C89 freestanding at least.  Do not check
52952         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52953         the right thing even if the types are not defined.  Instead use:
52954         (gl_STDINT_TYPE_PROPERTIES): New macro.
52955         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52956         testing whether <sys/types.h> clashes, as Autoconf does this for
52957         us now.  All uses removed.
52958         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52959         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52960         (gl_CHECK_TYPE_SAME):
52961         Remove; no longer needed.
52962         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52963         exists, since we'll return 0 anyway in that case.
52964         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52965
52966 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52967
52968         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52969         possible collision with system files.
52970         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52971         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52972         WCHAR_MIN and WCHAR_MAX in this case.
52973         (<stddef.h>): Do not include; no longer needed.
52974         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52975         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52976         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52977         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52978         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52979         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52980         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52981         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52982         !defined(__c99))]: Include in this case too, since it's harmless
52983         now.
52984         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52985         dangerous to do so.
52986         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52987         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52988         (_STDINT_MIN, _STDINT_MAX): New macros.
52989         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52990         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52991         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52992         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52993         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52994         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52995         macros, not typedefs; this simplifies things quite a bit.
52996         Use long int for all types narrower than int64_t.
52997         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52998         Define in terms of long long int or int64_t or long int,
52999         not int64_t or int32_t.  This saves some compile-time testing.
53000         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53001         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53002         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53003         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53004         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53005         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53006         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53007         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53008         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53009         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53010         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53011         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53012         undef any previous version and define our own version, for
53013         simplicity and consistency with the new macros for types.
53014         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53015         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53016         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53017         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53018         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53019         @WINT_T_SUFFIX@ to keep things simple here.
53020         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53021         Simplify by assuming typical 8/16/32/64 host, since we're
53022         already doing that elsewhere anyway.
53023         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53024         and assume long long int is 64 bits if available.  This
53025         speeds up 'configure'.
53026
53027 2006-07-01  Eric Blake  <ebb9@byu.net>
53028
53029         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53030         Reported by Andreas Buening.
53031
53032 2006-07-01  Eric Blake  <ebb9@byu.net>
53033
53034         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53035
53036 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53037
53038         * lib/getaddrinfo.c: fixed typo
53039
53040 2006-06-29  Jim Meyering  <jim@meyering.net>
53041
53042         * modules/strftime (Maintainer): Add my name, since with the
53043         FPRINTFTIME changes strftime.c has forked from glibc.
53044
53045 2006-06-29  Eric Blake  <ebb9@byu.net>
53046
53047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53048
53049 2006-06-29  Eric Blake  <ebb9@byu.net>
53050
53051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53052
53053 2006-06-29  Eric Blake  <ebb9@byu.net>
53054
53055         * lib/stat_.h: New file.
53056
53057 2006-06-29  Eric Blake  <ebb9@byu.net>
53058
53059         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53060         unused static function.
53061
53062 2006-06-29  Eric Blake  <ebb9@byu.net>
53063
53064         * doc/functions.texi (Function Portability): Document missing lstat
53065         on mingw.
53066
53067 2006-06-29  Eric Blake  <ebb9@byu.net>
53068
53069         * MODULES.html.sh: Add sys_stat.
53070         * modules/sys_stat: New module.
53071         * modules/mkstemp (Depends-on): Add sys_stat.
53072
53073 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53074
53075         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53076
53077 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53078
53079         * m4/c-bs-a.m4: Removed.
53080
53081 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53082
53083         * lib/strftime.c: Assume strftime() exists.
53084
53085 2006-06-29  Derek Price  <derek@ximbiot.com>
53086
53087         * modules/c-bs-a: Removed - \a is C89.
53088         * MODULES.html.sh: Remove c-bs-a.
53089
53090 2006-06-29  Bruno Haible  <bruno@clisp.org>
53091
53092         * modules/wcwidth (License): Change to LGPL.
53093
53094 2006-06-28  Simon Josefsson  <jas@extundo.com>
53095
53096         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53097         on _WIN32.
53098
53099         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53100         getnameinfo.
53101
53102 2006-06-28  Simon Josefsson  <jas@extundo.com>
53103
53104         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53105
53106 2006-06-28  Simon Josefsson  <jas@extundo.com>
53107
53108         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53109         functions there.  It will succeed on Windows XP, but on Windows
53110         2000 and (presumably) earlier, it will fail, and use the internal
53111         re-implementation.
53112         (use_win32_p): New function.
53113         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53114         Support AI_NUMERICSERV to disable getservbyname.
53115         (getnameinfo): New function, only supports
53116         NI_NUMERICHOST|NI_NUMERICSERV for now.
53117
53118         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53119         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53120         getnameinfo.
53121
53122 2006-06-28  Eric Blake  <ebb9@byu.net>
53123
53124         * modules/wcwidth: New file.
53125         * modules/mbchar (Depends-on): Add wcwidth.
53126         * modules/mbswidth (Depends-on): Add wcwidth.
53127         * MODULES.html.sh: Add wcwidth.
53128
53129 2006-06-28  Eric Blake  <ebb9@byu.net>
53130
53131         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53133
53134 2006-06-28  Eric Blake  <ebb9@byu.net>
53135
53136         * lib/xvasprintf.h: Fix comments.
53137
53138 2006-06-28  Eric Blake  <ebb9@byu.net>
53139
53140         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53141         * lib/mbswidth.c (wcwidth): Move from here...
53142         * lib/wcwidth.h: ...to this new file.
53143
53144 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53145
53146         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53147
53148         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53149         it's obsolete.
53150         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53151
53152 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53153
53154         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53155         Autoconf 2.60 says this stuff was obsolete.
53156
53157 2006-06-28  Bruno Haible  <bruno@clisp.org>
53158
53159         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53160
53161 2006-06-28  Bruno Haible  <bruno@clisp.org>
53162
53163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53164         gt_TYPE_WCHAR_T.
53165
53166 2006-06-28  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53169         declaration for wcwidth.
53170         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53171
53172 2006-06-28  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53175         (mkdir): Define using _mkdir.
53176
53177 2006-06-28  Bruno Haible  <bruno@clisp.org>
53178
53179         * lib/getaddrinfo.h: Fix POSIX URL.
53180         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53181         _WIN32.
53182         (use_win32_p): Make static.
53183         (getaddrinfo): Reject service name if it is empty or does not consist
53184         solely of decimal digits, or if its value is > 65535.
53185         (getnameinfo): Remove useless casts.
53186
53187 2006-06-27  Simon Josefsson  <jas@extundo.com>
53188
53189         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53190         Eggert and Martin Lambers.
53191
53192 2006-06-27  Simon Josefsson  <jas@extundo.com>
53193
53194         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53195         Eggert and Martin Lambers.
53196
53197 2006-06-27  Bruno Haible  <bruno@clisp.org>
53198
53199         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53200         result to 0, not to empty.
53201         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53202
53203 2006-06-27  Bruno Haible  <bruno@clisp.org>
53204
53205         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53206
53207 2006-06-26  Simon Josefsson  <jas@extundo.com>
53208
53209         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53210         present.
53211
53212 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53213
53214         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53215         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53216         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53217
53218 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53219
53220         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53221
53222 2006-06-26  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53225
53226 2006-06-26  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53229
53230 2006-06-26  Bruno Haible  <bruno@clisp.org>
53231
53232         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53233         SGI C compiler in pre-C99 mode.
53234         Suggested by Mark D. Baushke and Larry Jones.
53235
53236 2006-06-26  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53239         WCHAR_MAX.
53240         Reported by Mark D. Baushke and Larry Jones.
53241
53242 2006-06-26  Bruno Haible  <bruno@clisp.org>
53243
53244         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53245         in pre-C99 mode.
53246         Suggested by Mark D. Baushke and Larry Jones.
53247
53248 2006-06-23  Simon Josefsson  <jas@extundo.com>
53249             Bruno Haible  <bruno@clisp.org>
53250
53251         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53252         Emit mostlyclean-local rule.
53253         (func_emit_tests_Makefile_am): Likewise.
53254         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53255
53256 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53257
53258         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53259
53260 2006-06-23  Bruno Haible  <bruno@clisp.org>
53261
53262         * tests/test-stdint.c: Update to match ISO C 99 Technical
53263         Corrigendum 1.
53264
53265 2006-06-23  Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53268
53269 2006-06-23  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/stdint_.h: Treat IRIX like OpenBSD.
53272
53273 2006-06-23  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53276         ISO C 99 Technical Corrigendum 1.
53277
53278 2006-06-22  Simon Josefsson  <jas@extundo.com>
53279
53280         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53281         MinGW.
53282
53283 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53286         needed.  Some compiler complained about some of them.  Problem reported
53287         by Larry Jones in
53288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53289
53290 2006-06-21  Simon Josefsson  <jas@extundo.com>
53291
53292         * tests/test-getaddrinfo.c: New file.
53293
53294         * modules/getaddrinfo-tests: New file.
53295
53296         * MODULES.html.sh: Add inet_pton.
53297
53298         * modules/inet_pton: New file.
53299
53300 2006-06-21  Simon Josefsson  <jas@extundo.com>
53301
53302         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53303         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53304         of using the (limited) gnulib implementation on Windows XP.
53305
53306         * m4/inet_pton.m4: New file.
53307
53308 2006-06-21  Simon Josefsson  <jas@extundo.com>
53309
53310         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53311         variable.
53312
53313         * lib/socket_.h: Don't define WINVER.
53314
53315         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53316         slightly modified to work in gnulib.
53317
53318 2006-06-21  Simon Josefsson  <jas@extundo.com>
53319
53320         * doc/gnulib.texi (Windows sockets): Add.
53321
53322 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * lib/read-file.c (fread_file): Start with buffer allocation of
53325         0 bytes rather than 1 byte; this simplifies the code.
53326         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53327         code to free buffer and save/restore errno.
53328         (internal_read_file): Remove unused local.
53329
53330 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53331
53332         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53333         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53334         Problem reported by Denis Excoffier in
53335         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53336
53337 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53338
53339         * modules/sys_socket, modules/socklen: Include sys/types since
53340         FreeBSD 4.x's sys/socket.h needs it.
53341
53342 2006-06-19  Simon Josefsson  <jas@extundo.com>
53343
53344         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53345
53346 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53349
53350 2006-06-19  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53353         and FULL_PATH_INTTYPES_H in angle brackets.
53354         Reported by Mark D. Baushke <mdb@gnu.org>.
53355
53356 2006-06-17  Eric Blake  <ebb9@byu.net>
53357
53358         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53359         errno.
53360
53361 2006-06-17  Bruno Haible  <bruno@clisp.org>
53362
53363         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53364         <sys/inttypes.h>.
53365
53366 2006-06-17  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53369         whether errno is declared. Assume <errno.h> declares errno.
53370
53371 2006-06-17  Bruno Haible  <bruno@clisp.org>
53372
53373         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53374
53375 2006-06-17  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53378         problem on Solaris 2.5.1.
53379
53380 2006-06-16  Eric Blake  <ebb9@byu.net>
53381
53382         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53383         * lib/unicodeio.c [!defined errno]: Likewise.
53384         * lib/strtol.c [!defined errno]: Likewise.
53385         * lib/strtod.c [!defined errno]: Likewise.
53386
53387 2006-06-15  Eric Blake  <ebb9@byu.net>
53388
53389         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53390
53391 2006-06-15  Eric Blake  <ebb9@byu.net>
53392
53393         * config/srclist.txt (ssize_t.m4): Lose sync.
53394
53395 2006-06-15  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/stdint (Files): Include m4/full-header-path.m4,
53398         m4/size_max.m4, m4/wchar_t.m4.
53399         (Makefile.am): Many more substitutions.
53400         * modules/stdint-tests: New file.
53401         * tests/test-stdint.c: New file.
53402
53403 2006-06-15  Bruno Haible  <bruno@clisp.org>
53404
53405         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53406         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53407         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53408         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53409         gl_CHECK_TYPE_SAME): New macros.
53410
53411 2006-06-15  Bruno Haible  <bruno@clisp.org>
53412
53413         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53414
53415 2006-06-15  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/stdint_.h: Rewritten to be fully auto-configured.
53418         Fixes bug on HP-UX/IA64.
53419
53420 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * lib/getdate.y (__attribute__): Don't define if already defined.
53423         Problem reported by Larry Jones.
53424         * lib/utimens.c (__attribute__): Likewise.
53425
53426 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53429         reported by Andreas Schwab.
53430
53431 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53432             Bruno Haible  <bruno@clisp.org>
53433
53434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53435         check for the declaration of strnlen and a run test that exposes the
53436         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53437         rpl_strndup.
53438
53439 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53440             Bruno Haible  <bruno@clisp.org>
53441
53442         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53443
53444 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53445
53446         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53447         compile test, for Tru64 4.0D.
53448
53449 2006-05-28  Karl Berry  <karl@gnu.org>
53450
53451         * config/srclist.txt (printf-args.c): lose sync.
53452
53453 2006-05-26  Martin Lambers  <marlam@marlam.de>
53454
53455         * lib/getpass.c: Updates the test for the native W32 API, and adds
53456         missing includes, thus fixing compilation warnings.
53457
53458 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53459
53460         * lib/exclude.c (exclude_fnmatch): New function.
53461         (excluded_file_name): Call exclude_fnmatch.
53462         * lib/exclude.h (excluded_file_name): New prototype
53463
53464 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         * lib/tempname.c (small_open, large_open): New macros.
53467         (__open, __open64) [!_LIBC]: Remove.
53468         (__gen_tempname): Use small_open and large_open instead of __open
53469         and __open64.  This fixes a portability bug on HP-UX 11.11i
53470         reported by Simon Wing-Tang in
53471         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53472
53473 2006-05-24  Bruno Haible  <bruno@clisp.org>
53474
53475         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53476         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53477         Reported by Thorsten Maerz <torte@netztorte.de> via
53478         Aaron Stone <aaron@serendipity.cx>.
53479
53480 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53483         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53484         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53485         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53486         not really conditional on the cache.
53487         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53488
53489 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53492         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53493         (my_usleep): Don't mishandle maximum value.
53494
53495 2006-05-19  Jim Meyering  <jim@meyering.net>
53496
53497         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53498
53499 2006-05-17  Bruno Haible  <bruno@clisp.org>
53500
53501         Cygwin portability.
53502         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53503
53504 2006-05-17  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/stdint_.h: Fix recognition of Cygwin.
53507
53508 2006-05-15  Bruno Haible  <bruno@clisp.org>
53509
53510         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53511         on libtool patch by Ralf Wildenhues.
53512
53513 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53514
53515         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53516         test for C99 conformance; (bool) 0.5 is an integer constant
53517         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53518         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53519
53520 2006-05-11  Simon Josefsson  <jas@extundo.com>
53521
53522         * m4/xvasprintf.m4: Fix obvious typo.
53523
53524 2006-05-11  Jim Meyering  <jim@meyering.net>
53525
53526         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53527         James Lemley.
53528
53529 2006-05-10  Simon Josefsson  <jas@extundo.com>
53530
53531         * lib/md4.c: Typo fix, update copyright years.
53532         (K1, K2): Don't use L because it turn computations into 64-bit on
53533         64-bit platforms.
53534
53535 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53538         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53539         unwanted sign propagation, e.g., on hosts with 64-bit int.
53540         There still are some problems with reeelly weird theoretical hosts
53541         (e.g., 33-bit int) but it's not worth worrying about now.
53542         * lib/sha1.c (rol): Likewise.
53543         (K1, K2, K3, K4): Remove unnecessary L suffix.
53544
53545 2006-05-10  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/des.c: Cast to avoid warnings.
53548
53549 2006-05-09  Bruno Haible  <bruno@clisp.org>
53550
53551         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53552         (Depends-on): Depend also on xsize, stdarg.
53553         (configure.ac): Add gl_XVASPRINTF.
53554
53555 2006-05-09  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/xvasprintf.m4: New file.
53558
53559 2006-05-09  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53562         (EOVERFLOW): Define fallback value.
53563         (xstrcat): New function.
53564         (xvasprintf): Recognize the special case of a string concatenation.
53565
53566 2006-05-08  Eric Blake  <ebb9@byu.net>
53567
53568         * gnulib-tool (func_version): Base copyright year on CVS date.
53569         (func_emit_copyright_notice): New function.
53570         (func_emit_lib_Makefile_am): Use it.
53571         (func_emit_tests_Makefile_am): Likewise.
53572         (func_import): Likewise.
53573
53574 2006-05-08  Bruno Haible  <bruno@clisp.org>
53575
53576         * modules/stdarg: New file.
53577         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53578
53579 2006-05-08  Bruno Haible  <bruno@clisp.org>
53580
53581         * m4/stdarg.m4: New file, from GNU gettext.
53582
53583 2006-05-08  Bruno Haible  <bruno@clisp.org>
53584
53585         * config/srclist.txt (build-aux/config.rpath): different from latest
53586         release.
53587
53588 2006-05-08  Bruno Haible  <bruno@clisp.org>
53589
53590         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53591
53592 2006-05-05  Jim Meyering  <jim@meyering.net>
53593
53594         * m4/warning.m4: New file, derived from bison's file by the same name.
53595
53596 2006-05-03  Bruno Haible  <bruno@clisp.org>
53597
53598         * lib/stdint_.h: Shorter URL.
53599         * lib/inttypes.h: Likewise.
53600
53601 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53604
53605 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * lib/verify.h: Document the internals better.  Most of this change
53608         was written by Bruno Haible.
53609
53610 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53611
53612         * doc/verify.texi: New file, partly based on a proposal by
53613         Bruno Haible.
53614
53615 2006-05-02  Bruno Haible  <bruno@clisp.org>
53616
53617         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53618         test from here...
53619         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53620
53621 2006-04-29  Bruno Haible  <bruno@clisp.org>
53622
53623         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53624         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53625
53626 2006-04-29  Bruno Haible  <bruno@clisp.org>
53627
53628         * gnulib-tool: Make --update option actually work.
53629
53630 2006-04-29  Bruno Haible  <bruno@clisp.org>
53631
53632         * doc/gcd.texi: New file.
53633         * doc/gnulib.texi: Include it.
53634
53635 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * lib/getdate.y (get_date): When adding relative date, start with the
53638         initial time, not with the result of the first mktime call.
53639
53640 2006-04-25  Bruno Haible  <bruno@clisp.org>
53641
53642         * gnulib-tool (func_import): Output the include directives in three
53643         blocks, sorted separately.
53644         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53645
53646 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53649         to define main with arguments, for C++.  Reported by Eric Blake.
53650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53651         Prefer 'int main ()' to 'int main (void)', for C++.
53652         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53653         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53654         for 'main', for C99 and C++.
53655
53656 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53659         Don't assume that exit status -1 is valid.
53660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53661         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53662         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53663         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53664         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53665         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53666         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53667         functions can be used without declaring them, or that you can
53668         exit with status -1.
53669         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53670
53671 2006-04-24  Karl Berry  <karl@gnu.org>
53672
53673         * config/srclist.txt (longdouble.m4): sync lost.
53674
53675 2006-04-24  Eric Blake  <ebb9@byu.net>
53676
53677         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53678
53679 2006-04-24  Bruno Haible  <bruno@clisp.org>
53680
53681         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53682         poll() implementation in AIX.
53683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53684
53685 2006-04-24  Bruno Haible  <bruno@clisp.org>
53686
53687         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53688         assigned exactly once.
53689
53690 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53691             Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53694         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53695         for AM_CPPFLAGS.
53696
53697 2006-04-23  Bruno Haible  <bruno@clisp.org>
53698
53699         * modules/copy-file: Depend on unistd.
53700         * modules/execute: Likewise.
53701         * modules/fatal-signal: Likewise.
53702         * modules/findprog: Likewise.
53703         * modules/mkdtemp : Likewise.
53704         * modules/pipe: Likewise.
53705         * modules/wait-process: Likewise.
53706
53707 2006-04-23  Bruno Haible  <bruno@clisp.org>
53708
53709         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53710         condition was already detected.
53711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53712
53713 2006-04-23  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/copy-file.c: Include <unistd.h> unconditionally.
53716         * lib/execute.c: Likewise.
53717         * lib/fatal-signal.c: Likewise.
53718         * lib/findprog.c: Likewise.
53719         * lib/mkdtemp.c: Likewise.
53720         * lib/pipe.h: Likewise.
53721         * lib/pipe.c: Likewise.
53722         * lib/wait-process.h: Likewise.
53723
53724 2006-04-23  Bruno Haible  <bruno@clisp.org>
53725
53726         * gnulib-tool (func_usage): Fix --import description. Document
53727         --update.
53728         (func_import): Create temporary file in a temporary directory, if
53729         --dry-run is specified. Silence errors from 'grep' when there are no
53730         m4 files in $m4dir.
53731         (func_create_testdir): Silence errors from 'grep' when there are no
53732         m4 files in $m4dir.
53733         Reported by Karl Berry <karl@freefriends.org>.
53734
53735 2006-04-20  Bruno Haible  <bruno@clisp.org>
53736
53737         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53738         one argument, so that the code will be portable to Autoconf 2.60.
53739         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53740         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53741         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53742
53743 2006-04-19  Derek Price  <derek@ximbiot.com>
53744             Eric Blake  <ebb9@byu.net>
53745
53746         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53747         rather than "/full/path.h".  Update comment to match.  Shorten &
53748         generalize m4_translit call via AS_TR_CPP.
53749
53750 2006-04-19  Derek Price  <derek@ximbiot.com>
53751             Eric Blake  <ebb9@byu.net>
53752
53753         * lib/inttypes.h: Correct grammar in comment.
53754
53755 2006-04-18  Derek Price  <derek@ximbiot.com>
53756             Paul Eggert  <eggert@cs.ucla.edu>
53757
53758         * modules/inttypes: New file.
53759         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53760
53761 2006-04-18  Derek Price  <derek@ximbiot.com>
53762             Paul Eggert  <eggert@cs.ucla.edu>
53763
53764         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53765         New files.
53766
53767 2006-04-18  Derek Price  <derek@ximbiot.com>
53768             Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         * lib/inttypes.h: New file.
53771         * lib/strtoimax.c: Assume <inttypes.h>.
53772
53773 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53776         isn't mounted.  Problem reported by Kir Kolyshkin.
53777
53778 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53781         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53782         Derek R. Price.
53783         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53784         implementation.
53785
53786 2006-04-12  Eric Blake  <ebb9@byu.net>
53787
53788         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53789         is now done automatically by the corresponding Autoconf macro.
53790
53791 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53794         time_r.h.
53795
53796 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53797
53798         Merge regex changes from libc, removing some of our
53799         POSIX-conformance changes that were rejected and redoing them in a
53800         less-intrusive way.
53801
53802         * lib/regcomp.c (re_compile_internal, init_dfa):
53803         Length arg is now size_t, not Idx.  All uses changed.
53804         (peek_token): Forward decl now says internal_function.
53805         (__re_error_msgid, __re_error_msgid_idx):
53806         Now static rather than extern with attribute_hidden.
53807         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53808         For some reason libc prefers K&R style defns for external functions.
53809         (regerror) [!defined _LIBC]: Likewise.
53810         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53811         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53812         (build_range_exp, build_collating_symbol):
53813         Use K&R-style defn.
53814         (re_compile_fastmap): Use '\0' to memset, not 0.
53815         (utf8_sb_map): Make the calculations more obvious.
53816         (init_dfa, parse_bracket_exp, build_charclass_op):
53817         Call calloc and cast result, as glibc does.
53818         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53819         (build_range_exp, build_collating_symbol):
53820         Now internal functions.
53821
53822         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53823
53824         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53825         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53826         Don't depend on VMS; depend on __VMS instead, for POSIX
53827         namespace cleanness.
53828         (regoff_t): Define to ssize_t, not long int.
53829
53830         Remove the REG_ macros named below.  Instead, make the old names
53831         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53832         __USE_GNU_REGEX.
53833         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53834         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53835         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53836         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53837         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53838         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53839         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53840         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53841         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53842         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53843         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53844         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53845         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53846         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53847         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53848         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53849         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53850         (REG_NREGS):
53851         Remove.  All uses replaced by the old RE_* names.
53852         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53853         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53854         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53855         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53856         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53857         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53858         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53859         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53860         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53861         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53862         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53863         Don't bother having these macros be independent of each others'
53864         values, since they no longer exist in the POSIX name space.
53865
53866         Rename the following member names back to their old names,
53867         unless !__USE_GNU_REGEX.  All uses changed back.
53868         (buffer): Renamed from re_buffer.
53869         (allocated): Renamed from re_allocated.
53870         (used): Renamed from re_used.
53871         (syntax): Renamed from re_syntax.
53872         (fastmap): Renamed from re_fastmap.
53873         (translate): Renamed from re_translate.
53874         (can_be_null): Renamed from re_can_be_null.
53875         (regs_allocated): Renamed from re_regs_allocated.
53876         (fastmap_accurate): Renamed from re_fastmap_accurate.
53877         (no_sub): Renamed from re_no_sub.
53878         (not_bol): Renamed from re_not_bol.
53879         (not_eol): Renamed from re_not_eol.
53880         (newline_anchor): Renamed from re_newline_anchor.
53881         (num_regs): Renamed from rm_num_regs.
53882         (start): Renamed from rm_start.
53883         (end): Renamed from rm_end.
53884
53885         (free_state): Move up a bit.
53886
53887         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53888         #define to be empty.
53889         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53890         when that is what is intended.
53891         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53892         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53893         (MAX): New macro.
53894         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53895         All uses changed back to re_malloc, etc.  It's now the caller's
53896         responsibility to check for overflow; all callers changed.
53897         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53898         (re_x2nrealloc): Remove.
53899         (free_state): Remove decl.
53900
53901         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53902         (re_set_registers, re_exec):
53903         Use K&R-style defn.
53904
53905         2006-01-31  Roland McGrath  <roland@redhat.com>
53906
53907         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53908         Reported by Mike Frysinger <vapier@gentoo.org>.
53909
53910         2006-01-15  Andreas Jaeger  <aj@suse.de>
53911
53912         [BZ #1950]
53913         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53914         build_wcs_upper_buffer change.
53915         (build_wcs_upper_buffer): Change return type.
53916
53917         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53918
53919         * lib/regex_internal.h: Include <stdint.h> if available.
53920
53921         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53922
53923         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53924
53925         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53926
53927         * lib/regcomp.c: Adjust for changed secondary hash function.
53928
53929         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53930
53931         * lib/regex.h: Pretty printing.
53932         Clean up namespace a bit.
53933
53934         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53935
53936         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53937         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53938
53939         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53940                     Ulrich Drepper  <drepper@redhat.com>
53941
53942         [BZ #1302]
53943         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53944         changed.
53945         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53946
53947         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53948
53949         [BZ #281]
53950         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53951         * lib/regcomp.c: Remove unnecessary uses of
53952         unsigned RE_TRANSLATE_TYPE.
53953         * lib/regex_internal.h: Likewise.
53954         * lib/regex_internal.c: Likewise.
53955         * lib/regexec.c: Likewise.
53956         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53957
53958         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53959
53960         * lib/regexec.c (find_recover_state): Remove unnecessary
53961         initialization.
53962         (transit_state_bkref): Make DFA a const pointer.
53963         (get_subexp): Likewise.
53964         (check_arrival): Likewise.
53965         (update_cur_sifted_state): Likewise.
53966         (re_search_internal): Likewise.
53967         (prune_impossible_nodes): Likewise.
53968         (acquire_init_state_context): Likewise.
53969         (proceed_next_node): Likewise.
53970         (set_regs): Likewise.
53971         (free_fail_stack_return): Likewise.
53972         (check_arrival_expand_ecl): Mark DFA parameter as const.
53973         (check_arrival_expand_ecl_sub): Likewise.
53974         (check_subexp_limits): Likewise.
53975         (sub_epsilon_src_nodes):  Likewise.
53976         (add_epsilon_src_nodes):  Likewise.
53977         (merge_state_array): Likewise.
53978         (update_regs): Likewise.
53979         (build_trtable): Likewise.
53980         (sift_states_backward): Mark MCTX parameter as const.
53981         (build_sifted_states): Likewise.
53982         (update_cur_sifted_state): Likewise.
53983         (sift_states_mkref): Likewise.
53984         (check_arrival_expand_ecl): Mark eclosure as const.
53985         (check_dst_limits_calc_pos_1): Likewise.
53986         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53987         pointer.
53988
53989         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53990
53991         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53992         (transit_state_sb): Likewise.
53993         (transit_state_mb): Likewise.
53994         (sift_states_iter_mb): Likewise.
53995         (check_arrival_add_next_nodes): Likewise.
53996         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53997         [_LIBC] (re_search_2_stub): Use mempcpy.
53998
53999         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54000         mbrtowc for very simple UTF-8 case.
54001
54002         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54003         a pointer-to-const.
54004         (re_acquire_state_context): Likewise.
54005         * lib/regex_internal.h: Adjust prototypes.
54006
54007         * lib/regex.c: Prevent using C++ compilers.
54008
54009         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54010         (re_acquire_state_context): Likewise.
54011
54012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         * modules/regex (Depends-on): Add ssize_t.
54015
54016 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54017
54018         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54019         translation table.
54020
54021 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54024
54025 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54026             Bruno Haible  <bruno@clisp.org>
54027
54028         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54029         <sys/types.h> and <inttypes.h>.
54030
54031 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54032
54033         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54034         `__error_t_defined', so argp.h will not typedef the former.
54035
54036 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54037
54038         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54039         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54040         glibc names.  Even if glibc is changed to conform to POSIX, the
54041         traditional names will be available anyway, since regex depends on
54042         the extensions module.  Also, fix a longstanding typo in the
54043         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54044         reported by Emanuele Giaquinta.  Also, change sense of cached
54045         variable, so that the message makes sense.
54046
54047 2006-03-24  Simon Josefsson  <jas@extundo.com>
54048
54049         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54050         including some doc fixes.
54051         (base64_encode_alloc): Fix +1 bug on allocation failures.
54052
54053 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54054
54055         * lib/base64.c (base64_encode): Do not read past end of array with
54056         unsanitized input on systems with CHAR_BIT > 8.
54057
54058 2006-03-24  Eric Blake  <ebb9@byu.net>
54059
54060         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54061
54062 2006-03-22  Karl Berry  <karl@gnu.org>
54063
54064         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54065         * config/srclistvars.sh (COREUTILS): new var.
54066
54067 2006-03-17  Jim Meyering  <jim@meyering.net>
54068
54069         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54070         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54071
54072 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54075         no longer needs it.  Instead, check that regoff_t is as least
54076         as wide as ptrdiff_t.
54077
54078         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54079         so that our regex.h stays compatible with the installed regex.
54080         This is helpful for installers who configure --without-included-regex.
54081         Problem reported by Emanuele Giaquinta.
54082
54083 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54084
54085         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54086         Typedef to long int, not to off_, as POSIX will likely change
54087         in that direction.
54088
54089 2006-03-15  Eric Blake  <ebb9@byu.net>
54090
54091         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54092
54093 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54094
54095         * lib/argp-help.c (validate_uparams): Fix typo
54096         * lib/argp-parse.c (argp_default_options): Consistently begin help
54097         messages with a lowercase letter.
54098
54099 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54100
54101         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54102         overrun buffers and shouldn't be used (much as gets shouldn't be
54103         used).
54104         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54105
54106 2006-03-08  Simon Josefsson  <jas@extundo.com>
54107
54108         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54109         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54110
54111 2006-03-08  Simon Josefsson  <jas@extundo.com>
54112
54113         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54114         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54115
54116 2006-03-08  Simon Josefsson  <jas@extundo.com>
54117
54118         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54119         signal that configure disabled the device.
54120
54121 2006-03-08  Simon Josefsson  <jas@extundo.com>
54122
54123         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54124         languages.
54125
54126 2006-03-07  Simon Josefsson  <jas@extundo.com>
54127
54128         * modules/getopt (Depends-on): Add unistd.
54129
54130         * modules/unistd: New file.
54131
54132 2006-03-07  Simon Josefsson  <jas@extundo.com>
54133
54134         * modules/gc-random: New file.
54135
54136 2006-03-07  Simon Josefsson  <jas@extundo.com>
54137
54138         * m4/unistd_h.m4: New file.
54139
54140 2006-03-07  Simon Josefsson  <jas@extundo.com>
54141
54142         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54143         test to be side-effect free by storing the result in the cache
54144         variable gl_cv_lib_readline, and moving the assignment of
54145         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54146         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54147
54148 2006-03-07  Simon Josefsson  <jas@extundo.com>
54149
54150         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54151         error on missing devices (the functions will return an error).
54152
54153         * m4/gc.m4: Move random stuff to gc-random.m4
54154
54155 2006-03-07  Simon Josefsson  <jas@extundo.com>
54156
54157         * lib/unistd_.h: New file.
54158
54159 2006-03-07  Simon Josefsson  <jas@extundo.com>
54160
54161         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54162
54163 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54164
54165         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54166         Problem reported by Juan Manuel Guerrero.
54167
54168 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54171         the unistd module.
54172         * lib/getlogin_r.c: Likewise.
54173         * lib/getlogin_r.h: Likewise.
54174         * lib/glob.c: Likewise.
54175         * lib/pagealign_alloc.c: Likewise.
54176         * lib/unistd_.h: Remove; no longer needed.
54177
54178 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54181         Add unistd.
54182         * modules/c-stack (Depends-on): Add unistd.
54183         * modules/getlogin_r: Likewise.
54184         * modules/glob: Likewise.
54185         * modules/pagealign_alloc: Likewise.
54186         * modules/unistd (Files): Remove lib/unistd_.h.
54187         (EXTRA_DIST): Remove.
54188         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54189         need unistd_.h.
54190         (MOSTLYCLEANFILES): Remove unistd.h-t.
54191
54192 2006-03-03  Simon Josefsson  <jas@extundo.com>
54193
54194         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54195
54196 2006-03-03  Simon Josefsson  <jas@extundo.com>
54197
54198         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54199         libidn and bison.
54200
54201 2006-03-03  Simon Josefsson  <jas@extundo.com>
54202
54203         * build-aux/maint.mk: Add indent target.
54204
54205 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54206
54207         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54208         our replacement poll.h in any case, to avoid a differing
54209         declaration from a system header.  Seen on AIX.
54210
54211 2006-03-01  Simon Josefsson  <jas@extundo.com>
54212
54213         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54214         <kasal@ucw.cz>.
54215
54216 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * modules/gettime (Depends-on): Add extensions module.
54219         * modules/nanosleep (Depends-on): Likewise.
54220         * modules/settime (Depends-on): Likewise.
54221
54222 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54225         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54226         pedantically.
54227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54228         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54229
54230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54231         not "==".  Reported by Ralf Wildenhues.
54232
54233 2006-03-01  Karl Berry  <karl@gnu.org>
54234
54235         * doc/Copyright/request-*: new files, synced from gnuorg.
54236
54237 2006-03-01  Karl Berry  <karl@gnu.org>
54238
54239         * config/srclist.txt (Copyright/*): new entries.
54240
54241 2006-02-28  Simon Josefsson  <jas@extundo.com>
54242
54243         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54244
54245 2006-02-27  Simon Josefsson  <jas@extundo.com>
54246
54247         * lib/base64.h: Indent #define's.  From Jim Meyering
54248         <jim@meyering.net>.
54249
54250 2006-02-27  Jim Meyering  <jim@meyering.net>
54251
54252         Revert the change of 2006-02-24, so these files can continue
54253         to be sync'd from gettext.
54254         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54255         of `config.h'.
54256
54257 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * modules/intprops: New file.
54260         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54261         Add intprops.
54262         * modules/getloadavg (Files): Remove lib/intprops.h.
54263         (Depends-on): Add intprops.
54264         * modules/human: Likewise.
54265         * modules/inttostr: Likewise.
54266         * modules/openat: Likewise.
54267         * modules/sig2str: Likewise.
54268         * modules/userspec: Likewise.
54269         * modules/utimecmp: Likewise.
54270         * modules/xnanosleep: Likewise.
54271         * modules/xstrtol: Likewise.
54272
54273 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54274
54275         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54276         * modules/lock-tests (TESTS): Use $(EXEEXT).
54277         * modules/tls-tests: Likewise.
54278         * modules/argp-tests: Likewise.
54279         (check_PROGRAMS): New var, replacing...
54280         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54281
54282 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54283
54284         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54285         `config.h'.
54286
54287 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54290
54291 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54292
54293         Sync from coreutils.
54294         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54295         gl_CHDIR_SAFER.
54296
54297 2006-02-22  Jim Meyering  <jim@meyering.net>
54298
54299         Sync from coreutils.
54300         * m4/chdir-safer.m4: New file.
54301
54302 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54305         AT_FDCWD exceeds INT_MAX.
54306         * lib/openat.h (AT_FDCWD): Likewise.
54307
54308 2006-02-17  Eric Blake  <address@hidden>
54309
54310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54311
54312 2006-02-16  Simon Josefsson  <jas@extundo.com>
54313
54314         * modules/getaddrinfo (Depends-on): Add sys_socket.
54315
54316 2006-02-15  Simon Josefsson  <jas@extundo.com>
54317
54318         * build-aux/maint.mk: Add dsyntax-check rule.
54319
54320 2006-02-15  Eric Blake  <ebb9@byu.net>
54321
54322         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54323         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54324         'present but cannot compile' warnings on cygwin.
54325         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54326         use ws2tcpip.h if sys/socket.h works.
54327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54328         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54329
54330 2006-02-14  Simon Josefsson  <jas@extundo.com>
54331
54332         * modules/maintainer-makefile (Files): Rename.
54333
54334         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54335         and (the local) Makefile.cfg to maint-cfg.mk.
54336
54337         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54338         to the latter.
54339
54340         * modules/maintainer-makefile: New module.
54341
54342         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54343         severaly stripped to make it possible to build it up from scratch
54344         with reliable tests.
54345
54346         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54347         fixes to permit overriding the default actions when configure and
54348         makefile are not available.
54349
54350 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         Sync from coreutils.
54353         * modules/lstat (Depends-on): Don't depend on xalloc.
54354         (License): Change from GPL to LGPL, since this is now simply a
54355         replacement for a libc function.
54356
54357 2006-02-14  Jim Meyering  <jim@meyering.net>
54358
54359         Sync from coreutils.
54360
54361         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54362         failure on deficient systems, and simplify gnulib lgpl dependencies.
54363         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54364         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54365
54366         * lib/xalloc-die.c: Remove unused definition of N_.
54367
54368 2006-02-14  Jim Meyering  <jim@meyering.net>
54369
54370         Sync from coreutils.
54371         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54372         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54373         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54374         double-quote uses of that variable, to accommodate the rare case in
54375         which getmntent is available in none of the libraries checked.  This
54376         happens at least on FreeBSD 5.0.
54377
54378 2006-02-13  Simon Josefsson  <jas@extundo.com>
54379
54380         * gnulib-tool (Usage): Fix --import, from
54381         karl@freefriends.org (Karl Berry).
54382
54383 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54384
54385         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54386
54387 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54388
54389         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54390         "autoupdate" on 2005-12-12.
54391
54392 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         * modules/closeout (Depends-on): Remove atexit.
54395
54396 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54397
54398         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54399         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54400
54401 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54402
54403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54404         __EXTENSIONS__ if this causes compilation to fail.  Problem
54405         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54406         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54407
54408 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54409
54410         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54411         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54413         All uses changed.
54414
54415 2006-01-26  Simon Josefsson  <jas@extundo.com>
54416
54417         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54418         prototype is visible on mingw32.
54419
54420         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54421         for mingw32.
54422
54423         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54424         mingw32).
54425
54426 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54429         attempt to open for write; this always fails, at least on POSIX
54430         hosts.  This reinstates the 2006-01-09 change, which was
54431         inadvertently removed.
54432
54433 2006-01-26  Bruno Haible  <bruno@clisp.org>
54434
54435         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54436         Reported by Paul Eggert.
54437
54438 2006-01-26  Bruno Haible  <bruno@clisp.org>
54439             Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * lib/stdbool_.h (_Bool)
54442         [(! (defined __cplusplus || defined __BEOS__)
54443           && !defined __GNUC__
54444           && !(defined __HP_cc || defined __xlc__
54445                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54446                || defined __sgi))]:
54447         #define to signed char in these cases too; this simplifies
54448         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54449         etc., separately) and makes it more conservative.
54450
54451 2006-01-25  Simon Josefsson  <jas@extundo.com>
54452
54453         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54454         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54455         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54456
54457 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54458
54459         * lib/argp-namefrob.h: Bugfix. Remove stray #
54460
54461 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54462
54463         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54464         so that we test the test.
54465         Check for yet another HP-UX cc bug involving *bool |= bool.
54466
54467 2006-01-25  Karl Berry  <karl@gnu.org>
54468
54469         * config/srclist.txt (vasnprintf.c): sync lost.
54470
54471 2006-01-25  Jim Meyering  <jim@meyering.net>
54472
54473         Sync from the stable (b5) branch of coreutils:
54474
54475         * lib/fts.c (fts_children): Don't let close() clobber errno from
54476         failed fchdir().
54477
54478         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54479         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54480         a dangling symlink.  That can also happen at least for ELOOP.
54481         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54482         FYI, this bug predates the inclusion of fts.c in coreutils.
54483
54484         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54485         in their own block, so pre-c99 compilers don't object.
54486
54487         Avoid the double-free (first in fts_read, second in fts_close) that
54488         would occur when an `active' directory is made inaccessible (e.g.,
54489         via chmod a-x) during a traversal.
54490         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54491         before returning.  Reproduce this failure by
54492         mkdir -p a/b; cd a; chmod a-x . b
54493         Reported by Stavros Passas.
54494
54495 2006-01-25  Jim Meyering  <jim@meyering.net>
54496
54497         * lib/fileblocks.c: Remove more useless parentheses.
54498         * lib/readutmp.h: Likewise.
54499
54500 2006-01-25  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54503         warnings.
54504         Reported by Paul Eggert.
54505
54506 2006-01-25  Bruno Haible  <bruno@clisp.org>
54507
54508         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54509         rid of a trap command. For Solaris sh.
54510         Reported by Mark D. Baushke <mdb@gnu.org>.
54511
54512 2006-01-24  Simon Josefsson  <jas@extundo.com>
54513
54514         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54515         Bruno.
54516
54517 2006-01-24  Karl Berry  <karl@gnu.org>
54518
54519         * config/srclist.txt (argp-namefrob.h): sync lost.
54520
54521 2006-01-24  Jim Meyering  <jim@meyering.net>
54522
54523         * modules/openat (Files): Add lib/intprops.h.
54524         From Mark D. Baushke.
54525
54526 2006-01-24  Jim Meyering  <jim@meyering.net>
54527
54528         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54529         Reported by Mark D. Baushke.
54530
54531 2006-01-24  Jim Meyering  <jim@meyering.net>
54532
54533         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54534
54535 2006-01-24  Bruno Haible  <bruno@clisp.org>
54536
54537         * modules/strnlen (Maintainer): Change from glibc to all.
54538
54539 2006-01-24  Bruno Haible  <bruno@clisp.org>
54540
54541         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54542         Patch by Paul Eggert.
54543
54544 2006-01-24  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54547         already has it.
54548         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54549         2005-11-26.
54550
54551         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54552         'signed char' to avoid problems with the built-in _Bool type.
54553         Reported by Paul Eggert on 2005-11-26.
54554
54555 2006-01-24  Bruno Haible  <bruno@clisp.org>
54556
54557         * gnulib-tool (func_import): Avoid constructing complicated sed
54558         expressions inside backquote.
54559         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54560
54561 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54562
54563         These changes imported from libc.
54564         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54565         test and two separate function calls.
54566         * lib/strndup.c (__strndup): Add libc_hidden_def.
54567
54568 2006-01-23  Simon Josefsson  <jas@extundo.com>
54569
54570         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54571         Remove the test_*_SOURCES variable: automake infers it by default.
54572         * modules/tls-tests: Likewise.
54573
54574 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         Work around porting bugs reported by Dieter in
54577         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54578         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54579         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54580         Include "getopt.h" first, to check interface.
54581         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54582         !HAVE_DECL_GETENV.
54583         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54584         (__strndup): Revert to K&R-style function dfns, the glibc style.
54585         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54586         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54587         Include strnlen.h first, to get prototype properly.
54588         (strnlen): Renamed from __strnlen.
54589         Remove weak alias.
54590
54591 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54594
54595 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         * config/srclist.txt: Adjust to reflect glibc reorganization.
54598         This affects only comments.
54599
54600 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54601
54602          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54603          Reported by Bruce Korb <bkorb@gnu.org>.
54604
54605 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54606
54607         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54608         to pacify gcc -Wswitch-default.
54609
54610 2006-01-22  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54613         temporary buffer for sprintf, take into account the precision also
54614         for 'd', 'i', 'u', 'o', 'x', 'X'.
54615
54616 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54617
54618         * modules/argp-tests: New module
54619         * tests/test-argp.c: New file
54620         * tests/test-argp-2.sh: New file
54621
54622 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54623
54624         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54625         (__argp_base_name): Removed
54626         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54627         typo.
54628         (__argp_base_name): Provide macro definition or extern declaration
54629         depending on the configuration
54630
54631 2006-01-20  Simon Josefsson  <jas@extundo.com>
54632
54633         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54634
54635 2006-01-20  Simon Josefsson  <jas@extundo.com>
54636
54637         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54638
54639 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54642         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54643         Suggested by Bruno Haible.
54644
54645 2006-01-20  Karl Berry  <karl@gnu.org>
54646
54647         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54648         until changes propagate, I guess.
54649
54650 2006-01-19  Simon Josefsson  <jas@extundo.com>
54651
54652         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54653
54654 2006-01-19  Simon Josefsson  <jas@extundo.com>
54655
54656         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54657
54658 2006-01-19  Simon Josefsson  <jas@extundo.com>
54659
54660         * gnulib-tool: Set check_PROGRAMS.
54661
54662         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54663         modules/des-tests, modules/gc-arcfour-tests,
54664         modules/gc-arctwo-tests, modules/gc-des-tests,
54665         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54666         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54667         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54668         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54669         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54670         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54671         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54672         test_*_SOURCES.
54673
54674 2006-01-18  Simon Josefsson  <jas@extundo.com>
54675
54676         * modules/socklen (Depends-on): Depend on sys_socket.
54677
54678 2006-01-18  Simon Josefsson  <jas@extundo.com>
54679
54680         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54681         modules/des-tests, modules/gc-arcfour-tests,
54682         modules/gc-arctwo-tests, modules/gc-des-tests,
54683         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54684         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54685         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54686         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54687         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54688         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54689         $(EXEEXT) to automake TESTS variable, for mingw32.
54690
54691 2006-01-17  Simon Josefsson  <jas@extundo.com>
54692
54693         * modules/socklen (Include): Need sys/socket.h.
54694
54695 2006-01-17  Bruno Haible  <bruno@clisp.org>
54696
54697         * modules/ssize_t (Include): Add <sys/types.h>.
54698
54699 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54702         it's not portable and it doesn't work with cross-compiles.
54703         Problem reported by Bruno Haible.  Fix missing-$ typo in
54704         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54705         -zignore from being used with Sun's C compiler.
54706
54707 2006-01-12  Simon Josefsson  <jas@extundo.com>
54708
54709         * lib/base64.c: Fix warning, reported by Bruno Haible
54710         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54711
54712 2006-01-12  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/ldd: New file.
54715         * build-aux/ldd.sh.in: New file.
54716         * MODULES.html.sh (Support for building libraries and executables): Add
54717         ldd.
54718
54719 2006-01-12  Bruno Haible  <bruno@clisp.org>
54720
54721         * m4/ldd.m4: New file.
54722
54723 2006-01-12  Bruno Haible  <bruno@clisp.org>
54724
54725         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54726         endless loop while replacing $auxdir with build-aux.
54727
54728 2006-01-11  Simon Josefsson  <jas@extundo.com>
54729
54730         * lib/stdint_.h (SIZE_MAX): Add missing (.
54731
54732 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54733
54734         Sync from coreutils.
54735         * lib/md5.c: Fix commentary typos.
54736         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54737         * lib/md5.h (__attribute__): Remove; unused.
54738         * lib/sha1.c: Fix commentary to match md5 better.
54739         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54740         so that we don't need to worry about alignment.  All uses changed.
54741         This merges the 2005-10-28 md5 change into sha1.
54742
54743 2006-01-11  Jim Meyering  <jim@meyering.net>
54744
54745         Sync from coreutils.
54746         * lib/md5.c (OP): Fix spacing.
54747
54748 2006-01-11  Bruno Haible  <bruno@clisp.org>
54749
54750         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54751         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54752         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54753
54754 2006-01-11  Bruno Haible  <bruno@clisp.org>
54755
54756         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54757         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54758         the "early" section as well.
54759
54760 2006-01-11  Bruno Haible  <bruno@clisp.org>
54761
54762         Avoid "ar: no archive members specified" error on MacOS X.
54763         * gnulib-tool (func_modules_add_dummy): New function.
54764         (func_import, func_create_testdir): Invoke it.
54765
54766 2006-01-11  Bruno Haible  <bruno@clisp.org>
54767
54768         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54769         with $auxdir in AC_CONFIG_FILES statements.
54770
54771 2006-01-11  Bruno Haible  <bruno@clisp.org>
54772
54773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54774         Initialize also noinst_HEADERS to empty.
54775
54776 2006-01-11  Bruno Haible  <bruno@clisp.org>
54777
54778         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54779         variables.
54780         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54781         autoreconf.
54782
54783 2006-01-11  Bruno Haible  <bruno@clisp.org>
54784
54785         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54786         overridable by the user.
54787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54788
54789 2006-01-10  Simon Josefsson  <jas@extundo.com>
54790
54791         * modules/sys_socket: New file.
54792
54793 2006-01-10  Simon Josefsson  <jas@extundo.com>
54794
54795         * m4/sys_socket_h.m4: New file.
54796
54797 2006-01-10  Simon Josefsson  <jas@extundo.com>
54798
54799         * lib/socket_.h: New file.
54800
54801 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * modules/readutmp (Maintainer): Add myself.
54804
54805 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54808         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54809         People who are still concerned with buggy memcmp implementations
54810         can invoke gl_FUNC_MEMCMP themselves.
54811
54812 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * lib/regex_internal.h (BITSET_WORD_BITS):
54815         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54816         preprocessor mishandles large unsigned values as if they were signed.
54817         Problem reported by Claudio Fontana in
54818         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54819
54820 2006-01-10  Jim Meyering  <jim@meyering.net>
54821
54822         Avoid the double-free (first in fts_read, second in fts_close) that
54823         would occur when an `active' directory is made inaccessible (e.g.,
54824         via chmod a-x) during a traversal.
54825         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54826         before returning.  Reproduce this failure by
54827         mkdir -p a/b; cd a; chmod a-x . b
54828         Reported by Stavros Passas.
54829
54830         Sync from coreutils.
54831         * lib/sha1.c: Tweak grammar in a comment.
54832
54833 2006-01-10  Jim Meyering  <jim@meyering.net>
54834
54835         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54836         Patch by Joerg Sonnenberger.
54837
54838 2006-01-10  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/readutmp: Depend on module free.
54841         * modules/strtok_r: Depend on module restrict.
54842
54843 2006-01-10  Bruno Haible  <bruno@clisp.org>
54844
54845         * modules/gettext (configure.ac): Add an invocation of
54846         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54847
54848 2006-01-10  Bruno Haible  <bruno@clisp.org>
54849
54850         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54851         Reported by Werner Lemberg <wl@gnu.org>.
54852
54853 2006-01-10  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/localcharset.c: Update from GNU gettext.
54856
54857 2006-01-10  Bruno Haible  <bruno@clisp.org>
54858
54859         * lib/argp.h (__const): Remove macro. Use const instead.
54860         * lib/argp-fmtstream.h (__const): Likewise.
54861         * lib/glob_.h (__const): Remove macro.
54862         * lib/glob-libc.h: Use const instead of __const.
54863
54864 2006-01-10  Bruno Haible  <bruno@clisp.org>
54865
54866         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54867         variable.
54868         Needed to avoid an automake error regarding the 'gettext' module.
54869
54870 2006-01-09  Simon Josefsson  <jas@extundo.com>
54871
54872         * modules/inet_ntop (Depends-on): Add restrict.
54873
54874 2006-01-09  Simon Josefsson  <jas@extundo.com>
54875
54876         * modules/gc-rijndael-tests (License): Put under LGPL.
54877
54878         * modules/gc-des-tests (License): Likewise.
54879
54880         * modules/gc-arcfour-tests (License): Likewise.
54881
54882         * modules/gc-arctwo-tests (License): Likewise.
54883
54884         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54885
54886         * modules/gc-hmac-sha1-tests (Files): Likewise.
54887
54888         * modules/gc-hmac-md5-tests (License): Likewise.
54889
54890         * modules/gc-sha1-tests (License): Likewise.
54891
54892         * modules/gc-md5-tests (License): Likewise.
54893
54894         * modules/gc-md4-tests (License): Likewise.
54895
54896         * modules/gc-md2-tests (License): Likewise.
54897
54898         * modules/gc-tests (License): Likewise.
54899
54900         * modules/des-tests (License): Likewise.
54901
54902         * modules/md4-tests (License): Likewise.
54903
54904         * modules/md2-tests (License): Likewise.
54905
54906 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54907
54908         Sync from coreutils:
54909
54910         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54911         * modules/lib-ignore: New file.
54912         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54913         chdir-safer.m4, lchmod.m4.
54914         * modules/openat: Add mkdirat.c, openat-priv.h.
54915
54916 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         Sync from coreutils.
54919         * m4/lib-ignore.m4: New file.
54920         * m4/lchmod.m4: New file.
54921
54922 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         Sync from coreutils.
54925         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54926         for write access: POSIX says that must fail.
54927         * lib/fts.c (diropen): Likewise.
54928         * lib/save-cwd.c (save_cwd): Likewise.
54929         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54930         well, for minor improvements on hosts that lack O_DIRECTORY.
54931         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54932         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54933         Fall back on chown if open failed with EACCES.
54934
54935         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54936         Report an error at compile-time if only a 1-second nominal clock
54937         resolution is found.
54938
54939         * lib/lchmod.h: New file.
54940         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54941         (make_dir_parents): Use lchown rather than chown, and
54942         lchmod rather than chmod.
54943
54944         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54945         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54946         "proc" reported by n0dalus.
54947
54948         * lib/mountlist.c: Include <limits.h>.
54949         (dev_from_mount_options)
54950         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54951         New function.  It no longer assumes "dev=" has the System V meaning
54952         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54953         (read_file_system_list)
54954         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54955         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54956         dev= in that case.
54957
54958         * lib/posixtm.h (PDS_PRE_2000): New macro.
54959         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54960         allow_century.  All usages changed.  Reject dates outside the range
54961         1969-1999 if PDS_PRE_2000 is used.
54962
54963 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         Sync from coreutils.
54966         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54967         (Time of day items): Mention the possibility of leap seconds.
54968         Problem reported by Dr. David Alan Gilbert.
54969
54970 2006-01-09  Jim Meyering  <jim@meyering.net>
54971
54972         Sync from coreutils.
54973
54974         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54975
54976         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54977
54978         * lib/modechange.c (mode_compile): Reject an invalid mode string
54979         that starts with an octal digit.  From Andreas Gruenbacher.
54980
54981         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54982         and dup to open_safer and dup_safer, respectively.
54983         (openat_permissive): Fix typo in comment.
54984
54985         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54986         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54987         (_): Remove; no longer needed.
54988         (openat): Renamed from rpl_openat; no need for rpl_openat
54989         since openat.h renames openat for us.
54990         Replace most of the body with a call to openat_permissive,
54991         to avoid duplicate code.
54992         Port to (probably hypothetical) environments were mode_t is
54993         wider than int.
54994         (openat_permissive): Require mode arg, so that we can check
54995         types better.  Put it just after flags.  Change cwd failure
54996         indicator from pointer-to-bool to pointer-to-errno-value.
54997         All callers changed.
54998         Invoke openat_save_fail and/or openat_restore_fail if
54999         cwd_errno is null, so that openat can call us.
55000         (openat_permissive, fdopendir, fstatat, unlinkat):
55001         Simplify errno handling to avoid some duplicate code,
55002         as it's OK to set errno on success.
55003         * lib/openat.h: Revamp code so that function macros depend on
55004         __OPENAT_PREFIX only, not also on AT_FDCWD.
55005         (openat_ro): Remove.  Caller changed to use openat_permissive.
55006         (openat_permissive): Now a macro, if not a function.
55007         (openat_restore_fail, openat_save_fail): Now always functions,
55008         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55009
55010         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55011         and openat.c.
55012         * lib/mkdirat.c: Include openat-priv.h.
55013         Remove definitions of macros defined therein.
55014         * lib/openat.c: Likewise.
55015
55016         * lib/mkdirat.c (mkdirat): New file and function.
55017         * lib/openat.h (mkdirat): Declare.
55018
55019         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55020
55021         * lib/openat.h (openat_permissive): Declare.
55022         (openat_ro): Define.
55023
55024         * lib/openat.c (EXPECTED_ERRNO): New macro.
55025         (openat_permissive): New function -- used in remove.c rewrite.
55026         (all functions): Set errno just before returning, only if there
55027         was an actual failure.
55028         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55029
55030         Emulate openat-family functions using Linux's procfs, if possible.
55031         Idea and some code based on Ulrich Drepper's glibc changes.
55032
55033         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55034         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55035         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55036         before falling back on save_cwd and restore_cwd.
55037         (fdopendir, fstatat, unlinkat): Likewise.
55038
55039         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55040         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55041
55042         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55043         as second argument to va_arg.  Otherwise, some versions of gcc
55044         warn that `if this code is reached, the program will abort'.
55045
55046 2006-01-09  Jim Meyering  <jim@meyering.net>
55047
55048         Sync from coreutils.
55049         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55050         Require openat-priv.h.
55051
55052 2006-01-09  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/strnlen (Include): Use strnlen.h.
55055
55056 2006-01-09  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55059
55060 2006-01-09  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/sysexit_.h (EX_OK): New macro.
55063         Suggested by Martin Lambers <marlam@marlam.de>.
55064
55065 2006-01-09  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55068         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55069
55070 2006-01-09  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55073         numbers.
55074
55075 2006-01-09  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55078         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55079         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55080         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55081
55082 2006-01-09  Bruno Haible  <bruno@clisp.org>
55083
55084         * build-aux/javacomp.sh.in: New file, moved from lib/.
55085         * modules/javacomp-script (Files): Update.
55086         (configure.ac): Add AC_CONFIG_FILES invocation.
55087         (EXTRA_DIST): Remove variable.
55088
55089         * build-aux/javaexec.sh.in: New file, moved from lib/.
55090         * modules/javaexec (Files): Update.
55091         (configure.ac): Add AC_CONFIG_FILES invocation.
55092         (EXTRA_DIST): Remove javaexec.sh.in.
55093
55094         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55095         * modules/csharpcomp-script (Files): Update.
55096         (configure.ac): Add AC_CONFIG_FILES invocation.
55097         (EXTRA_DIST): Remove variable.
55098
55099         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55100         * modules/csharpexec (Files): Update.
55101         (configure.ac): Add AC_CONFIG_FILES invocation.
55102         (EXTRA_DIST): Remove csharpexec.sh.in.
55103
55104 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55105
55106         Sync from coreutils.
55107
55108         Add POSIX ACL support
55109         * lib/acl.h (copy_acl, set_acl): Add declarations.
55110         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55111         systems other than Linux.
55112         (chmod_or_fchmod): New function: use fchmod when possible,
55113         and chmod otherwise.
55114         (file_has_acl): Add a POSIX ACL implementation, with a
55115         Linux-specific subcase.
55116         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55117         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55118         acls are unsupported.
55119         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55120         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55121         are unsupported.
55122
55123 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55124
55125         Sync from coreutils.
55126         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55127
55128 2006-01-07  Bruno Haible  <bruno@clisp.org>
55129
55130         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55131         gl_EARLY.
55132
55133 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55134
55135         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55136         Problem reported for Mingw by Mark Junker.
55137
55138 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * README: Gnulib normally doesn't generate a tarball.
55141
55142 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55145         long int, not int, for nanosecond counts, so that people who are
55146         used to POSIX struct timespec won't be surprised.  Reported by Jim
55147         Meyering.
55148
55149 2005-12-28  Bruno Haible  <bruno@clisp.org>
55150
55151         * build-aux/config.rpath: Update from GNU gettext.
55152
55153 2005-12-16  Jim Meyering  <jim@meyering.net>
55154
55155         * modules/fprintftime: New module.
55156         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55157
55158 2005-12-16  Jim Meyering  <jim@meyering.net>
55159
55160         * m4/fprintftime.m4: New file.
55161
55162 2005-12-16  Jim Meyering  <jim@meyering.net>
55163
55164         * lib/fprintftime.c, lib/fprintftime.h: New files.
55165
55166 2005-12-15  Simon Josefsson  <jas@extundo.com>
55167
55168         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55169         new m4/socklen.m4.
55170
55171 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55172
55173         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55174         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55175
55176 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55177
55178         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55179         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55180         struct uparams is valid. Fall back to the default values if it is
55181         not.
55182
55183 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55184
55185         * modules/argp (Files): Add argp-pin.c
55186         (Depends-on): dirname
55187         (lib_SOURCES): Add argp-pin.c
55188
55189 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55190
55191         * m4/argp.m4:  Check if program_invocation_name and
55192         program_invocation_short_name are declared and define appropriate
55193         macros if they are not.
55194
55195 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55196
55197         * lib/argp-help.c (__argp_base_name): New function
55198         (__argp_short_program_name): Rewrite using __argp_base_name
55199         * lib/argp-namefrob.h: Define program_invocation_name and
55200         program_invocation_short_name if requested
55201         (__argp_base_name): Add prototype
55202         * lib/argp-parse.c (argp_def): Use gettext wrappers
55203         (argp_default_parser): Use __argp_base_name
55204         * lib/argp-pin.c: New file. Defines program_invocation_name and
55205         program_invocation_short_name on systems that lack them.
55206
55207 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55208
55209         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55210         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55211         porting problem reported by Georg Schwarz in
55212         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55213
55214 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55215
55216         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55217         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55218         porting problem reported by Georg Schwarz in
55219         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55220
55221 2005-12-05  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55224         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55225         Reported by Mark Junker <mjscod@gmx.de>.
55226
55227 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55230         Use implementation from Albert Chin, with some
55231         comments/corrections by Stepan Kasal and myself.
55232
55233 2005-12-02  Bruno Haible  <bruno@clisp.org>
55234
55235         * gnulib-tool (func_import): Accept GPLed build tool modules when
55236         --lgpl is given.
55237         * modules/csharpcomp-script: New file.
55238         * modules/csharpcomp: Depend on it.
55239         * modules/javacomp-script: New file.
55240         * modules/javacomp: Depend on it.
55241         Suggested by Simon Josefsson.
55242
55243 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55244
55245         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55246         statement, to work around an HP-UX 10.20 compiler bug reported by
55247         Peter O'Gorman.
55248
55249 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * modules/savedir (Depends-on): Add openat.
55252
55253 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55254
55255         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55256         (uintmax_t) [defined uintmax_t]: Do not declare.
55257         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55258         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55259         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55260         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55261         sake of portability to weird hosts that C allows (though we don't
55262         know of any practical examples).
55263
55264         * lib/savedir.h (fdsavedir): New decl.
55265         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55266         contains most of the former guts of savedir.
55267         (savedir): Use savedirstream.
55268         Include "openat.h".
55269
55270 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55271
55272         * modules/obstack (Files): Add m4/ulonglong.m4.
55273         Problem reported by Davide Angelocola.
55274
55275 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55278         coreutils no longer futzes with rounding modes.
55279
55280 2005-11-14  Jim Meyering  <jim@meyering.net>
55281
55282         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55283         replacement of mkstemp.
55284
55285 2005-11-10  Simon Josefsson  <jas@extundo.com>
55286
55287         * lib/readline.c: Remove EOL.
55288
55289 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55290
55291         * modules/gethrxtime (Depends-on): Add gettime.
55292
55293 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55294
55295         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55296         or gettimeofday; no longer needed.
55297
55298 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55301         time business.
55302         (gethrxtime) [! (HAVE_NANOUPTIME
55303         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55304         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55305         our own approximation.
55306
55307 2005-11-08  Eric Blake  <ebb9@byu.net>
55308
55309         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55310
55311 2005-11-08  Eric Blake  <ebb9@byu.net>
55312
55313         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55314
55315 2005-11-04  Bruno Haible  <bruno@clisp.org>
55316
55317         * gnulib-tool: Implement --update mode.
55318
55319 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55320
55321         Fix porting problem reported by Theodoros V. Kalamatianos.
55322         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55323         Don't assume that futimes failing means we must fail.
55324
55325 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55326
55327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55328         variables to suggest the intended function of the PATH_MAX check.
55329
55330 2005-10-30  Kean Johnston  <jkj@sco.com>
55331
55332         Trivial changes to support SCO systems.
55333         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55334         as PATH_MAX.
55335         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55336         where __ptr is null when no I/O is pending.
55337
55338 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55341         leave errno alone.  Problem reported by Dmitry V. Levin.
55342
55343 2005-10-28  Simon Josefsson  <jas@extundo.com>
55344
55345         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55346         Test more.
55347
55348         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55349
55350         * modules/md2, modules/md2-tests: New files.
55351
55352 2005-10-28  Simon Josefsson  <jas@extundo.com>
55353
55354         * m4/inet_ntop.m4: More tests.
55355
55356         * m4/gc-md2.m4, md2.m4: New file.
55357
55358 2005-10-28  Simon Josefsson  <jas@extundo.com>
55359
55360         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55361         "restrict" keywords, as per POSIX.  Protect the function
55362         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55363         Don't use K&R prototypes.  Check the sprintf return values.
55364         Re-define EAFNOSUPPORT if not present.  Indent.
55365
55366         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55367         suggested by Bruno Haible <bruno@clisp.org>.
55368
55369         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55370
55371         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55372
55373         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55374         libgcrypt).
55375
55376         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55377
55378         * lib/md2.h, lib/md2.c: New files.
55379
55380 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55381
55382         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55383         errno alone.  Problem reported by Frederic Jolliton.
55384
55385 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         * modules/verify (License): Change from GPL to LGPL.  This is a
55388         tiny module and there are apparently near-equivalents that are
55389         under the BSD license.
55390
55391 2005-10-24  Simon Josefsson  <jas@extundo.com>
55392
55393         * modules/sha1: Relicense to LGPL.
55394
55395 2005-10-24  Simon Josefsson  <jas@extundo.com>
55396
55397         * lib/md4.h: Shrink buffer size, now that we changed the type.
55398
55399 2005-10-23  Simon Josefsson  <jas@extundo.com>
55400
55401         * gnulib-tool (func_import): Fix --tests-base.
55402
55403 2005-10-22  Simon Josefsson  <jas@extundo.com>
55404
55405         * modules/arcfour (Depends-on): Need stdint.
55406
55407 2005-10-22  Simon Josefsson  <jas@extundo.com>
55408
55409         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55410         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55411
55412 2005-10-22  Simon Josefsson  <jas@extundo.com>
55413
55414         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55415         suggested by Bruno Haible <bruno@clisp.org>.
55416
55417 2005-10-22  Simon Josefsson  <jas@extundo.com>
55418
55419         * lib/crc.h: Include stddef.h, for size_t.
55420
55421 2005-10-22  Simon Josefsson  <jas@extundo.com>
55422
55423         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55424         arcfour_context struct (simplify test vector testing in GNU
55425         Shishi).
55426
55427 2005-10-21  Simon Josefsson  <jas@extundo.com>
55428
55429         * modules/des, modules/des-tests: New files.
55430
55431         * modules/gc-des, modules/gc-des-tests: New files.
55432
55433         * tests/test-des.c, tests/test-gc-des.c: New file.
55434
55435 2005-10-21  Simon Josefsson  <jas@extundo.com>
55436
55437         * modules/arctwo, modules/arctwo-tests: New files.
55438
55439         * tests/test-arctwo.c: New file.
55440
55441         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55442
55443         * tests/test-gc-arctwo.c: New file.
55444
55445 2005-10-21  Simon Josefsson  <jas@extundo.com>
55446
55447         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55448         Bruno Haible <bruno@clisp.org>.
55449
55450         * m4/gc-des.m4: New file.
55451
55452 2005-10-21  Simon Josefsson  <jas@extundo.com>
55453
55454         * m4/arctwo.m4: New file.
55455
55456         * m4/gc-arctwo.m4: New file.
55457
55458 2005-10-21  Simon Josefsson  <jas@extundo.com>
55459
55460         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55461         block.
55462
55463 2005-10-21  Simon Josefsson  <jas@extundo.com>
55464
55465         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55466         <bruno@clisp.org>.
55467
55468         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55469
55470         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55471         Bruno Haible <bruno@clisp.org>.
55472
55473         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55474         <bruno@clisp.org>.
55475
55476 2005-10-21  Simon Josefsson  <jas@extundo.com>
55477
55478         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55479
55480 2005-10-21  Simon Josefsson  <jas@extundo.com>
55481
55482         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55483
55484 2005-10-21  Simon Josefsson  <jas@extundo.com>
55485
55486         * lib/des.h, lib/des.c: New files.
55487
55488         * lib/gc-gnulib.c: Support DES.c
55489
55490 2005-10-21  Simon Josefsson  <jas@extundo.com>
55491
55492         * lib/arctwo.h, lib/arctwo.c: New files.
55493
55494         * lib/gc-gnulib.c: Support ARCTWO.
55495
55496 2005-10-21  Simon Josefsson  <jas@extundo.com>
55497
55498         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55499         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55500
55501 2005-10-21  Simon Josefsson  <jas@extundo.com>
55502
55503         * gnulib-tool (func_import, func_create_testdir): Define automake
55504         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55505         Makefile.am snippet),
55506         suggested by Bruno Haible <bruno@clisp.org>.
55507
55508         * modules/gc (Makefile.am): Use it.
55509
55510 2005-10-21  Bruno Haible  <bruno@clisp.org>
55511
55512         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55513         patch.
55514
55515 2005-10-19  Simon Josefsson  <jas@extundo.com>
55516
55517         * tests/test-gc-rijndael.c: New file.
55518
55519         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55520
55521 2005-10-19  Simon Josefsson  <jas@extundo.com>
55522
55523         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55524         interface too.
55525
55526 2005-10-19  Simon Josefsson  <jas@extundo.com>
55527
55528         * tests/test-gc-arcfour.c: New file.
55529
55530         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55531
55532 2005-10-19  Simon Josefsson  <jas@extundo.com>
55533
55534         * modules/gc-md4, modules/gc-md4-tests: New file.
55535
55536         * tests/test-gc-md4.c: New file.
55537
55538 2005-10-19  Simon Josefsson  <jas@extundo.com>
55539
55540         * m4/gc-md4.m4: New file.
55541
55542 2005-10-19  Simon Josefsson  <jas@extundo.com>
55543
55544         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55545         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55546         <kasal@ucw.cz>.
55547
55548 2005-10-19  Simon Josefsson  <jas@extundo.com>
55549
55550         * m4/gc-arcfour.m4: New file.
55551
55552         * m4/gc-rijndael.m4: New file.
55553
55554 2005-10-19  Simon Josefsson  <jas@extundo.com>
55555
55556         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55557
55558 2005-10-19  Simon Josefsson  <jas@extundo.com>
55559
55560         * lib/gc-gnulib.c: Support ARCFOUR.
55561
55562 2005-10-19  Simon Josefsson  <jas@extundo.com>
55563
55564         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55565         support.
55566
55567         * lib/gc.h: Add ECB enum type.
55568
55569         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55570
55571 2005-10-18  Simon Josefsson  <jas@extundo.com>
55572
55573         * tests/test-md5.c: New file.
55574
55575         * modules/md5-tests: New file.
55576
55577 2005-10-18  Simon Josefsson  <jas@extundo.com>
55578
55579         * tests/test-md4.c: New file.
55580
55581         * modules/md4, modules/md4-tests: New files.
55582
55583 2005-10-18  Simon Josefsson  <jas@extundo.com>
55584
55585         * m4/md4.m4: New file.
55586
55587 2005-10-18  Simon Josefsson  <jas@extundo.com>
55588
55589         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55590
55591 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55592
55593         * gnulib-tool (func_create_testdir): Omit the second check whether
55594         BUILT_SOURCES in nonempty.
55595
55596 2005-10-17  Simon Josefsson  <jas@extundo.com>
55597
55598         * tests/test-rijndael.c: New file.
55599
55600 2005-10-17  Simon Josefsson  <jas@extundo.com>
55601
55602         * modules/sha1: Depend on stdint instead of md5.
55603
55604         * modules/md5: Depend on stdint, remove uint32_t.
55605
55606 2005-10-17  Simon Josefsson  <jas@extundo.com>
55607
55608         * modules/gc-sha1-tests: New file.
55609
55610         * tests/test-gc-sha1.c: New file.
55611
55612 2005-10-17  Simon Josefsson  <jas@extundo.com>
55613
55614         * m4/md5.m4: Remove call to uint32_t.m4.
55615
55616 2005-10-17  Simon Josefsson  <jas@extundo.com>
55617
55618         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55619
55620         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55621         md5.h.
55622
55623         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55624
55625         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55626
55627 2005-10-17  Simon Josefsson  <jas@extundo.com>
55628
55629         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55630
55631 2005-10-17  Simon Josefsson  <jas@extundo.com>
55632
55633         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55634
55635 2005-10-17  Simon Josefsson  <jas@extundo.com>
55636
55637         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55638
55639         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55640
55641 2005-10-17  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55644         that it can also be used in a test.
55645
55646 2005-10-16  Bruno Haible  <bruno@clisp.org>
55647
55648         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55649         TESTS_ENVIRONMENT, so that individual tests can augment it.
55650
55651         * gnulib-tool (func_create_testdir): Use an intermediate target for
55652         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55653         macros, like $(ALLOCA_H), which cannot be passed through the command
55654         line.
55655
55656 2005-10-15  Simon Josefsson  <jas@extundo.com>
55657
55658         * modules/rijndael-tests: New file.
55659
55660         * modules/rijndael: New file.
55661
55662 2005-10-15  Simon Josefsson  <jas@extundo.com>
55663
55664         * m4/rijndael.m4: New file.
55665
55666 2005-10-15  Simon Josefsson  <jas@extundo.com>
55667
55668         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55669
55670         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55671
55672 2005-10-14  Simon Josefsson  <jas@extundo.com>
55673
55674         * tests/test-arcfour.c: New file.
55675
55676         * modules/arcfour, modules/arcfour-tests: New files.
55677
55678 2005-10-14  Simon Josefsson  <jas@extundo.com>
55679
55680         * m4/arcfour.m4: New file.
55681
55682 2005-10-14  Simon Josefsson  <jas@extundo.com>
55683
55684         * lib/arcfour.h, lib/arcfour.c: New files.
55685
55686 2005-10-14  Roland McGrath  <roland@redhat.com>
55687
55688         Import from libc.  [BZ #1331]
55689         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55690         macro argument.
55691         Reported by Matej Vela <vela@debian.org>.
55692
55693 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55694
55695         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55696         include <wchar.h>; no longer needed.
55697
55698 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55701
55702 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55703         and  Ulrich Drepper  <drepper@redhat.com>
55704
55705         Import from libc.
55706         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55707         instead of inline stream orientation test and two separate
55708         function calls.  Pay no attention to USE_IN_LIBIO.
55709
55710 2005-10-13  Simon Josefsson  <jas@extundo.com>
55711
55712         * modules/gc-hmac-md5-tests: New file.
55713
55714         * tests/test-gc-hmac-sha1.c: New file.
55715
55716         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55717
55718         * modules/gc-hmac-md5-tests: New file.
55719
55720         * tests/test-gc-md5.c: New file.
55721
55722         * modules/gc-md5-tests: New file.
55723
55724 2005-10-13  Simon Josefsson  <jas@extundo.com>
55725
55726         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55727         Move memory allocation outside of loop.
55728
55729 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55730
55731         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55732         intermediate directory is in a read-only file system.  Problem
55733         reported by Eric Blake.
55734
55735 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55736
55737         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55738
55739 2005-10-12  Simon Josefsson  <jas@extundo.com>
55740
55741         * tests/test-hmac-sha1.c: New file.
55742
55743         * modules/hmac-sha1-tests: New file.
55744
55745         * modules/hmac-sha1: New file.
55746
55747 2005-10-12  Simon Josefsson  <jas@extundo.com>
55748
55749         * modules/gc-sha1: New file.
55750
55751 2005-10-12  Simon Josefsson  <jas@extundo.com>
55752
55753         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55754
55755         * tests/test-gc-pbkdf2-sha1.c: New file.
55756
55757 2005-10-12  Simon Josefsson  <jas@extundo.com>
55758
55759         * modules/gc-md5, modules/gc-hmac-md5: New files.
55760
55761         * modules/gc (Files): Remove md5, memxor and hmac files.
55762
55763 2005-10-12  Simon Josefsson  <jas@extundo.com>
55764
55765         * m4/gc-pbkdf2-sha1.m4: New file.
55766
55767         * m4/gc-hmac-sha1.m4: New file.
55768
55769         * m4/gc-sha1: New file.
55770
55771         * m4/hmac-sha1.m4: New file.
55772
55773 2005-10-12  Simon Josefsson  <jas@extundo.com>
55774
55775         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55776
55777         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55778
55779 2005-10-12  Simon Josefsson  <jas@extundo.com>
55780
55781         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55782         suggested by Bruno Haible <bruno@clisp.org>.
55783
55784 2005-10-12  Simon Josefsson  <jas@extundo.com>
55785
55786         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55787
55788 2005-10-12  Simon Josefsson  <jas@extundo.com>
55789
55790         * lib/gc-pbkdf2-sha1.c: New file.
55791
55792         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55793
55794 2005-10-12  Simon Josefsson  <jas@extundo.com>
55795
55796         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55797
55798         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55799
55800 2005-10-12  Simon Josefsson  <jas@extundo.com>
55801
55802         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55803         GC_USE_HMAC_MD5, respectively.
55804
55805         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55806         (gc_md5): Fix typo.
55807
55808         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55809
55810         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55811
55812         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55813
55814 2005-10-12  Bruno Haible  <bruno@clisp.org>
55815
55816         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55817         Reported by Stepan Kasal <kasal@ucw.cz>.
55818
55819 2005-10-11  Simon Josefsson  <jas@extundo.com>
55820
55821         * tests/test-crc.c: New file.
55822
55823         * modules/crc, modules/crc-tests: New files.
55824
55825 2005-10-11  Simon Josefsson  <jas@extundo.com>
55826
55827         * m4/crc.m4: New file.
55828
55829 2005-10-11  Simon Josefsson  <jas@extundo.com>
55830
55831         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55832
55833         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55834
55835         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55836
55837 2005-10-11  Simon Josefsson  <jas@extundo.com>
55838
55839         * lib/crc.h, lib/crc.c: New files.
55840
55841         * lib/gc.h (gc_hash_buffer): Add doc.
55842
55843 2005-10-11  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/c-strcasestr: New file.
55846         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55847
55848 2005-10-11  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/c-strcase: New file.
55851         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55852
55853 2005-10-11  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/strcasecmp.c: Include limits.h.
55856         (strcasecmp): Avoid integer overflow on exotic platforms.
55857         * lib/strncasecmp.c: Include limits.h.
55858         (strncasecmp): Avoid integer overflow on exotic platforms.
55859         Reported by Paul Eggert.
55860
55861 2005-10-11  Bruno Haible  <bruno@clisp.org>
55862
55863         * lib/c-strcasestr.h: New file, from GNU gettext.
55864         * lib/c-strcasestr.c: New file, from GNU gettext.
55865
55866 2005-10-11  Bruno Haible  <bruno@clisp.org>
55867
55868         * lib/c-strcase.h: New file, from GNU gettext.
55869         * lib/c-strcasecmp.c: New file, from GNU gettext.
55870         * lib/c-strncasecmp.c: New file, from GNU gettext.
55871
55872 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * modules/mempcpy (License): GPL -> LGPL.
55875         * modules/strchrnul (License): Likewise.
55876         * modules/sysexits (License): Likewise.
55877
55878 2005-10-08  Simon Josefsson  <jas@extundo.com>
55879
55880         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55881
55882 2005-10-07  Simon Josefsson  <jas@extundo.com>
55883
55884         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55885
55886 2005-10-06  Simon Josefsson  <jas@extundo.com>
55887
55888         * tests/test-hmac-md5.c: New file.
55889
55890         * modules/hmac-md5-tests: New file.
55891
55892         * modules/hmac-md5: New file.
55893
55894 2005-10-06  Simon Josefsson  <jas@extundo.com>
55895
55896         * m4/hmac-md5.m4: New file.
55897
55898         * m4/memxor.m4: Require gl_C_RESTRICT.
55899
55900 2005-10-06  Simon Josefsson  <jas@extundo.com>
55901
55902         * lib/memxor.c (memxor): Avoid casts and warnings.
55903
55904 2005-10-06  Simon Josefsson  <jas@extundo.com>
55905
55906         * lib/hmac-md5.c: New file.
55907
55908         * lib/hmac.h: New file.
55909
55910 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55913         promotes to int, not unsigned int, to catch the AIX 5.3
55914         compiler bug.
55915
55916 2005-10-05  Simon Josefsson  <jas@extundo.com>
55917
55918         * modules/memxor: New file.
55919
55920         * modules/iconv (Files): Move config.rpath to havelib, it is used
55921         there.
55922
55923         * modules/havelib (Files): Add config.rpath.
55924
55925 2005-10-05  Simon Josefsson  <jas@extundo.com>
55926
55927         * m4/memxor.m4: New file.
55928
55929 2005-10-05  Simon Josefsson  <jas@extundo.com>
55930
55931         * lib/memxor.c (memxor): Fix compiler error.
55932
55933         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55934         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55935
55936         * lib/memxor.h, lib/memxor.c: New files.
55937
55938         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55939         we assume all systems have it, suggested by Jim Meyering
55940         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55941         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55942         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55943         same reasons.
55944
55945 2005-10-05  Simon Josefsson  <jas@extundo.com>
55946
55947         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55948
55949 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55950
55951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55952         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55953         needed, since the source code now assumes these .h files.
55954
55955 2005-10-05  Derek Price  <derek@ximbiot.com>
55956
55957         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55958
55959 2005-10-05  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/stdint (License): Change to LGPL.
55962
55963 2005-10-04  Simon Josefsson  <jas@extundo.com>
55964
55965         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55966         D. Baushke" <mdb@gnu.org>.
55967
55968 2005-10-04  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/verify.h (verify_true): Provide alternative definition for C++.
55971
55972 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55973
55974         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55975         (SSIZE_MAX): New macro, if not already defined.
55976         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55977         than 2 GiB.
55978
55979 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         Sync from coreutils.
55982         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55983         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55984         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55985         ULLONG_MAX doesn't work with 2.7.2.1.
55986
55987 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55990         From Ben Pfaff.
55991
55992         * modules/exclude (Depends-on): Depend on verify.
55993         * modules/strtoimax (Depends-on): Likewise.
55994         * modules/utimecmp (Depends-on): Likewise.
55995
55996 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55997
55998         * lib/exclude.c: Include verify.h.
55999         (verify): Remove.  All callers changed to use verify.h's version.
56000         * lib/strtoimax.c: Likewise.
56001         * lib/utimecmp.c: Likewis.e
56002
56003         Sync from coreutils.
56004         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56005         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56006         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56007         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56008         bother returning ENOSYS if settimeofday or stime fails; just let
56009         them return whatever errno they want to return.
56010         * lib/utimens.c: Include unistd.h, for dup2.
56011         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56012         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56013
56014 2005-10-02  Jim Meyering  <jim@meyering.net>
56015
56016         Sync from coreutils.
56017         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56018         from glibc-2.2.5 that fails for read-only files.
56019
56020 2005-10-02  Jim Meyering  <jim@meyering.net>
56021
56022         Sync from coreutils.
56023         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56024         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56025         `#if HAVE_CONFIG_H'.
56026         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56027         Remove AT_FDCWD test.
56028         Do not consume the fd unless successful.
56029         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56030         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56031         block, so that we don't even try to compile it if settimeofday is
56032         available.  This works around a compilation failure on OSF1 V5.1,
56033         due to stime requiring a `long int*' while tv_sec is `int'.
56034
56035 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56036
56037         Sync from coreutils.
56038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56039         against `yes', rather than just testing for nonempty.
56040
56041 2005-10-01  Simon Josefsson  <jas@extundo.com>
56042
56043         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56044         and Darwin.
56045
56046         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56047         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56048         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56049         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56050         Check if struct addrinfo is declared.
56051
56052 2005-10-01  Simon Josefsson  <jas@extundo.com>
56053
56054         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56055         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56056         AI_* and EAI_* definitions.  Protect function declarations.
56057
56058 2005-10-01  Jim Meyering  <jim@meyering.net>
56059
56060         Sync from coreutils.
56061
56062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56063         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56064         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56066         in the inet and nsl libraries.  Required on Solaris 5.7.
56067
56068 2005-10-01  Jim Meyering  <jim@meyering.net>
56069
56070         Sync from coreutils.
56071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56072         in the inet and nsl libraries.  Required on Solaris 5.7.
56073
56074 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56075
56076         * lib/getdelim.c (getdelim): Remove unused variables.
56077
56078 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56079
56080         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56081         so that the code works even with ancient cpp.  Portability problem
56082         with GCC 2.7.2.1 reported by Thomas M.Ott.
56083
56084 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56085
56086         * modules/regex (Depends-on): Add strcase.
56087
56088         * modules/gethostname (Licence): Change from GPL to LGPL, since
56089         gethostname.c is a trivial implementation of a standard library
56090         function.
56091         * modules/poll (License): Change from GPL to LGPL, since it's
56092         derived from LGPL code.
56093
56094 2005-09-27  Jim Meyering  <jim@meyering.net>
56095
56096         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56097         HAVE_CONFIG_H.
56098
56099         * lib/intprops.h (signed_type_or_expr__): Define.
56100         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56101         for unsigned types.
56102
56103 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56104
56105         * lib/verify.h (verify_expr): Remove, replacing with:
56106         (verify_true): New macro that returns true instead of void.
56107         (verify_type__): Remove.
56108         (verify): Use verify_true rather than verify_type__.
56109
56110 2005-09-26  Bruno Haible  <bruno@clisp.org>
56111
56112         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56113         is necessary.
56114         (lib_SOURCES): Remove mbchar.c.
56115         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56116         (Files): Add m4/mbrtowc.m4.
56117         * modules/mbiter: Likewise.
56118         * modules/mbuiter: Likewise.
56119
56120 2005-09-26  Bruno Haible  <bruno@clisp.org>
56121
56122         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56123         compile mbchar.c if they are not both present.
56124         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56125         * m4/mbiter.m4 (gl_MBITER): Likewise.
56126         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56127         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56128         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56129
56130 2005-09-25  Jim Meyering  <jim@meyering.net>
56131
56132         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56133         also uses socklen_t.
56134
56135 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         * lib/utimens.c (ENOSYS): Define if not already defined.
56138         (futimens): Support having a null PATH if the file descriptor
56139         is nonnegative.
56140
56141         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56142         Remove.
56143         (__attribute): Define to empty unless GCC 3.1 or later.
56144         This works around a core dump on OpenBSD 3.4, which has GCC
56145         2.95.3, which dumps core when given __attribute__(()).  It also
56146         simplifies other tests, since we really don't want to bother with
56147         worrying about which ancient version of GCC supported what.
56148         Original problem reported by Yoann Vandoorselaere, with part of
56149         the fix suggested by Derek Price.
56150
56151 2005-09-24  Jim Meyering  <jim@meyering.net>
56152
56153         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56154         so we can once again use a positive bitfield width of 1 -- now we
56155         don't have to explain why we were using a bitfield width of 2.
56156
56157 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56158
56159         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56160         and similarly for the other external symbols.  Problem reported
56161         by James Gallager.
56162
56163         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56164         bug reported by Jim Meyering.
56165
56166         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56168         not needed, since socklen is a prerequisite module.
56169
56170 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56171
56172         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56173         Problem reported by Eric Blake.
56174         (getaddrinfo): Initialize se so that it's not garbage.
56175         Redo internal storage allocation so that it doesn't make unportable
56176         assumptions about alignment.
56177         Fix a memory leak.
56178
56179         * lib/utimens.c (futimens): Use futimesat if available.
56180         Prefer it to futimes since it doesn't have the futimes bug.
56181
56182         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56183         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56184         Instead, declare a function that returns a pointer to an array,
56185         and use verify_type__ to declare the size of the array.
56186         Problem and germ of a solution reported by Bruno Haible.
56187         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56188         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56189
56190 2005-09-23  Jim Meyering  <jim@meyering.net>
56191
56192         Sync from coreutils.
56193         Correct build failure (socklen_t not defined) on at least
56194         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56196
56197 2005-09-23  Jim Meyering  <jim@meyering.net>
56198
56199         * modules/getaddrinfo (Depends-on): Add socklen.
56200
56201 2005-09-23  Bruno Haible  <bruno@clisp.org>
56202
56203         * tests/test-verify.c: New file.
56204
56205 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56206
56207         Sync from coreutils.
56208
56209         * modules/argmatch (Depends-on): Add verify.
56210         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56211         unistd-safer.
56212         * modules/save-cwd (Depends-on): Likewise.
56213
56214         * modules/openat (Files): Add lib/openat-die.c.
56215         (Depends-on): Remove error, exitfail.
56216         Add dirname.
56217
56218         * modules/verify: New file.
56219         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56220         with "verify" module.
56221
56222 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56223
56224         Sync from coreutils.
56225
56226         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56227         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56228         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56229         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56230         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56231         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56232         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56233         Don't bother checking for string.h, stdlib.h, unistd.h.
56234         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56235         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56236         module's job.
56237         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56238         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56239
56240         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56241         (gl_GETDATE): Use it.
56242
56243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56244
56245 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56246
56247         Sync from coreutils.
56248
56249         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56250         stat-time.h.
56251         * lib/argmatch.h: Include verify.h
56252         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56253         (ARGMATCH_ASSERT): Remove; unused.
56254         * lib/canonicalize.c: Assume STDC_HEADERS.
56255         * lib/exclude.c: Include "strcase.h".
56256         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56257         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56258         and stdio-safer.h.
56259         (getusershell): Call fopen, not fopen_safer.
56260         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56261         Do not include unistd-safer.h.
56262         (save_cwd): Don't call fd_safer; no longer needed
56263         now that we include fcntl--.h.
56264
56265         * lib/getdate.y (relative_time): New type.
56266         (RELATIVE_TIME_0): New constant.
56267         (parser_control): Use relative_time instead of doing it ourselves.
56268         (%union): Add new relative_time rel member.
56269         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56270         Now typeless.
56271         (relunit, relunit_snumber): Now of type rel.
56272         (zone, rel, relunit, get_date): Adjust to above changes.
56273
56274         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56275         Do not include unistd-safer.h.
56276         (getloadavg): Don't call fd_safer; no longer needed
56277         now that we include fcntl--.h.
56278
56279         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56280         (make_dir_parents): Treat ENOSYS like EEXIST.
56281
56282         Improve quality of diagnostics on restore_cwd failure.
56283         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56284         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56285         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56286         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56287         each time through the loop.  Do not diagnose restore_cwd failure;
56288         that is the caller's job (and perhaps the caller does not care).
56289
56290         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56291         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56292         If the file already exists but is not a directory, don't bother
56293         to try to make its parents.
56294         Close potential file descriptor leak if we can't chdir("/") (!).
56295         Don't always return true if chdir($PWD) fails; return true only
56296         if the requested action was done successfully (except for the
56297         chdir($PWD)).
56298         Don't log final directory unless we actually made it.
56299         Refactor to avoid duplicate code to fix up permissions.
56300         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56301
56302         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56303         to make it a bit faster and (I hope) clearer.
56304         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56305         Fix bug in formats like %2N.
56306
56307         * lib/verify.h: New file.
56308
56309 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         Sync from coreutils.
56312         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56313
56314 2005-09-22  Jim Meyering  <jim@meyering.net>
56315
56316         Sync from coreutils.
56317
56318         * m4/lstat.m4 (gl_FUNC_LSTAT):
56319         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56320         Remove obsolete comment.
56321         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56322         * m4/xstrtod.m4: Likewise.
56323
56324         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56325
56326 2005-09-22  Jim Meyering  <jim@meyering.net>
56327
56328         Sync from coreutils.
56329
56330         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56331
56332         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56333         the .tm_year member, since otherwise gcc-4.0 would now warn about
56334         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56335
56336         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56337         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56338
56339         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56340         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56341         when run in a time zone for which daylight savings time is in effect
56342         for the starting date.
56343
56344         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56345         stop us from restricting permissions of just-created absolute-named
56346         directories.
56347         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56348         to restore initial working directory.
56349         * lib/mkdir-p.c (make_dir_parents): New parameter:
56350         different_working_dir, to tell caller if/when we change the working
56351         directory and are unable to return to the initial one.
56352         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56353         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56354         `return false'.  This fixes a bug introduced on 2004-07-30.
56355
56356         * lib/openat.c (fdopendir): Be sure to close the supplied
56357         file descriptor before returning.  This makes our replacement
56358         implementation a little closer to Solaris's, where fdopendir
56359         ties the file descriptor to the returned DIR* pointer.
56360         * lib/openat.c (unlinkat): New function.
56361         * lib/openat.h (unlinkat): Add prototype.
56362         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56363         (openat_restore_fail): Rename from openat_restore_die.
56364         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56365
56366         Provide an alternative to exiting immediately upon save_cwd or
56367         restore_cwd failure.  Now, an application can arrange e.g.,
56368         to perform a longjump in that case.
56369         * lib/openat.c: Include dirname.h.
56370         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56371         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56372         and openat_restore_die rather than calling error directly.
56373         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56374
56375         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56376         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56377         define.
56378
56379         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56380         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56381                             int utc, int nanoseconds);
56382         Background:
56383         date should not have to allocate a megabyte of virtual memory to
56384         handle a format argument like +%1048575T.  When implemented with
56385         strftime, it must allocate such a buffer, use strftime to fill it
56386         in, print it, then free it.
56387         With fprintftime, it simply prints everything and exits.
56388         With no need for memory allocation, that's one fewer way to fail.
56389         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56390         optional field width, not before, so we accept %9:z, not %:9z.
56391         (my_strftime): Be sure to use L_('x') for literals.
56392
56393         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56394         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56395         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56396         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56397         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56398         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56399         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56400         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56401         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56402         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56403         * lib/xgethostname.c, lib/xreadlink.c:
56404         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56405
56406         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56407         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56408         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56409         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56410         and don't include <sys/file.h>).
56411
56412 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56413
56414         Sync from coreutils.
56415
56416         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56417         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56418         [!LDAV_DONE]: Avoid unused variable warning.
56419
56420 2005-09-21  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/unicodeio.h (unicode_to_mb): New declaration.
56423
56424 2005-09-20  Derek Price  <derek@ximbiot.com>
56425
56426         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56427         getaddrinfo.h.
56428
56429 2005-09-20  Bruno Haible  <bruno@clisp.org>
56430
56431         * gnulib-tool: Remove trailing slashes from the values specified for
56432         --source-base, --m4-base, --tests-base, --aux-dir.
56433         Suggested by Simon Josefsson <jas@extundo.com>.
56434
56435 2005-09-20  Bruno Haible  <bruno@clisp.org>
56436
56437         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56438         func_modules_to_filelist, func_import, func_create_testdir): Make all
56439         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56440         change when gnulib-tool is invoked in a different locale.
56441
56442 2005-09-19  Simon Josefsson  <jas@extundo.com>
56443
56444         * m4/socklen.m4: Fix typo.
56445
56446 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56447
56448         Use a consistent style for including <config.h>.
56449         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56450         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56451         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56452         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56453         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56454         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56455         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56456         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56457         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56458         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56459         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56460         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56461         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56462         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56463         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56464         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56465         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56466         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56467         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56468         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56469         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56470         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56471         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56472         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56473         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56474         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56475         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56476         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56477         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56478         lib/xstrtoumax.c, lib/yesno.c:
56479         Standardize inclusion of config.h.
56480         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56481         lib/inttostr.h:  Removed inclusion of config.h from header files.
56482         * lib/inttostr.c:  Adjusted in-tree users.
56483         * lib/timespec.h: Remove superfluous warning to include config.h.
56484         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56485         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56486         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56487         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56488         config.h with HAVE_CONFIG_H.
56489
56490 2005-09-19  Jim Meyering  <jim@meyering.net>
56491
56492         * modules/pathmax (License): Change to LGPL.
56493
56494 2005-09-19  Derek Price  <derek@ximbiot.com>
56495
56496         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56497
56498 2005-09-19  Bruno Haible  <bruno@clisp.org>
56499
56500         * gnulib-tool (import): Provide default for --tests-base.
56501
56502 2005-09-19  Bruno Haible  <bruno@clisp.org>
56503
56504         * doc/quote.texi: New file, extracted from gnulib.texi.
56505         * doc/ctime.texi: New file, extracted from gnulib.texi.
56506         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56507         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56508         * doc/gnulib.texi: Include them.
56509
56510 2005-09-18  Bruno Haible  <bruno@clisp.org>
56511
56512         Portability fix.
56513         * gnulib-tool (func_readlink): New function.
56514         (func_ln_if_changed): Use it.
56515
56516 2005-09-18  Bruno Haible  <bruno@clisp.org>
56517
56518         * gnulib-tool: Support --with-tests also with --import.
56519         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56520         (func_import): Use variables $testsbase and $inctests. Emit a
56521         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56522         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56523         SUBDIRS += $testsdir.
56524         (func_create_testdir): Update.
56525
56526 2005-09-18  Bruno Haible  <bruno@clisp.org>
56527
56528         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56529         instead of $dry_run.
56530         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56531         (func_ln_if_changed): Don't handle dry-run here.
56532         (func_import): In dry-run mode, detect more precisely which actions
56533         would be performed, and don't use "...ing" verbs.
56534
56535 2005-09-18  Bruno Haible  <bruno@clisp.org>
56536
56537         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56538         (func_import): Use join on two temporary files instead of three nested
56539         loops, in order to determine which files are new or old.
56540
56541 2005-09-18  Bruno Haible  <bruno@clisp.org>
56542
56543         * gnulib-tool (func_import): Comment out code that spits out the
56544         new files with --dry-run.
56545
56546 2005-09-18  Bruno Haible  <bruno@clisp.org>
56547
56548         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56549
56550 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * lib/stat-time.h: New file.
56553         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56554         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56555         in a different way.
56556         (timespec_cmp): New function.
56557         * lib/utimecmp.c: Include stat-time.h.
56558         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56559         members exist, not on the obsolescent ST_MTIM_NSEC.
56560         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56561
56562 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56563
56564         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56565
56566 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56567
56568         * MODULES.html.sh (File system functions): Add stat-time.
56569         * modules/stat-time: New file.
56570         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56571         is now done in a different way, by the stat-time module.
56572         * modules/utimecmp (Depends-on): Add stat-time.
56573
56574 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         * m4/st_mtim.m4: Remove.  Superseded by...
56577         * m4/stat-time.m4: New file.
56578         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56579         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56580
56581 2005-09-15  Derek Price  <derek@ximbiot.com>
56582
56583         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56584
56585 2005-09-15  Derek Price  <derek@ximbiot.com>
56586
56587         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56588         * lib/regex_internal.c: Ditto, using this...
56589         (__GNUC_PREREQ): ...new macro.
56590         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56591         using...
56592         (__GNUC_PREREQ): ...this new macro.
56593
56594         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56595
56596 2005-09-15  Derek Price  <derek@ximbiot.com>
56597             Paul Eggert  <eggert@cs.ucla.edu>
56598
56599         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56600         changes, consolidating in...
56601         * lib/regex_internal.h: ...this file.
56602
56603 2005-09-13  Jim Meyering  <jim@meyering.net>
56604
56605         * lib/canon-host.c: Filter through gnu indent and reword comments
56606         slightly.
56607         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56608
56609 2005-09-13  Derek Price  <derek@ximbiot.com>
56610
56611         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56612         failure.
56613         Reported by Jim Meyering  <jim@meyering.net>.
56614
56615 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56616
56617         * lib/base64.c: Typo.
56618         (base64_encode): Put b64str in initialized data section.
56619
56620 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         Merge glibc and coreutils changes into gnulib, plus a few
56623         extra fixes.
56624         * lib/md5.c: Use #error rather than a string.
56625         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56626         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56627         (__attribute__): Define to empty for non recent-GCC.
56628         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56629         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56630         Renamed from their non-__ counterparts, with new macros replacing
56631         them if not _LIBC.  Add __THROW attribute.
56632         (rol): Remove.
56633         (struct md5_ctx): Align buffer if using GCC.
56634         * lib/sha1.h (struct sha1_ctx): Likewise.
56635         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56636         The old name was backwards.
56637         (NOTSWAP): Remove; not used.
56638         (rol): New macro, moved here from md5.h.
56639         (sha1_process_block): Remove a FIXME that doesn't make sense.
56640
56641 2005-09-12  Derek Price  <derek@ximbiot.com>
56642
56643         Return usable errors from canon-host.
56644         * lib/canon-host.h: New file.
56645         * lib/canon-host.c (canon_host): Wrap...
56646         (canon_host_r): ...this new function, which now relies exclusively on
56647         getaddrinfo.
56648         (ch_strerror): New function.
56649         (last_cherror): New global.
56650         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56651         interface.
56652         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56653         void *.
56654         (freeaddrinfo): Free ai->ai_canonname when set.
56655
56656 2005-09-12  Derek Price  <derek@ximbiot.com>
56657
56658         Make canon-host require getaddrinfo.
56659         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56660         AC_LIBSOURCE canon-host.h.  Call...
56661         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56662         gl_GETADDRINFO.
56663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56664
56665 2005-09-12  Derek Price  <derek@ximbiot.com>
56666
56667         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56668         LGPL.
56669         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56670
56671 2005-09-12  Derek Price  <derek@ximbiot.com>
56672
56673         * lib/gai_strerror.c: Include config.h when available.  Include
56674         getaddrinfo.h before other headers to test interface.
56675         Reported by Larry Jones <lawrence.jones@ugs.com>.
56676
56677 2005-09-12  Derek Price  <derek@ximbiot.com>
56678             Paul Eggert  <eggert@cs.ucla.edu>
56679
56680         * modules/glob (Files): Add glob-libc.h.
56681
56682 2005-09-12  Derek Price  <derek@ximbiot.com>
56683             Paul Eggert  <eggert@cs.ucla.edu>
56684
56685         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56686         glob_.h, glob-libc.h.
56687         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56688
56689 2005-09-12  Derek Price  <derek@ximbiot.com>
56690             Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56693         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56694         protecting things that should be done only in gnulib contexts.
56695         * lib/glob_.h: New file, containing only the glob things needed for
56696         gnulib.
56697         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56698         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56699         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56700         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56701         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56702         and to respect the namespace rules better.
56703
56704 2005-09-08  Simon Josefsson  <jas@extundo.com>
56705
56706         * modules/socklen: New file.
56707
56708 2005-09-08  Simon Josefsson  <jas@extundo.com>
56709
56710         * m4/socklen.m4: New file.
56711
56712 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * modules/utimens (Files): Add m4/utimbuf.m4, since
56715         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56716         Reported by Sergey Poznyakoff.
56717
56718 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56721         definitions, since that's the preferred style in glibc.
56722         Fix a minor spacing issue, and update copyright notice to match
56723         glibc's.
56724
56725 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56728
56729 2005-09-06  Simon Josefsson  <jas@extundo.com>
56730
56731         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56732         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56733
56734 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56737         warning.
56738
56739 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         * config/srclist.txt: Add glibc bug 1302.
56742
56743 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56744
56745         Change bitset word type from unsigned int to unsigned long int,
56746         as this has better performance on typical 64-bit hosts.
56747         Port bitset code to hosts with unusual word sizes.
56748         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56749         (build_collating_symbol):
56750         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56751         argument is a bitset.  This is merely a style issue, but it makes
56752         it clearer that an entire array is expected.
56753         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56754         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56755         Port to the case where bitset_word is not the same as unsigned int.
56756         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56757         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56758         Likewise.
56759         * lib/regexec.c (check_dst_limits_calc_pos_1,
56760         check_subexp_matching_top):
56761         (build_trtable, group_nodes_into_DFAstates):
56762         Likewise.
56763         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56764         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56765         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56766         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56767         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56768         * lib/regcomp.c (optimize_subexps, lower_subexp):
56769         Work even if bitset_word has holes in its bitwise representation.
56770         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56771         * lib/regexec.c (check_dst_limits_calc_pos_1,
56772         check_subexp_matching_top):
56773         Likewise.
56774         * lib/regex_internal.c (re_string_reconstruct):
56775         Don't assume UCHAR_MAX == 255.
56776         * lib/regex_internal.h (bitset_set_all): Likewise.
56777         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56778         All uses changed.
56779         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56780         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56781         All uses changed.
56782         (BITSET_WORD_MAX): New macro.
56783         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56784         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56785         (bitset_empty, bitset_copy):
56786         Prefer sizeof (bitset) to multiplying it out ourselves.
56787         (bitset_not_merge): Remove; unused.
56788         (bitset_contain): Return bool, not unsigned int with one bit on.
56789         All callers changed.
56790         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56791         alignment than re_node_set; do this by defining a new internal
56792         type struct dests_alloc and using it to allocate memory.
56793
56794 2005-09-05  Bruno Haible  <bruno@clisp.org>
56795
56796         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56797         links.
56798
56799 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56800
56801         * modules/size_max (Makefile.am): Add size_max.h
56802
56803 2005-09-04  Derek Price  <derek@ximbiot.com>
56804
56805         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56806
56807 2005-09-03  Simon Josefsson  <jas@extundo.com>
56808
56809         * gnulib-tool: Fix typo.
56810
56811 2005-09-03  Simon Josefsson  <jas@extundo.com>
56812
56813         * config/srclist.txt: Add glibc bug 1293.
56814
56815 2005-09-03  Derek Price  <derek@ximbiot.com>
56816
56817         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56818         From Larry Jones <lawrence.jones@ugs.com>.
56819
56820 2005-09-02  Simon Josefsson  <jas@extundo.com>
56821
56822         * modules/socklen: New file.
56823
56824 2005-09-02  Simon Josefsson  <jas@extundo.com>
56825
56826         * modules/havelib: New module.
56827
56828         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56829         Use havelib.
56830
56831 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56832
56833         Check for arithmetic overflow when calculating sizes, to prevent
56834         some buffer-overflow issues.  These patches are conservative, in the
56835         sense that when I couldn't determine whether an overflow was possible,
56836         I inserted a run-time check.
56837         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56838         macros.
56839         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56840         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56841         (re_xnrealloc, re_x2nrealloc): New inline functions.
56842         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56843         parse_bracket_exp):
56844         (build_equiv_class, build_charclass): Check for arithmetic overflow
56845         in size expression calculations.
56846         * lib/regex_internal.c (re_string_realloc_buffers):
56847         (build_wcs_upper_buffer, re_node_set_add_intersect):
56848         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56849         (re_dfa_add_node, register_state): Likewise.
56850         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56851         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56852         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56853         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56854
56855 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56858         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56859
56860 2005-09-02  Bruno Haible  <bruno@clisp.org>
56861
56862         Support for lib vs. lib64 distinction on biarch platforms.
56863         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56864         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56866
56867 2005-09-02  Bruno Haible  <bruno@clisp.org>
56868
56869         * gnulib-tool (import): In the other first-use case, provide defaults
56870         as well.
56871
56872 2005-09-02  Bruno Haible  <bruno@clisp.org>
56873
56874         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56875         patches not yet found in the latest gettext release.
56876
56877 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56878
56879         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56880         to avoid a collision with bits/local_lim.h in glibc.
56881         All uses changed.  Problem reported by Dmitry V. Levin in
56882         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56883
56884         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56885         bugs in int versus size_t comparisons.
56886         (re_string_context_at): Fix bug where the code assumed that
56887         Idx is signed.
56888
56889         Use bool where appropriate.
56890         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56891         All callers changed.
56892         (calc_eclosure_iter): Likewise, for ROOT arg.
56893         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56894         (build_charclass_op): Likewise, for NON_MATCH arg.
56895         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56896         (re_string_construct_common): Likewise, for ICASE arg.
56897         * lib/regexec.c (re_search_2_stub, re_search_stub):
56898         Likewise, for RET_LEN arg.
56899         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56900         (set_regs): Likewise, for FL_BACKTRACK arg.
56901         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56902         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56903         (calc_eclosure_iter, parse_bracket_exp):
56904         Use bool for internal variables that are booleans.
56905         * lib/regexec.c (re_search_internal, check_matching,
56906         proceed_next_node):
56907         (set_regs, build_sifted_states, sift_states_bkref):
56908         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56909         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56910         (find_collation_sequence_value):
56911         Likewise.
56912         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56913         (re_node_set_compare):
56914         Return bool, not int. All callers changed.
56915         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56916         (build_trtable, check_node_accept): Likewise.
56917         * lib/regex_internal.h: Include stdbool.h.
56918
56919         Fix bugs uncovered when converting to bool.
56920         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56921         failure instead of charging ahead blindly.
56922         * lib/regex_internal.c (register_state): Likewise.
56923         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56924         for freeing internal storage.
56925         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56926         bitset pieces used as boolean, to avoid undefined behavior
56927         on hosts that do int overflow checking.
56928
56929 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56930
56931         * config/srclist.txt: Add glibc bugs 1285-1287.
56932
56933 2005-09-01  Jim Meyering  <jim@meyering.net>
56934
56935         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56936         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56937         Require gl_STAT_MACROS, too.
56938
56939 2005-09-01  Bruno Haible  <bruno@clisp.org>
56940
56941         * gnulib-tool (import): In the first-use case, provide defaults.
56942
56943 2005-09-01  Bruno Haible  <bruno@clisp.org>
56944
56945         * gnulib-tool (func_import): Remove the .tmp files.
56946
56947 2005-09-01  Bruno Haible  <bruno@clisp.org>
56948
56949         * gnulib-tool (func_import): Fix handling of symbolic links.
56950
56951 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56954         old glibc regex code mishandles strings longer than 2**31 bytes.
56955         This patch fixes this when the regex code is used in gnulib
56956         (i.e., outside glibc).
56957
56958         This patch should not affect the use of the regex code inside
56959         glibc.  No doubt this problem also needs to be handled for glibc
56960         as well, but the result will be an incompatible change to the
56961         glibc ABI, and the old ABI will have to be supported too.  That
56962         can be the the subject for another patch.
56963
56964         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56965         governing whether the rest of this patch is active.  By default,
56966         the macro is disabled and the patch has no effect.
56967         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56968         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56969         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56970         (re_match_2, re_set_registers): Use the new types.
56971         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56972         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56973         New macros.
56974         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56975         (re_string_context_at, bin_tree_t, re_dfastate_t):
56976         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56977         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56978         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56979         (re_string_char_size_at, re_string_wchar_at):
56980         (re_string_elem_size_at):
56981         Use the new types and macros to port to 64-bit hosts.
56982         Use unsigned types for internal values, so that the code
56983         mostly works even for arrays larger than SSIZE_MAX.
56984         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56985         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56986         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56987         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56988         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56989         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56990         (calc_inveclosure, parse_dup_op, build_range_exp):
56991         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56992         (fetch_number, create_token_tree, mark_opt_subexp):
56993         Likewise.
56994         * lib/regex_internal.c (re_string_construct_common,
56995         create_ci_newstate):
56996         (create_cd_newstate, re_string_allocate, re_string_construct):
56997         (re_string_realloc_buffers, build_wcs_upper_buffer):
56998         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56999         (re_string_reconstruct, re_string_peek_byte_case):
57000         (re_string_fetch_byte_case, re_string_context_at):
57001         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57002         (re_node_set_init_copy, re_node_set_add_intersect):
57003         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57004         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57005         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57006         (re_acquire_state, re_acquire_state_context, register_state):
57007         Likewise.
57008         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57009         search_cur_bkref_entry):
57010         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57011         (re_search_internal, re_search_2_stub, re_search_stub)
57012         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57013         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57014         (update_cur_sifted_state, check_dst_limits):
57015         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57016         (check_subexp_limits, sift_states_bkref, merge_state_array):
57017         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57018         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57019         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57020         (expand_bkref_cache, check_node_accept_bytes):
57021         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57022         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57023         (acquire_init_state_context, check_halt_node_context):
57024         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57025         (sift_states_backward, clean_state_log_if_needed):
57026         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57027         (find_recover_state, transit_state_sb, transit_state_mb):
57028         (transit_state_bkref, build_trtable, match_ctx_clean):
57029         Likewise.
57030         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57031         to work around an assumption that REG_MISSING is negative.
57032
57033         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57034         (seek_collating_symbol_entry) [defined _LIBC]:
57035         (lookup_collation_sequence_value) [defined _LIBC]:
57036         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57037         Use prototypes rather than old-style function definitions.
57038         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57039         (transit_state_sb) [0]:
57040         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57041
57042         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57043         rm_eo.
57044
57045         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57046         (optimize_subexps, lower_subexp):
57047         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57048         since the signed shift might overflow.  Use 1u<<31 instead.
57049         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57050         Likewise.
57051         * lib/regexec.c (check_dst_limits_calc_pos_1,
57052         check_subexp_matching_top): Likewise.
57053
57054         * lib/regcomp.c (optimize_subexps, lower_subexp):
57055         Use CHAR_BIT rather than 8, for clarity.
57056         * lib/regexec.c (check_dst_limits_calc_pos_1):
57057         (check_subexp_matching_top): Likewise.
57058         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57059         have to worry about portability issues when shifting it left.
57060         Remove no-longer-needed test for table_size > 0.
57061         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57062         in a word, as the resulting behavior is undefined.
57063         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57064         in one case, a <= should have been an <, and in another case the
57065         whole test was missing.
57066         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57067         the standard name CHAR_BIT.
57068         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57069         this is not true on one's complement and signed-magnitude hosts.
57070
57071         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57072         next_last_offset.
57073         (struct re_dfa_t): Remove unused member states_alloc.
57074         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57075
57076 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57079         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57080         and large-file glibc and in 32-bit large-file Solaris.
57081
57082 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57083
57084         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57085         lengths fit in regoff_t; this isn't true if regoff_t is the same
57086         width as size_t.
57087         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57088         (= START + RANGE) instead of RANGE.  This avoids overflow
57089         problems when regoff_t is the same width as size_t.
57090         All callers changed.
57091         (re_search_2_stub): Check for overflow when adding the
57092         sizes of the two strings.
57093         (re_search_stub): Check for overflow when adding START
57094         to RANGE; if it occurs, substitute the extreme value.
57095
57096 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57099
57100 2005-08-31  Jim Meyering  <jim@meyering.net>
57101
57102         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57103         a pointer-to-const.
57104         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57105         (register_state): Likewise.
57106         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57107         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57108         (group_nodes_into_DFAstates): Likewise.
57109
57110 2005-08-31  Jim Meyering  <jim@meyering.net>
57111
57112         * check-module: Add a FIXME comment.
57113
57114 2005-08-31  Eric Blake  <ebb9@byu.net>
57115
57116         * modules/unistd-safer (Files): Add unistd--.h.
57117         * modules/stdio-safer (Files): Add stdio--.h.
57118
57119 2005-08-31  Derek Price  <derek@ximbiot.com>
57120
57121         * lib/getdelim.c (getdelim): Return EOF on EOF.
57122         Reported by Larry Jones <lawrence.jones@ugs.com>.
57123
57124 2005-08-31  Bruno Haible  <bruno@clisp.org>
57125
57126         Avoid unnecessary diffs in the generated lib/Makefile.am.
57127         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57128         the generated files.
57129         (func_import): Don't set cmd.
57130
57131 2005-08-31  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/strstr.c: Include <stddef.h>, for NULL.
57134         * lib/strcasestr.c: Likewise.
57135         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57136
57137 2005-08-31  Bruno Haible  <bruno@clisp.org>
57138
57139         * gnulib-tool: New option --macro-prefix.
57140         (func_import): Use macro_prefix.
57141         (import): Handle option --macro-prefix.
57142
57143 2005-08-31  Bruno Haible  <bruno@clisp.org>
57144
57145         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57146         Also use new variables cached_lgpl, cached_libtool.
57147
57148 2005-08-31  Bruno Haible  <bruno@clisp.org>
57149
57150         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57151         always instantiating them.
57152
57153 2005-08-31  Bruno Haible  <bruno@clisp.org>
57154
57155         * gnulib-tool (func_import): Read the previous cached settings
57156         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57157         earlier added by gnulib but are now dropped. Warn when a gnulib file
57158         overwrites a non-gnulib file.
57159
57160 2005-08-31  Bruno Haible  <bruno@clisp.org>
57161
57162         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57163         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57164         projects that don't keep autogenerated files in CVS. Put into
57165         actioncmd only the specified modules, not the transitive closure.
57166
57167 2005-08-31  Bruno Haible  <bruno@clisp.org>
57168
57169         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57170         Create directories that shall be filled.
57171         (import): Don't look for gl_* macros in configure.ac. Recurse across
57172         all directories containing a gnulib-cache.m4 files, if meaningful.
57173
57174 2005-08-31  Bruno Haible  <bruno@clisp.org>
57175
57176         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57177         (import): Set seen_libtool when we see gl_LIBTOOL.
57178
57179 2005-08-31  Bruno Haible  <bruno@clisp.org>
57180
57181         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57182         declaration macro definitions from generated gnulib.m4.
57183
57184 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57185
57186         * lib/iconvme.h: Add prototype for iconv_alloc.
57187
57188 2005-08-29  Simon Josefsson  <jas@extundo.com>
57189
57190         * lib/iconvme.c: Fix errno.
57191
57192 2005-08-29  Bruno Haible  <bruno@clisp.org>
57193
57194         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57195         that it works when the directory contains spaces.
57196
57197 2005-08-29  Bruno Haible  <bruno@clisp.org>
57198
57199         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57200
57201 2005-08-29  Bruno Haible  <bruno@clisp.org>
57202
57203         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57204         Emit more advice.
57205
57206 2005-08-29  Bruno Haible  <bruno@clisp.org>
57207         and Stepan Kasal  <kasal@ucw.cz>
57208
57209         * check-module: If more parameters are given, check each of them
57210         separately; add more exceptions, as noted by Jim Meyering.
57211         (check_module): New procedure.
57212         (%exempt_header): Now contains all exceptions.
57213
57214 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57215
57216         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57217
57218 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57219
57220         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57221
57222 2005-08-28  Bruno Haible  <bruno@clisp.org>
57223
57224         * m4/gnulib-tool.m4: New file.
57225
57226 2005-08-27  Jim Meyering  <jim@meyering.net>
57227
57228         * modules/unistd-safer (Files): Add pipe-safer.c.
57229         * modules/fcntl-safer (Files): Add creat-safer.c.
57230
57231 2005-08-27  Jim Meyering  <jim@meyering.net>
57232
57233         * m4/stdlib-safer.m4: New file.  From coreutils.
57234         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57235         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57236         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57237         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57238         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57239
57240 2005-08-27  Jim Meyering  <jim@meyering.net>
57241
57242         * lib/fopen-safer.c: Merge minor changes from coreutils.
57243         * lib/dup-safer.c: Likewise.
57244         * lib/fd-safer.c: Likewise.
57245
57246         Merge from coreutils.
57247         * lib/stdio--.h: New file.
57248         * lib/stdlib--.h: New file.
57249         * lib/mkstemp-safer.c: New file.
57250
57251         GNU tar needs these.
57252         * lib/pipe-safer.c: New file.
57253         * lib/creat-safer.c: New file.
57254         * lib/fcntl--.h (creat): Define to creat_safer.
57255         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57256         * lib/unistd--.h (pipe): Define to pipe_safer.
57257         * lib/unistd-safer.h: Declare pipe_safer.
57258
57259 2005-08-26  Simon Josefsson  <jas@extundo.com>
57260
57261         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57262         Haible <bruno@clisp.org>.
57263
57264 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57265
57266         * lib/regex_internal.h: Remove all references to
57267         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57268         or better.
57269         (bitset_not, bitset_merge, bitset_not_merge):
57270         (bitset_mask, re_string_allocate, re_string_construct):
57271         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57272         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57273         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57274         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57275         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57276         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57277         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57278         (re_acquire_state_context):
57279         Remove unnecessary forward decls.
57280         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57281         Put __attribute at function definition,
57282         now that the function decl has been removed.
57283         * lib/regex_internal.c (re_string_peek_byte_case):
57284         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57285         Likewise.
57286
57287 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57288
57289         * m4/regex.m4: Add AC_PREREQ(2.50).
57290         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57291
57292 2005-08-25  Simon Josefsson  <jas@extundo.com>
57293
57294         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57295         __fsetlocking.
57296
57297 2005-08-25  Simon Josefsson  <jas@extundo.com>
57298
57299         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57300         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57301         GLIBC specific code.
57302
57303 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57304
57305         Make regex safe for g++.  This fixes one real bug (an "err"
57306         that should have been "*err").  g++ problem reported by
57307         Sam Steingold.
57308         * lib/regex_internal.h (re_calloc): New macro, consistent with
57309         re_malloc etc.  All callers of calloc changed to use re_calloc.
57310         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57311         not int.  All callers changed.
57312         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57313         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57314         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57315         (find_recover_state): Change "err" to "*err"; this fixes what
57316         appears to be a real bug.
57317         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57318         versus int.
57319
57320 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57321
57322         * modules/regex (Depends-on): Add malloc, since the code
57323         assumes that !malloc(0) means failure.
57324
57325 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57326
57327         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57328
57329         alloca modernization/simplification for regex.
57330         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57331         needs to be at the start of the file, and can be moved into
57332         regex_internal.h and simplified.
57333         * lib/regex_internal.h: Include <alloca.h>.
57334         (__libc_use_alloca) [!defined _LIBC]: New macro.
57335         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57336         now works outside glibc.
57337
57338 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * config/srclist.txt: Add glibc bugs 1241, 1245.
57341
57342 2005-08-25  Jim Meyering  <jim@meyering.net>
57343
57344         * lib/open-safer.c: Include <config.h>.
57345         Otherwise, we'd lose LARGEFILE support in any file using
57346         e.g. "fcntl--.h"
57347
57348 2005-08-25  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/minmax.m4: Require autoconf 2.52.
57351         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57352         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57353         alternatives of translit over the alphabet.
57354         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57355
57356 2005-08-24  Simon Josefsson  <jas@extundo.com>
57357
57358         * tests/test-getpass.c: New file.
57359
57360 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57363         for GNU regex features.
57364
57365 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57368         * lib/regex.h (regerror): Likewise.
57369
57370         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57371         requires this.  (The code never needed it.)
57372
57373         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57374         All uses of recently-renamed identifiers changed to use the new,
57375         POSIX-compliant names.  The code will build and run just fine
57376         without these changes, but it's better to eat our own dog food
57377         and use the standard-conforming names.
57378
57379         * lib/regex.h: Fix a multitude of POSIX name space violations.
57380         These changes have an effect only for programs that define
57381         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57382         do not change anything for programs compiled in the normal way.
57383         Also, there is no effect on the ABI.
57384
57385         (_REGEX_SOURCE): New macro.
57386         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57387         defined and _GNU_SOURCE is not; this fixes a name space violation.
57388
57389         Rename the following macros to obey POSIX requirements.
57390         The old names are still visible as macros if _REGEX_SOURCE is defined.
57391         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57392         RE_BACKSLASH_ESCAPE_IN_LISTS.
57393         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57394         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57395         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57396         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57397         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57398         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57399         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57400         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57401         (REG_INTERVALS): renamed from RE_INTERVALS.
57402         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57403         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57404         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57405         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57406         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57407         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57408         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57409         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57410         RE_UNMATCHED_RIGHT_PAREN_ORD.
57411         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57412         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57413         (REG_DEBUG): renamed from RE_DEBUG.
57414         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57415         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57416         unusual, since we can't clash with the POSIX REG_ICASE.
57417         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57418         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57419         (REG_NO_SUB): renamed from RE_NO_SUB.
57420         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57421         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57422         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57423         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57424         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57425         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57426         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57427         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57428         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57429         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57430         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57431         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57432         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57433         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57434         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57435         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57436         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57437         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57438         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57439         (REG_FIXED): Renamed from REGS_FIXED.
57440         (REG_NREGS): Renamed from RE_NREGS.
57441
57442         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57443         of other REG_* macros, since POSIX says the user is allowed to
57444         #undef these macros selectively.
57445
57446         (reg_errcode_t): Update comment stating what other tables need
57447         to be consistent.
57448
57449         Rename the following enum values to obey POSIX requirements.
57450         The old names are still visible as macros.
57451         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57452         is not defined, since GNU is supposed to be a superset of POSIX as
57453         much as possible, and since we want reg_errcode_t to be a signed
57454         type for implementation consistency.
57455         (_REG_NOERROR): Renamed from REG_NOERROR.
57456         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57457         (_REG_BADPAT): Renamed from REG_BADPAT.
57458         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57459         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57460         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57461         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57462         (_REG_EBRACK): Renamed from REG_EBRACK.
57463         (_REG_EPAREN): Renamed from REG_EPAREN.
57464         (_REG_EBRACE): Renamed from REG_EBRACE.
57465         (_REG_BADBR): Renamed from REG_BADBR.
57466         (_REG_ERANGE): Renamed from REG_ERANGE.
57467         (_REG_ESPACE): Renamed from REG_ESPACE.
57468         (_REG_BADRPT): Renamed from REG_BADRPT.
57469         (_REG_EEND): Renamed from REG_EEND.
57470         (_REG_ESIZE): Renamed from REG_ESIZE.
57471         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57472         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57473         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57474         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57475         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57476
57477         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57478         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57479         changed.  But support the old name if the new one is not defined
57480         and if _REGEX_SOURCE.
57481
57482         Change the following member names in struct re_pattern_buffer.
57483         The old names are still supported if !_REGEX_SOURCE.
57484         The new names are always supported, regardless of _REGEX_SOURCE.
57485         (re_buffer): Renamed from buffer.
57486         (re_allocated): Renamed from allocated.
57487         (re_used): Renamed from used.
57488         (re_syntax): Renamed from syntax.
57489         (re_fastmap): Renamed from fastmap.
57490         (re_translate): Renamed from translate.
57491         (re_can_be_null): Renamed from can_be_null.
57492         (re_regs_allocated): Renamed from regs_allocated.
57493         (re_fastmap_accurate): Renamed from fastmap_accurate.
57494         (re_no_sub): Renamed from no_sub.
57495         (re_not_bol): Renamed from not_bol.
57496         (re_not_eol): Renamed from not_eol.
57497         (re_newline_anchor): Renamed from newline_anchor.
57498
57499         Change the following member names in struct re_registers.
57500         The old names are still supported if !_REGEX_SOURCE.
57501         The new names are always supported, regardless of _REGEX_SOURCE.
57502         (rm_num_regs): Renamed from num_regs.
57503         (rm_start): Renamed from start.
57504         (rm_end): Renamed from end.
57505
57506         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57507         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57508         Prepend __ to parameter names.
57509
57510         Undo yesterday's changes.
57511
57512 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57513
57514         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57515         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57516         lib/regex.c.
57517
57518 2005-08-24  Jim Meyering  <jim@meyering.net>
57519
57520         Sync from coreutils.
57521         * m4/fcntl-safer.m4: New file.
57522
57523         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57524         and object files for this module.
57525
57526 2005-08-24  Jim Meyering  <jim@meyering.net>
57527
57528         Sync from coreutils.
57529         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57530
57531 2005-08-24  Jim Meyering  <jim@meyering.net>
57532
57533         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57534         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57535
57536 2005-08-24  Jim Meyering  <jim@meyering.net>
57537
57538         * modules/fcntl-safer: New module.
57539         * modules/fts (Depends-on): Add fcntl-safer.
57540         * MODULES.html.sh (File descriptor based Input/Output):
57541         Add fcntl-safer.
57542
57543 2005-08-24  Bruno Haible  <bruno@clisp.org>
57544
57545         Support for unit test modules.
57546         * modules/README: Mention tests modules.
57547         * modules/TEMPLATE-TESTS: New file.
57548         * gnulib-tool: New options --extract-tests-module, --with-tests and
57549         --tests-base (unused for the moment).
57550         (testsbase, inctests): New variables.
57551         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57552         (func_verify_module): Exclude TEMPLATE-TESTS.
57553         (func_verify_nontests_module, func_verify_tests_module): New functions.
57554         (func_get_dependencies): Add implicit dependency for tests modules.
57555         (func_get_tests_module): New function.
57556         (func_modules_transitive_closure): When --with-tests was specified,
57557         include the unit tests as well, unless explicitly avoided.
57558         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57559         (func_emit_tests_Makefile_am): New function.
57560         (func_create_testdir): When --with-tests was specified, emit a
57561         tests/ directory.
57562         * MODULES.html.sh (Future developments): Update.
57563
57564 2005-08-24  Bruno Haible  <bruno@clisp.org>
57565
57566         * modules/tls-tests: New file.
57567         * tests/test-tls.c: New file, from GNU gettext.
57568
57569 2005-08-24  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/lock-tests: New file.
57572         * tests/test-lock.c: New file, from GNU gettext.
57573
57574 2005-08-24  Bruno Haible  <bruno@clisp.org>
57575
57576         * lib/lock.h: Add multiple inclusion guard.
57577         * lib/tls.h: Add multiple inclusion guard.
57578
57579 2005-08-24  Bruno Haible  <bruno@clisp.org>
57580
57581         * gnulib-tool: Add support for the --aux-dir option to
57582         --create-testdir, --create-megatestdir, --test, --megatest.
57583         (func_create_testdir, func_create_megatestdir): Optionally emit a
57584         AC_CONFIG_AUX_DIR directive.
57585         (create-testdir, create-megatestdir, test, megatest): Provide a
57586         default value for $auxdir.
57587
57588 2005-08-24  Bruno Haible  <bruno@clisp.org>
57589
57590         * gnulib-tool (import): Use compound statement instead of subshell
57591         where possible.
57592
57593 2005-08-24  Bruno Haible  <bruno@clisp.org>
57594
57595         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57596
57597 2005-08-24  Bruno Haible  <bruno@clisp.org>
57598
57599         * gnulib-tool (func_version): Update.
57600
57601 2005-08-24  Bruno Haible  <bruno@clisp.org>
57602
57603         * gnulib-tool (func_import, func_create_testdir,
57604         func_create_megatestdir): Quote all autoconf macro arguments.
57605
57606 2005-08-24  Bruno Haible  <bruno@clisp.org>
57607
57608         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57609         option --force, because --force causes the aclocal.m4 of each
57610         subdirectory to be newer than the corresponding config.h.in.
57611
57612 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57615         All contents moved to gl_REGEX.
57616         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57617         assume that it does.
57618
57619 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         * lib/regex.h (REG_NOSYS)
57622         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57623         Define, since POSIX requires it as of 2001.
57624         (_REG_ENOSYS)
57625         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57626         New private symbol, used to keep the enum signed in all cases.
57627         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57628         Youngman in
57629         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57630
57631         * lib/regex_internal.c (re_string_skip_chars, register_state):
57632         (calc_state_hash):
57633         Remove forward decls; no longer needed now that we use prototypes.
57634         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57635         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57636         (clean_state_log_if_needed): Likewise.
57637
57638 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57639
57640         * config/srclist.txt: Add glibc bugs 1231-1233.
57641
57642 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         Fix problems reported by Sam Steingold in
57645         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57646         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57647         assumed that reg_errcode_t is a signed type, which is not
57648         necessarily true if _XOPEN_SOURCE is not defined.
57649         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57650         since some compilers warn about it otherwise.
57651
57652 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57653
57654         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57655         (init_word_char, create_initial_state, duplicate_node_closure):
57656         (fetch_token, peek_token_bracket, build_range_exp):
57657         (build_collating_symbol): Remove forward decls; no longer needed
57658         now that we use prototypes.
57659
57660         * lib/regcomp.c:
57661         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57662         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57663         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57664         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57665         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57666         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57667         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57668         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57669         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57670         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57671         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57672         (build_charclass, build_charclass_op, fetch_number, create_tree):
57673         (create_token_tree, mark_opt_subexp, duplicate_tree):
57674         Use prototypes rather than old-style definitions.
57675
57676         * lib/regex_internal.c:
57677         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57678         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57679         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57680         (re_string_reconstruct, re_string_peek_byte_case):
57681         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57682         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57683         (re_node_set_init_copy, re_node_set_add_intersect):
57684         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57685         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57686         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57687         (re_acquire_state, re_acquire_state_context, register_state):
57688         (create_ci_newstate, create_cd_newstate, free_state):
57689         Likewise.
57690         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57691         re_search_2):
57692         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57693         (re_search_internal, prune_impossible_nodes):
57694         (acquire_init_state_context, check_matching, static):
57695         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57696         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57697         (update_regs, sift_states_backward, build_sifted_states):
57698         (clean_state_log_if_needed, merge_state_array):
57699         (update_cur_sifted_state, add_epsilon_src_nodes):
57700         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57701         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57702         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57703         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57704         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57705         (check_arrival, check_arrival_add_next_nodes):
57706         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57707         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57708         (check_node_accept_bytes, check_node_accept, extend_buffers):
57709         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57710         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57711         (sift_ctx_init):
57712         Likewise.
57713
57714         * lib/regex_internal.h:
57715         (re_string_allocate, re_string_construct, re_string_reconstruct):
57716         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57717         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57718         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57719         (re_string_context_at, re_string_peek_byte_case):
57720         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57721         is defined, since we now use prototypes always.
57722
57723         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57724         C89 or better.  All uses removed.
57725
57726 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * config/srclist.txt: Add glibc bugs 1220-1227.
57729
57730 2005-08-20  Jim Meyering  <jim@meyering.net>
57731
57732         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57733         of unused local, dfa.
57734
57735 2005-08-20  Bruno Haible  <bruno@clisp.org>
57736
57737         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57738
57739 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57742         (re_node_set_insert_last, re_dfa_add_node):
57743         Rename local variables to avoid GCC shadowing warnings.
57744
57745 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57746
57747         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57748         [defined lint]: Suppress bogus uninitialized-variable warnings.
57749
57750         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57751         and let the caller return REG_ESPACE if out of space.  This
57752         removes an uninitialied-variable warning with GCC 4.0.1, and also
57753         avoids taking the address of a local variable.  All callers
57754         changed.
57755
57756 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57757
57758         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57759         $LIBCSRC/posix/regexec.c.
57760         Add glibc bug 1217 for regcomp.c.
57761
57762 2005-08-19  Jim Meyering  <jim@meyering.net>
57763
57764         * lib/regexec.c (proceed_next_node): Redo local variables to
57765         avoid GCC shadowing warnings.
57766
57767 2005-08-18  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/strstr.c (strstr): Fix return value in multibyte case.
57770         * lib/strcasestr.c (strcasestr): Likewise.
57771
57772 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57773
57774         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57775
57776 2005-08-17  Jim Meyering  <jim@meyering.net>
57777
57778         Make the %s format (seconds since the epoch) work for a negative
57779         number and when used with a zero-padded field width, e.g. %015s.
57780
57781         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57782         label so that it precedes the code to set `digits'.  Otherwise,
57783         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57784         print `00-22'.  Now, it prints `-0022', as it should.
57785
57786 2005-08-17  Bruno Haible  <bruno@clisp.org>
57787
57788         * modules/strstr (Files): Add m4/mbrtowc.m4.
57789         (Depends-on): Add mbuiter.
57790
57791 2005-08-17  Bruno Haible  <bruno@clisp.org>
57792
57793         * modules/strcasestr: New file.
57794         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57795         strcasestr.
57796
57797 2005-08-17  Bruno Haible  <bruno@clisp.org>
57798
57799         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57800
57801 2005-08-17  Bruno Haible  <bruno@clisp.org>
57802
57803         * modules/mbuiter: New file.
57804         * MODULES.html.sh (Extended multibyte and wide character utilities):
57805         Add mbuiter.
57806
57807 2005-08-17  Bruno Haible  <bruno@clisp.org>
57808
57809         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57810         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57811
57812 2005-08-17  Bruno Haible  <bruno@clisp.org>
57813
57814         * m4/strcasestr.m4: New file.
57815
57816 2005-08-17  Bruno Haible  <bruno@clisp.org>
57817
57818         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57819         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57820
57821 2005-08-17  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/strcasestr.h: New file.
57824         * lib/strcasestr.c: New file.
57825
57826 2005-08-17  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/strcasecmp.c: Use mbuiter.h.
57829
57830 2005-08-17  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/mbuiter.h: New file.
57833
57834 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57837         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57838         and gl_GETOPT are both invoked via different paths (as happens
57839         with GNU tar CVS because it uses both argp and getopt), the former
57840         wins.
57841
57842 2005-08-16  Bruno Haible  <bruno@clisp.org>
57843
57844         * modules/tls: New file.
57845         * MODULES.html.sh (Multithreading): Add tls.
57846
57847 2005-08-16  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/strnlen1: New file.
57850         * MODULES.html.sh (String handling): Add strnlen1.
57851
57852 2005-08-16  Bruno Haible  <bruno@clisp.org>
57853
57854         * modules/strcase (Files): Add m4/mbrtowc.m4.
57855         (Depends-on): Add strnlen1, mbchar.
57856
57857 2005-08-16  Bruno Haible  <bruno@clisp.org>
57858
57859         * modules/mbiter: New file.
57860         * MODULES.html.sh (Extended multibyte and wide character utilities):
57861         Add mbiter.
57862
57863 2005-08-16  Bruno Haible  <bruno@clisp.org>
57864
57865         * modules/mbfile: New file.
57866         * MODULES.html.sh (Extended multibyte and wide character utilities):
57867         Add mbfile.
57868
57869 2005-08-16  Bruno Haible  <bruno@clisp.org>
57870
57871         * modules/mbchar: New file.
57872         * MODULES.html.sh (Extended multibyte and wide character utilities):
57873         New section.
57874
57875 2005-08-16  Bruno Haible  <bruno@clisp.org>
57876
57877         * m4/tls.m4: New file, from GNU gettext.
57878
57879 2005-08-16  Bruno Haible  <bruno@clisp.org>
57880
57881         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57882         always.
57883         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57884
57885 2005-08-16  Bruno Haible  <bruno@clisp.org>
57886
57887         * m4/mbiter.m4: New file.
57888
57889 2005-08-16  Bruno Haible  <bruno@clisp.org>
57890
57891         * m4/mbfile.m4: New file.
57892
57893 2005-08-16  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/mbchar.m4: New file.
57896
57897 2005-08-16  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/tls.h: New file, from GNU gettext.
57900         * lib/tls.c: New file, from GNU gettext.
57901
57902 2005-08-16  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/strnlen1.h: New file.
57905         * lib/strnlen1.c: New file.
57906
57907 2005-08-16  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57910         (mbi_init): Update.
57911         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57912         NUL byte, not after it.
57913
57914 2005-08-16  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/strcase.h (strcasecmp): Add note in comments.
57917         * lib/strncasecmp.c: Use code from strcasecmp.c.
57918         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57919         (strcasecmp): Work correctly in multibyte locales.
57920
57921 2005-08-16  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/mbiter.h: New file.
57924
57925 2005-08-16  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/mbfile.h: New file.
57928
57929 2005-08-16  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/mbchar.h: New file.
57932         * lib/mbchar.c: New file.
57933
57934 2005-08-16  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57937         the valid ones. Makes the comparison operations transitive:
57938         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57939         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57940
57941 2005-08-15  Simon Josefsson  <jas@extundo.com>
57942
57943         * modules/ssize_t (License): Change to 'unlimited'.
57944
57945         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57946
57947 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57950         Add comments for each pending glibc patch.
57951
57952 2005-08-15  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57955         __cplusplus is defined.
57956
57957 2005-08-14  Jim Meyering  <jim@meyering.net>
57958
57959         Sync from coreutils.
57960
57961         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57962         Use the hash-table-based cycle-detection code not just when
57963         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57964         Reported by James Youngman in
57965         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57966         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57967         FTS_TIGHT_CYCLE_CHECK.
57968         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57969         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57970         once again.
57971         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57972         * lib/fts.c (fd_safer): Remove decl.
57973         Include fcntl--.h rather than unistd-safer.h
57974         (fts_safe_changedir): Don't call fd_safer; no longer needed
57975         now that we include fcntl--.h.
57976
57977 2005-08-12  Simon Josefsson  <jas@extundo.com>
57978
57979         * modules/getndelim2: Use ssize_t module.
57980         * modules/getnline: Likewise.
57981         * modules/safe-read: Likewise.
57982         * modules/xreadlink: Likewise.
57983
57984         * modules/ssize_t: New file.
57985
57986 2005-08-12  Simon Josefsson  <jas@extundo.com>
57987
57988         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57989
57990 2005-08-12  Simon Josefsson  <jas@extundo.com>
57991
57992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57993         ssize_t.
57994
57995 2005-08-12  Simon Josefsson  <jas@extundo.com>
57996
57997         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57998         readline, getdelim and check_version.
57999         (Support for systems lacking ISO C 99: Sizes of integer types):
58000         Add size_max.
58001
58002 2005-08-12  Bruno Haible  <bruno@clisp.org>
58003
58004         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58005
58006 2005-08-11  Simon Josefsson  <jas@extundo.com>
58007
58008         * modules/readline: New file.
58009
58010         * modules/strnlen (Files): Add strnlen.h.
58011
58012 2005-08-11  Simon Josefsson  <jas@extundo.com>
58013
58014         * m4/readline.m4: New file.
58015
58016 2005-08-11  Simon Josefsson  <jas@extundo.com>
58017
58018         * lib/readline.h, readline.c: New file.
58019
58020 2005-08-11  Simon Josefsson  <jas@extundo.com>
58021
58022         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58023         gl_AVOID.
58024
58025 2005-08-11  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58028
58029 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58030
58031         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58032
58033 2005-08-10  Simon Josefsson  <jas@extundo.com>
58034
58035         * tests/test-iconvme.c: New file.
58036
58037 2005-08-10  Simon Josefsson  <jas@extundo.com>
58038
58039         * m4/strnlen.m4: New file.
58040
58041         * m4/strndup.m4: Don't check for strnlen declaration, done in
58042         strnlen.m4.
58043
58044 2005-08-10  Simon Josefsson  <jas@extundo.com>
58045
58046         * lib/strndup.c: Use strnlen.h.
58047
58048         * lib/strnlen.h: New file.
58049
58050 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58051
58052         * README: Typos.
58053
58054 2005-08-02  Simon Josefsson  <jas@extundo.com>
58055
58056         * modules/readline: New file.
58057
58058 2005-08-02  Simon Josefsson  <jas@extundo.com>
58059
58060         * modules/getdelim: New file.
58061
58062         * modules/getline: Rewrite, don't use getndelim2.
58063
58064 2005-08-02  Simon Josefsson  <jas@extundo.com>
58065
58066         * m4/getline.m4: Separate out getdelim stuff into separate module.
58067
58068         * m4/getdelim.m4: New file.
58069
58070 2005-08-02  Simon Josefsson  <jas@extundo.com>
58071
58072         * lib/getline.h, getline.c: Rewrite.
58073
58074         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58075
58076 2005-07-31  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/lock.h (gl_lock_initializer): New macro.
58079         (gl_lock_define_initialized): Use it.
58080         (gl_rwlock_initializer): New macro.
58081         (gl_rwlock_define_initialized): Use it.
58082         (gl_recursive_lock_initializer): New macro.
58083         (gl_recursive_lock_define_initialized): Use it.
58084
58085 2005-07-30  Karl Berry  <karl@gnu.org>
58086
58087         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58088         Report from Ben Pfaff, regarding getopt.
58089
58090 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58093         normal way.
58094         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58095         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58096         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58097         (gl_GETOPT): Use the new macros.  Most of the implementation
58098         is moved to the new macros.  This is for programs like Emacs
58099         that don't want all the functionality of gl_GETOPT.
58100
58101 2005-07-26  Bruno Haible  <bruno@clisp.org>
58102
58103         * m4/lock.m4: Update from GNU gettext.
58104
58105 2005-07-26  Bruno Haible  <bruno@clisp.org>
58106
58107         * lib/lock.h: Update from GNU gettext.
58108         * lib/lock.c: Update from GNU gettext.
58109
58110 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58113         obsolescent AC_TRY_RUN.  Include the default includes files, for
58114         'exit'.
58115
58116 2005-07-24  Bruno Haible  <bruno@clisp.org>
58117
58118         * modules/visibility: New file.
58119         * MODULES.html.sh (Misc): Add visibility.
58120
58121 2005-07-24  Bruno Haible  <bruno@clisp.org>
58122
58123         * m4/visibility.m4: New file.
58124
58125 2005-07-24  Bruno Haible  <bruno@clisp.org>
58126
58127         * doc/visibility.texi: New file.
58128
58129 2005-07-22  Bruno Haible  <bruno@clisp.org>
58130
58131         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58132         $(ALLOCA_H), redundant through BUILT_SOURCES.
58133         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58134         redundant through BUILT_SOURCES.
58135         * modules/byteswap (Makefile.am): Remove explicit dependency on
58136         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58137         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58138         $(FNMATCH_H), redundant through BUILT_SOURCES.
58139         * modules/getopt (Makefile.am): Remove explicit dependency on
58140         $(GETOPT_H), redundant through BUILT_SOURCES.
58141         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58142         redundant through BUILT_SOURCES.
58143         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58144         redundant through BUILT_SOURCES.
58145         * modules/stdbool (Makefile.am): Remove explicit dependency on
58146         $(STDBOOL_H), redundant through BUILT_SOURCES.
58147         * modules/stdint (Makefile.am): Remove explicit dependency on
58148         $(STDINT_H), redundant through BUILT_SOURCES.
58149         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58150         Remove explicit dependency on $(SYSEXITS_H).
58151         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58152
58153 2005-07-18  Simon Josefsson  <jas@extundo.com>
58154
58155         * lib/check-version.c (check_version): Accept identical versions too.
58156
58157 2005-07-18  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/lock: New file.
58160         * MODULES.html.sh (Multithreading): New section.
58161
58162 2005-07-18  Bruno Haible  <bruno@clisp.org>
58163
58164         * m4/lock.m4: New file, from GNU gettext.
58165
58166 2005-07-18  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/lock.h: New file, from GNU gettext.
58169         * lib/lock.c: New file, from GNU gettext.
58170
58171 2005-07-18  Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/lock.h (gl_once_t): New type.
58174         (gl_once_define, gl_once): New macros.
58175         * lib/lock.c (fresh_once): New variable.
58176         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58177         functions.
58178
58179 2005-07-16  Simon Josefsson  <jas@extundo.com>
58180
58181         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58182         workaround, suggested by Bruno.
58183
58184 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * modules/xalloc (Depends-on): Add xalloc-die.
58187         * modules/xvasprintf (Depends-on): Add xalloc-die.
58188
58189 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58190
58191         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58192         with a minor change.
58193
58194 2005-07-15  Bruno Haible  <bruno@clisp.org>
58195
58196         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58197         When using lib/poll.c, define poll as rpl_poll.
58198
58199 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58200
58201         * modules/argp (Depends-on): Remove unlocked-io.
58202
58203 2005-07-14  Derek Price  <derek@ximbiot.com>
58204
58205         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58206         for glob symlink bug.
58207
58208 2005-07-14  Bruno Haible  <bruno@clisp.org>
58209
58210         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58211         Instead, test for *_unlocked function declarations directly.
58212
58213 2005-07-11  Simon Josefsson  <jas@extundo.com>
58214
58215         * modules/size_max: New file.
58216
58217         * modules/xsize: Depend on size_max module for size_max.m4.
58218
58219 2005-07-11  Simon Josefsson  <jas@extundo.com>
58220
58221         * lib/size_max.h: New file.
58222
58223 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58226         copyright symbol and the year.
58227         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58228         (version_etc_va): Use parameterized copyright notice.
58229         Reword to conform to the current GNU coding standards.
58230
58231 2005-07-11  Karl Berry  <karl@gnu.org>
58232
58233         * doc/gnulib.texi (Quoting): new node.
58234         (Initial import): more info, from Patrice.
58235
58236 2005-07-11  Bruno Haible  <bruno@clisp.org>
58237
58238         * gnulib-tool (func_usage): Document option --avoid.
58239         (Command line options): Handle --avoid.
58240         (func_acceptable): New function.
58241         (func_modules_transitive_closure): Use it.
58242
58243 2005-07-11  Bruno Haible  <bruno@clisp.org>
58244
58245         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58246         Reported by Jim Meyering.
58247
58248 2005-07-10  Bruno Haible  <bruno@clisp.org>
58249
58250         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58251         Needed when size_t is smaller than 'unsigned int'.
58252         Reported by Paul Eggert.
58253
58254 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58255
58256         * modules/argp (Depends-on): Add unlocked-io
58257
58258 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58259
58260         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58261         block of defines.
58262
58263 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58266         fix now.
58267
58268 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58269         and Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58272         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58273
58274 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         * modules/regex (Files): Add lib/regex_internal.c,
58277         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58278         (Depends-on): Add extensions.
58279         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58280
58281 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58284         pathconf.
58285         * m4/same.m4 (gl_SAME): Likewise.
58286         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58287
58288         * m4/regex.m4: Adjust to new libc regex implementation.
58289         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58290         all the .c and .h parts of (the new) regex.
58291         Quote the m4 stuff better.
58292         Check for RE_ICASE bug of old gnulib.
58293         Check for REG_STARTEND of recent libc.
58294         Rename local variables from jm_* to gl_*.
58295         Quote operand of "test -f".
58296         Say "recent enough" version of libc, not "version 2".
58297         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58298         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58299         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58300         Remove check for btowc, isascii.
58301         Require AM_LANGINFO_CODESET.
58302
58303 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/regex.c, regex.h: Sync from libc.
58306         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58307         * lib/regexec.c:
58308         New files, synced from libc, except that regex_internal.h
58309         currently has a small porting fix.
58310
58311 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58314         regex_internal.c, regexec.c.
58315         Add regex_internal.h too, but as a comment, since the libc version
58316         is currently broken in gnulib mode.
58317
58318 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         Support programs like Emacs that use gnulib but not gettext.
58321         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58322         * modules/gettext-h: New file.
58323         * modules/gettext (Files): Remove lib/gettext.h.
58324         (Depends-on): Add gettext-h.
58325         (Makefile.am): Remove lib_SOURCES.
58326         * modules/argmatch, modules/c-stack, modules/closeout:
58327         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58328         * modules/execute, modules/file-type, modules/getaddrinfo:
58329         * modules/getopt, modules/human, modules/javacomp:
58330         * modules/javaexec, modules/mkdir-p, modules/obstack:
58331         * modules/openat, modules/pagealign_alloc, modules/pipe:
58332         * modules/quotearg, modules/regex, modules/rpmatch:
58333         * modules/unicodeio, modules/userspec, modules/version-etc:
58334         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58335         * modules/xsetenv:
58336         Depend on gettext-h, not gettext.
58337
58338 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * gnulib-tool (func_import): Add support for 'public domain' license.
58341         * modules/alloca, modules/atexit, modules/memmove:
58342         Now public domain, not GPL.
58343         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58344         * modules/realloc, modules/strerror, modules/strtod:
58345         Now LGPL, not GPL.
58346
58347 2005-07-05  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58350         autoconf CVS. Needed for mingw.
58351
58352 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58353
58354         Remove the dependency of the strftime module on the tzset module.
58355         * modules/strftime (Depends-on): Remove dependency on tzset.
58356
58357 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58358
58359         Remove the dependency of the strftime module on the tzset module.
58360         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58361         gl_FUNC_TZSET_CLOBBER.
58362
58363 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58364
58365         Remove the dependency of the strftime module on the tzset module.
58366         * lib/strftime.c (my_strftime)
58367         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58368         Copy the input structure, to work around some of the bug with
58369         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58370         Solaris releases, you should also use the tzset module, but we won't
58371         require it as a dependency any more since we don't want LGPLed code
58372         to depend on GPLed code.
58373
58374 2005-07-02  Jim Meyering  <jim@meyering.net>
58375
58376         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58377         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58378         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58379         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58380
58381 2005-07-02  Jim Meyering  <jim@meyering.net>
58382
58383         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58384
58385 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58388         declares only 'struct timespec;' (!).
58389
58390 2005-07-01  Jim Meyering  <jim@meyering.net>
58391
58392         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58393         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58394         * lib/save-cwd.c, tempname.c:
58395         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58396         and don't include <sys/file.h>).
58397
58398 2005-06-29  Jim Meyering  <jim@meyering.net>
58399
58400         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58401         type name.  Use the variable name instead.
58402         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58403         Likewise.
58404
58405 2005-06-28  Simon Josefsson  <jas@extundo.com>
58406
58407         * modules/check-version (Files): Add check-version.m4.
58408
58409 2005-06-28  Simon Josefsson  <jas@extundo.com>
58410
58411         * m4/check-version.m4: New file, suggested by Jim Meyering
58412         <jim@meyering.net>.
58413
58414 2005-06-28  Simon Josefsson  <jas@extundo.com>
58415
58416         * lib/check-version.h, lib/check-version.c: New files.
58417
58418 2005-06-28  Simon Josefsson  <jas@extundo.com>
58419
58420         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58421         collision with global variable.  Better indentation.  Don't
58422         increment buffer pointer beyond buffer end.  Based on comments
58423         from Paul Eggert <eggert@cs.ucla.edu>.
58424
58425         * lib/base64.h: Indent.
58426
58427 2005-06-28  Simon Josefsson  <jas@extundo.com>
58428
58429         * doc/gnulib.texi (Library version handling): New section.
58430
58431 2005-06-28  Jim Meyering  <jim@meyering.net>
58432
58433         * check-module (find_included_lib_files): Hard-code another
58434         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58435         but modules/fts-lgpl (correctly) does not list those files.
58436
58437         * modules/canonicalize (Files): Add lib/pathmax.h.
58438
58439 2005-06-25  Simon Josefsson  <jas@extundo.com>
58440
58441         * modules/check-version: New file.
58442
58443 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58446         initializer of struct addrinfo, as an indication that we don't
58447         care how many members the structure has.
58448
58449 2005-06-24  Derek Price  <derek@ximbiot.com>
58450         and Bruno Haible  <bruno@clisp.org>
58451
58452         Remove stat module & update lstat.
58453         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58454         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58455         * m4/stat.m4: Remove this file.
58456
58457 2005-06-24  Derek Price  <derek@ximbiot.com>
58458         and Bruno Haible  <bruno@clisp.org>
58459
58460         Remove stat module & update lstat.
58461         * lib/stat.c: Remove this file...
58462         (slash_aware_lstat): ...moving this content and its support...
58463         * lib/lstat.c (rpl_lstat): ...into here.
58464         * lib/lstat.h: New file.
58465
58466 2005-06-24  Derek Price  <derek@ximbiot.com>
58467         and Bruno Haible  <bruno@clisp.org>
58468
58469         Remove stat module & update lstat.
58470         * config/srclist.txt (libc sources): Remove stat.
58471
58472 2005-06-24  Derek Price  <derek@ximbiot.com>
58473         and Bruno Haible  <bruno@clisp.org>
58474
58475         Remove stat module & update lstat.
58476         * MODULES.html.sh (stat): Remove.
58477         * MODULES.html: Regenerated.
58478         * modules/lstat (Description): Correct function name.
58479         (Files): Add "lstat.h".
58480         (Depends-on): Remove stat, add xalloc, stat-macros.
58481         * modules/stat: Remove this file.
58482         (Include): Add "lstat.h", remove <sys/stat.h>.
58483
58484 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58487         (ranged_convert): Don't save conversion in a temporary struct.
58488         This causes a warning with GCC 4.0.0, and anyway in the typical
58489         case it's not worth the extra 100 bytes or so of code.
58490         (ranged_convert, __mktime_internal): When calling a function via a
58491         pointer P, use P () rather than (*P) (), as we now assume C89 or
58492         better.
58493
58494 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58497         "who -r" failed to give output.  Problem reported by Tim Waugh.
58498
58499         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58500         (xcalloc): Use it to avoid needless tests.
58501         Problem reported by Jim Meyering.
58502
58503 2005-06-20  Derek Price  <derek@ximbiot.com>
58504
58505         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58506         unnecessary for Autoconfs > 2.59c.
58507
58508 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58509
58510         * lib/argp.h (__option_is_short): Check upper limit of
58511         __key. Isprint() requires its argument to have the value
58512         of an unsigned char or EOF.
58513
58514 2005-06-16  Jim Meyering  <jim@meyering.net>
58515
58516         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58517         when either N or S is zero.
58518
58519 2005-06-16  Derek Price  <derek@ximbiot.com>
58520
58521         * m4/bison.m4: Declare YACC & YFLAGS precious.
58522
58523 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58526         multibyte string or pattern, fall back on unibyte matching.
58527         Problem reported by James Youngman.
58528
58529 2005-06-08  Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/csharpcomp: New file.
58532         * MODULES.html.sh (C#): Add csharpcomp.
58533
58534 2005-06-08  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/csharpcomp.m4: New file, from GNU gettext.
58537
58538 2005-06-08  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/csharpcomp.h: New file, from GNU gettext.
58541         * lib/csharpcomp.c: New file, from GNU gettext.
58542         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58543
58544 2005-06-08  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58547         warning on mingw.
58548
58549 2005-06-07  Derek Price  <derek@ximbiot.com>
58550
58551         Sync from CVS.
58552         * lib/glob_.h: Indent nested #ifdef.
58553
58554 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58555
58556         Sync from coreutils.
58557         Use "file name" when talking about file names, instead of "filename"
58558         or "path", as per the GNU coding standards.
58559         * lib/mkdir-p.c: Renamed from makepath.c.
58560         (make_dir_parents): Renamed from make_path.  All callers changed.
58561         * lib/mkdir-p.h: Likewise.  All includers changed.
58562         * lib/filenamecat.c: Renamed from path-concat.c.
58563         (file_name_concat): Renamed from path_concat.  All callers changed.
58564         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58565         * lib/filenamecat.h: Likewise.  All includers changed.
58566         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58567         in comments or local variable names.
58568         * lib/basename.c: Likewise.
58569         * lib/canonicalize.c, canonicalize.h: Likewise.
58570         * lib/dirname.c, dirname.h: Likewise.
58571         * lib/euidaccess.c: Likewise.
58572         * lib/exclude.c: Likewise
58573         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58574         * lib/fsusage.c, fsuage.h: Likewise.
58575         * lib/fts.c, fts_.h: Likewise.
58576         * lib/getcwd.c: Likewise.
58577         * lib/getloadavg.c: Likewise.
58578         * lib/mkstemp.c: Likewise.
58579         * lib/mountlist.c, mountlist.h: Likewise.
58580         * lib/openat.c, openat.h: Likewise.
58581         * lib/readlink-stub.c: Likewise.
58582         * lib/readutmp.c, readutmp.h: Likewise.
58583         * lib/rename.c: Likewise.
58584         * lib/rmdir.c: Likewise.
58585         * lib/same.c: Likewise.
58586         * lib/savedir.c: Likewise.
58587         * lib/stripslash.c: Likewise.
58588         * lib/tempname.c: Likewise.
58589         * lib/xreadlink.c: Likewise.
58590         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58591         All uses changed.
58592         * lib/exclude.h: Likewise.
58593
58594         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58595         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58596         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58597         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58598         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58599         files have been getting away with it for years (MORE/BSD 4.3
58600         is extinct now).
58601         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58602         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58603
58604         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58605         Define to 256, not 255, as per modern POSIX.
58606
58607 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58608
58609         Sync from coreutils.
58610         Use "file name" when talking about file names, instead of "filename"
58611         or "path", as per the GNU coding standards.
58612         * MODULES.html.sh: mkdir-p renamed from makepath.
58613         filenamecat renamed from path-concat.
58614         * modules/filenamecat: Renamed from modules/path-concat.
58615         (Files): filenamecat.h and filenamecat.c renamed from
58616         path-concat.h and path-concat.c.
58617         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58618         (Include): filenamecat.h, not path-concat.h.
58619         * modules/mkdir-p: Renamed from modules/makepath.
58620         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58621         makepath.c.
58622         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58623         (Include): mkdir-p.h, not makepath.h.
58624
58625 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         Sync from coreutils.
58628         * m4/mkdir-p.m4: Renamed from makepath.m4.
58629         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58630         Rename files from makepath.c to mkdir-p.c, and from
58631         makepath.h to mkdir-p.h.
58632         * m4/filenamecat.m4: Renamed from path-concat.m4.
58633         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58634         Rename files from path-concat.c to filenamecat.c,
58635         and from path-concat.h to filenamecat.h.
58636         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58637         "file name" in local variables or comments.
58638         * m4/rename.m4: Likewise.
58639
58640 2005-06-01  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/csharpexec: New file.
58643         * MODULES.html.sh (C#): New section.
58644
58645 2005-06-01  Bruno Haible  <bruno@clisp.org>
58646
58647         * m4/csharp.m4: New file, from GNU gettext.
58648         * m4/csharpexec.m4: New file, from GNU gettext.
58649
58650 2005-06-01  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/csharpexec.h: New file, from GNU gettext.
58653         * lib/csharpexec.c: New file, from GNU gettext.
58654         * lib/csharpexec.sh.in: New file, from GNU gettext.
58655
58656 2005-05-31  Derek Price  <derek@ximbiot.com>
58657             Paul Eggert  <eggert@cs.ucla.edu>
58658
58659         Sync from cvs.
58660         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58661
58662 2005-05-31  Derek Price  <derek@ximbiot.com>
58663             Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         Sync from cvs.
58666         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58667
58668 2005-05-29  Derek Price  <derek@ximbiot.com>
58669
58670         * config/srclist.txt (glob_.h, glob.c): Add these files.
58671
58672 2005-05-29  Derek Price  <derek@ximbiot.com>
58673
58674         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58675         * modules/glob: New file.
58676         * modules/getlogin_r: Add link to POSIX spec in description.
58677
58678 2005-05-29  Derek Price  <derek@ximbiot.com>
58679             Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         * m4/glob.m4: New file.
58682
58683 2005-05-29  Derek Price  <derek@ximbiot.com>
58684             Paul Eggert  <eggert@cs.ucla.edu>
58685
58686         * lib/glob_.h, lib/glob.c: New files.
58687
58688 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58691         * modules/fts-lgpl (Depends-on): Remove gettext.
58692
58693 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58696         and don't require gt_INTTYPES_PRI.
58697
58698 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58701
58702         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58703         the configuration hassle isn't worth it.
58704         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58705         (LONGEST_MODIFIER, PRIuMAX): Remove.
58706
58707 2005-05-27  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58710
58711 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58714         _POSIX_PTHREAD_SEMANTICS for Solaris.
58715
58716 2005-05-25  Derek Price  <derek@ximbiot.com>
58717
58718         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58719
58720 2005-05-25  Derek Price  <derek@ximbiot.com>
58721             Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58724         * lib/getlogin_r.c, getlogin_r.h: New files.
58725
58726 2005-05-25  Bruno Haible  <bruno@clisp.org>
58727             Derek Price  <derek@ximbiot.com>
58728
58729         * lib/getlogin_r.h: Simplify API documentation.
58730
58731 2005-05-23  Derek Price  <derek@ximbiot.com>
58732
58733         * modules/minmax (Files): Add m4/minmax.m4.
58734         (configure.ac): Add gl_MINMAX.
58735
58736 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58739         so that unistd-safer.h (GPL'ed code) need not be included.
58740
58741 2005-05-22  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/minmax.m4: New file.
58744         Based on a patch by Derek Price <derek@ximbiot.com>.
58745
58746 2005-05-22  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58749         (INT64_MIN): Fix definition.
58750         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58751
58752         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58753         NEED_SIGNED_INT_TYPES.
58754
58755         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58756         HAVE_SYSTEM_INTTYPES.
58757
58758 2005-05-22  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58761         Also include <sys/param.h> if it defines MIN, MAX.
58762         Based on a patch by Derek Price <derek@ximbiot.com>.
58763
58764 2005-05-21  Jim Meyering  <jim@meyering.net>
58765
58766         * modules/fts (Files): Add m4/inttypes-pri.m4.
58767         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58768
58769 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         New fts module.
58772         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58773         (setup_dir, free_dir): New functions.
58774         (enter_dir, leave_dir): Define trivial
58775         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58776         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58777         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58778         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58779         Move to fts-cycle.c.
58780         (fts_open): Use setup_dir.
58781         (fts_close): Use free_dir.
58782         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58783         This adds a label and some gotos, but the alternatives were messier.
58784         Check for memory allocation failure when entering a dir.
58785         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58786         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58787         (FTS): New member fts_cycle, that is a union that contains the
58788         old active_dir_ht and cycle_state.  All uses changed to mention
58789         fts_cycle.ht and fts_cycle.state.
58790         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58791         fts.c, with the following changes:
58792         (setup_dir, free_dir): New functions.
58793         (enter_dir): Now returns bool.  Return true if successful, false
58794         if memory exhausted.  All callers changed.
58795         Do not bother partly cleaning up on
58796         memory allocation failure; that is free_dir's job.
58797         However, free ad if hash_insert fails, to avoid memory leak.
58798         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58799         fts->fts_options to see which union member to use.
58800
58801 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58804         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58805
58806 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58807
58808         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58809
58810 2005-05-20  Jim Meyering  <jim@meyering.net>
58811
58812         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58813         Now a macro, to pacify GCC.
58814
58815 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58816
58817         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58818         of -1.
58819
58820 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58821
58822         * lib/chown.c (rpl_chown): Return -1 on failure.
58823
58824 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58827         Don't check for stddef.h.
58828         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58829         don't use its results.
58830         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58831         since we include them unconditionally.  Don't require
58832         AM_STDBOOL_H, since stdbool is a prerequisite.
58833         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58834         since we assume C89 or better.
58835         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58836         as we don't use their results.
58837         Don't check for fchdir, memmove, memset, strrchr, as we use
58838         them unconditionally.
58839         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58840         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58841
58842 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58845         Include <stddef.h> unconditionally, since we assume C89 now.
58846         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58847         * lib/fts.c: Include fts_.h first, to check interface.
58848         Do not include intprops.h; no longer needed.
58849         Include cycle-check.h and hash.h, since fts_.h no longer does.
58850         Remove unnecessary casts of closedir to void.
58851         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58852         decide whether to decrement nlinks.
58853         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58854         (FTS): Use struct hash_table * instead of Hash_table, so that
58855         we no longer need to include hash.h here.
58856
58857 2005-05-18  Jim Meyering  <jim@meyering.net>
58858
58859         * modules/dirfd (License): Change to LGPL.  Most of the code
58860         is already in the public domain.
58861
58862 2005-05-18  Jim Meyering  <jim@meyering.net>
58863
58864         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58865         Reported by Yoann Vandoorselaere.
58866
58867 2005-05-17  Jim Meyering  <jim@meyering.net>
58868
58869         * m4/fts.m4: New file, from coreutils.
58870
58871 2005-05-17  Jim Meyering  <jim@meyering.net>
58872
58873         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58874
58875 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         Sync from coreutils.
58878         * m4/unlinkdir.m4: New file.
58879
58880 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58881
58882         Sync from coreutils.
58883         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58884         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58885         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58886         White space changes only.
58887         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58888         special.
58889         * lib/yesno.c: Include getline.h, not ctype.h.
58890         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58891         Use getline to remove arbitrary restriction on response length.
58892
58893 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         * config/srclist-update: Spell out "Street" in FSF postal
58896         mail address; this is the style the FSF seems to prefer.
58897
58898         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58899         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58900         this updates FSF postal mail address.
58901
58902         Sync from coreutils.
58903         * modules/unlinkdir: New file.
58904         * modules/yesno (Depends-on): Add getline.
58905         * MODULES.html.sh (File system functions): Add unlinkdir.
58906
58907 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58910         lib/strsep.h:
58911         Change the initial comment to refer to GPL, not LGPL.
58912         gnulib-tool will change it to LGPL as needed.
58913
58914         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58915         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58916         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58917         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58918         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58919         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58920         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58921         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58922         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58923         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58924         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58925         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58926         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58927         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58928         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58929         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58930         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58931         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58932         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58933         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58934         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58935         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58936         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58937         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58938         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58939         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58940         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58941         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58942         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58943         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58944         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58945         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58946         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58947         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58948         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58949         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58950         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58951         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58952         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58953         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58954         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58955         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58956         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58957         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58958         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58959         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58960         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58961         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58962         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58963         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58964         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58965         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58966         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58967         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58968         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58969         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58970         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58971         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58972         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58973         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58974         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58975         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58976         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58977         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58978         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58979         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58980         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58981         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58982         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58983         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58984         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58985         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58986         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58987         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58988         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58989         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58990         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58991         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58992         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58993         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58994         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58995         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58996         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58997         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58998         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58999         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59000         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59001         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59002         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59003         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59004         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59005         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59006         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59007         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59008         lib/yesno.c, lib/yesno.h:
59009         Update FSF postal mail address.
59010
59011 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59014         tests/test-memmem.c, tests/test-stpncpy.c:
59015         Update FSF postal mail address.
59016
59017 2005-05-13  Bruno Haible  <bruno@clisp.org>
59018
59019         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59020         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59021         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59022         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59023         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59024         Add support for 64-bit integers in the MSVC compiler.
59025
59026 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59027
59028         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59029
59030 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59031
59032         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59033
59034 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * doc/getdate.texi (General date syntax): Don't say that date
59037         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59038         Problem reported by Nic Ferrier.
59039
59040 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59041
59042         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59043         specified in ai_socktype. Fix invalid ai_protocol
59044         check. ai_protocol is usually set to 0 or depending on
59045         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59046         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59047         ai_socktype / ai_protocol in the returned addrinfo structure.
59048
59049 2005-05-10  Simon Josefsson  <jas@extundo.com>
59050
59051         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59052         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59053
59054 2005-05-10  Karl Berry  <karl@gnu.org>
59055
59056         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59057         (from http://www.gnu.org/licenses).
59058         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59059         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59060         fdl.texi suffices.
59061
59062 2005-05-10  Karl Berry  <karl@gnu.org>
59063
59064         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59065         (COPYING.DOC): remove.
59066
59067         * config/srclist-update: new FSF address.
59068
59069 2005-05-10  Derek Price  <derek@ximbiot.com>
59070
59071         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59072         possible.
59073
59074 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59075             Bruno Haible  <bruno@clisp.org>
59076
59077         * modules/inet_ntop: New file.
59078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59079         inet_ntop.
59080
59081 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59082             Bruno Haible  <bruno@clisp.org>
59083
59084         * m4/inet_ntop.m4: New file.
59085
59086 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59087             Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/inet_ntop.h: New file.
59090         * lib/inet_ntop.c: New file, from glibc with modifications.
59091
59092 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59093
59094         * modules/time_r (License): Change to LGPL.
59095         * modules/extensions (License): Change to LGPL.  Actually,
59096         the license is more permissive than that, but currently gnulib-tool
59097         doesn't know how to handle more-permissive licenses.
59098
59099         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59100         Problem reported by Dave Love.
59101
59102 2005-05-08  Jim Meyering  <jim@meyering.net>
59103
59104         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59105         blank.
59106
59107 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * modules/argmatch (Depends-on): Add stdbool.
59110         * modules/backupfile (Depends-on): Likewise.
59111         * modules/chdir-long (Depends-on): Likewise.
59112         * modules/closeout (Depends-on): Likewise.
59113         * modules/cycle-check (Depends-on): Likewise.
59114         * modules/dirname (Depends-on): Likewise.
59115         * modules/fnmatch (Depends-on): Likewise.
59116         * modules/fsusage (Depends-on): Likewise.
59117         * modules/fwriteerror (Depends-on): Likewise.
59118         * modules/getcwd (Depends-on): Likewise.
59119         * modules/getloadavg (Depends-on): Likewise.
59120         * modules/hard-locale (Depends-on): Likewise.
59121         * modules/makepath (Depends-on): Likewise.
59122         * modules/mountlist (Depends-on): Likewise.
59123         * modules/nanosleep (Depends-on): Likewise.
59124         * modules/posixtm (Depends-on): Likewise.
59125         * modules/quotearg (Depends-on): Likewise.
59126         * modules/readtokens (Depends-on): Likewise.
59127         * modules/readtokens0 (Depends-on): Likewise.
59128         * modules/readutmp (Depends-on): Likewise.
59129         * modules/save-cwd (Depends-on): Likewise.
59130         * modules/strftime (Depends-on): Likewise.
59131         * modules/userspec (Depends-on): Likewise.
59132         * modules/utimecmp (Depends-on): Likewise.
59133         * modules/xgetcwd (Depends-on): Likewise.
59134         * modules/xnanosleep (Depends-on): Likewise.
59135         * modules/xstrtod (Depends-on): Likewise.
59136         * modules/yesno (Depends-on): Likewise.
59137
59138 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59141         needless checks.
59142
59143 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         Merge from coreutils.  Among other things,
59146         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59147         * lib/fd-safer.c: New file.
59148         * lib/fcntl-safer.h, open-safer.c: Remove.
59149         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59150         * lib/dup-safer.c: Include unistd-safer.h first.
59151         Don't include errno.h.
59152         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59153         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59154         * lib/file-type.c: Rely on file-type.h change.
59155         * lib/getloadavg.c: Include unistd-safer.h.
59156         (getloadavg): Use safer open.
59157         * lib/getusershell.c: Include "stdio-safer.h".
59158         (getusershell): Use safer fopen.
59159         * lib/long-options.c (long_options): Use NULL rather than 0.
59160         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59161         'free'.
59162         * lib/modechange.c: Likewise.
59163         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59164         (MODE_DONE): New constant.
59165         (struct mode_change): Remove 'next' member.
59166         (make_node_op_equals): New function; like the old one of the
59167         same name, except it allocates an array.
59168         (mode_compile, mode_create_from_ref): Use it.
59169         (mode_compile): Allocate result as an array, not a linked list.
59170         Parse octal string ourself, so that we catch mistakes like "+0".
59171         (mode_adjust): Arg is an array, not a linked list.
59172         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59173         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59174         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59175         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59176         Remove.  This is now stat-macros.h's job.
59177         (talloc): Remove.  All callers replaced by xalloc, so that
59178         our invokers don't have to worry about reporting memory failures.
59179         (make_node_op_equals): Remove.
59180         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59181         New constants.
59182         (struct mode_change): Moved here from modechange.h.
59183         (mode_append_entry): Remove.
59184         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59185         apps to have incorrect behavior.  Use simpler algorithm for head
59186         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59187         Detect more invalid usages rather than having somewhat-random behavior.
59188         Don't insert an "a=" action, as that leads to incorrect behavior.
59189         (mode_compile, mode_create_from_ref): Return NULL on error instead
59190         of an enum, since now there's only one way to have an error.  All
59191         callers changed.
59192         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59193         at the correct time.  Simplify calculation of "+u" and its ilk.
59194         Don't mishandle "+X".
59195         (mode_free): Remove "register" and localize decls.
59196         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59197         (struct mode_change): Move to modechange.c; callers don't
59198         need to see this stuff.
59199         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59200         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59201         (mode_change, mode_adjust): Reflect the new signatures noted above.
59202         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59203         that might redefine system include files.
59204         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59205         (my_usleep): Use NULL rather than (void *) 0.
59206         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59207         Use siginterrupt to specify that system calls should be interrupted.
59208         (rpl_nanosleep): Move initialization of suspended closer to call of
59209         my_usleep.
59210         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59211         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59212         (desirable_utmp_entry): New function.
59213         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59214         using x2nrealloc, to simplify logic.
59215         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59216         size calculation.  Do not assume utmp file is a regular file.
59217         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59218         (READ_UTMP_CHECK_PIDS): New constant.
59219         * lib/save-cwd.c: Include unistd-safer.h.
59220         (save_cwd): Use fd_safer.
59221         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59222         [!_LIBC] Include "stat-macros.h" instead.
59223         * lib/unistd-safer.h (fd_safer): New decl.
59224
59225 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         * modules/getloadavg (Depends-on): Add unistd-safer.
59228         * modules/getusershell (Depends-on): Add stdio-safer.
59229         * modules/lstat (Depends-on): Remove xalloc.
59230         * modules/mkstemp (Depends-on): Add stat-macros.
59231         * modules/modechange (Depends-on): Remove xstrtol.
59232         Add stat-macros, xalloc.
59233         * modules/save-cwd (Depends-on): Add unistd-safer.
59234         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59235         * modules/unistd-safer (Files): Add lib/fd-safer.c
59236         (Makefile.am): Remove lib_SOURCES.
59237
59238         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59239         Remove fcntl-safer; unistd-safer supersedes it.
59240
59241 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59242
59243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59244         AC_HEADER_STAT.
59245         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59246         (gl_PREREQ_CHOWN): Remove.
59247         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59248         it.  Don't require AC_HEADER_STAT.
59249         (gl_PREREQ_LSTAT): Remove.
59250         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59251         Don't require AC_HEADER_STAT.
59252         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59253         (gl_PREREQ_RMDIR): Remove.
59254         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59255         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59256         the stat-macros module a prerequisite.
59257         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59258         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59259         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59260         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59261         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59262         variable names.
59263         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59264         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59265         variable prefixes.
59266         * m4/fcntl-safer.m4: Remove.
59267         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59268         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59269         Invoke gl_PREREQ_FD_SAFER.
59270         (gl_PREREQ_FD_SAFER): New macro.
59271         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59272         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59273         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59274         Remove duplicate call to AC_LIBOBJ(readutmp).
59275         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59276
59277         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59278         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59279
59280 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59281
59282         * MODULES.html.sh (Misc): Add byteswap.
59283
59284 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59285
59286         * modules/getcwd (Depends-on): Add extensions.
59287         * modules/openat (Depends-on): Likewise.
59288
59289 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59290
59291         * modules/byteswap: New file.
59292
59293 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59294
59295         * m4/byteswap.m4: New file.
59296
59297 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59298
59299         * lib/byteswap_.h: New file.
59300
59301 2005-04-25  Karl Berry  <karl@gnu.org>
59302
59303         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59304
59305 2005-04-25  Albert Chin  <china@thewrittenword.com>
59306
59307         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59308         Toolkit C bug.
59309
59310 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59311
59312         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59313         (func_ln_if_changed) Remove forcibly for no error message
59314         in case file does not exist.
59315
59316 2005-04-19  Simon Josefsson  <jas@extundo.com>
59317
59318         * gnulib-tool (Options): Make --symlink mean --symbolic.
59319
59320 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59321
59322         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59323
59324 2005-04-16  Simon Josefsson  <jas@extundo.com>
59325
59326         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59327
59328 2005-04-15  Simon Josefsson  <jas@extundo.com>
59329
59330         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59331
59332 2005-04-15  Simon Josefsson  <jas@extundo.com>
59333
59334         * gnulib-tool: Rename --symlink to --symbolic.
59335
59336 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59337
59338         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59339         symbolic links to files instead of copying/moving.  Add --aux-dir,
59340         specifying directory relative --dir where auxiliary build tools
59341         are placed.
59342
59343 2005-04-14  Bruno Haible  <bruno@clisp.org>
59344
59345         * modules/allocsa (License): Change to LGPL.
59346         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59347
59348 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59351         that "UTC +1 second" continues to work.  Problem reported
59352         by Dmitry V. Levin.
59353         (relunit_snumber): New rule.
59354         (relunit): Use it.
59355
59356 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * lib/getdate.y (universal_time_zone_table): New constant.
59359         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59360         universal_time_zone_table.
59361         (lookup_zone): Prefer universal_time_zone_table to
59362         local_time_zone_table, so that "GMT" time stamps are allowed in
59363         London during the summer.  Problem reported by Ian Abbott.
59364
59365 2005-04-12  Jim Meyering  <jim@meyering.net>
59366
59367         * lib/human.c (humblock): Set *options even when returning due to
59368         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59369         warning from gcc-4.
59370
59371 2005-04-09  Jim Meyering  <jim@meyering.net>
59372
59373         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59374         -Wuninitialized: initialize tm0.tm_year.
59375
59376 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59377
59378         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59379         count, since there's no maximum.  All uses changed.
59380         Add member dsts_seen.
59381         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59382         not being INT_MAX.
59383         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59384         Use pc_rels_seen to decide whther a date is absolute.
59385
59386         * lib/getdate.y (number): Don't overwrite year.
59387         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59388         check.
59389
59390 2005-04-02  Simon Josefsson  <jas@extundo.com>
59391
59392         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59393         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59394
59395 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59396
59397         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59398         where no absolute path name can be longer than PATH_MAX.
59399
59400 2005-03-27  Jim Meyering  <jim@meyering.net>
59401
59402         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59403
59404 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59407         "one's complement" -> "ones' complement" in comment, as per Knuth.
59408         "value of type" -> "type or expression" in comment.
59409         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59410
59411 2005-03-26  Jim Meyering  <jim@meyering.net>
59412
59413         Comment nits.
59414         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59415         Correct typos: s/or/of/.
59416
59417 2005-03-26  Jim Meyering  <jim@meyering.net>
59418
59419         * modules/check-include-files: Move to ../ and rename to...
59420         * check-module: ...this.
59421
59422 2005-03-25  Jim Meyering  <jim@meyering.net>
59423
59424         * modules/xvasprintf (Files): Add xalloc.h.
59425
59426 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59427
59428         * modules/gettext (Files): config/config.rpath ->
59429         build-aux/config.rpath
59430         * modules/iconv (Files): Likewise.
59431         Problem reported by Oskar Liljeblad.
59432
59433 2005-03-23  Jim Meyering  <jim@meyering.net>
59434
59435         * modules/check-include-files: New script to check for
59436         missing dependencies, multiple includes, etc.
59437
59438         * modules/c-strtold (Depends-on): Add xalloc.
59439         * modules/c-strtod (Depends-on): Add xalloc.
59440         * modules/hash (Depends-on): Add xalloc.
59441         (Files): Remove lib/xalloc.h.
59442
59443         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59444         * modules/userspec (Files): Add lib/inttostr.h.
59445
59446 2005-03-23  Jim Meyering  <jim@meyering.net>
59447
59448         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59449
59450 2005-03-22  Jim Meyering  <jim@meyering.net>
59451
59452         * modules/stat-macros: New module.
59453         * modules/canonicalize, modules/euidaccess, modules/file-type,
59454         * modules/filemode, modules/lchown, modules/makepath,
59455         * modules/rmdir, modules/stat: Depend on new stat-macros module
59456         rather than listing lib/stat-macros.h manually.
59457         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59458
59459 2005-03-22  Jim Meyering  <jim@meyering.net>
59460
59461         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59462
59463 2005-03-22  Bruno Haible  <bruno@clisp.org>
59464
59465         * config/srclist.txt: Replace target directory 'config' with
59466         'build-aux'.
59467         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59468         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59469         ../build-aux/.
59470
59471 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         * modules/chdir-long (Depends-on): Add mempcpy.
59474
59475         * modules/acl, modules/backupfile, modules/c-strtod,
59476         modules/c-strtold, modules/canon-host, modules/canonicalize,
59477         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59478         modules/exclude, modules/exitfail, modules/file-type,
59479         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59480         modules/getdate, modules/getline, modules/getpagesize,
59481         modules/getpass, modules/getugroups, modules/group-member,
59482         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59483         modules/inttostr, modules/long-options, modules/makepath,
59484         modules/md5, modules/memcasecmp, modules/memcoll,
59485         modules/modechange, modules/mountlist, modules/path-concat,
59486         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59487         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59488         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59489         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59490         modules/strftime, modules/strndup, modules/strverscmp,
59491         modules/timespec, modules/unlocked-io, modules/userspec,
59492         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59493         modules/yesno:
59494         Remove lib_SOURCES line from Makefile.am section, as this is now
59495         done automatically by the corresponding Autoconf macro.
59496
59497 2005-03-21  Jim Meyering  <jim@meyering.net>
59498
59499         Changes imported from coreutils.
59500
59501         * lib/cycle-check.c: Don't include xalloc.h.
59502
59503         * lib/path-concat.c: Don't include assert.h.
59504         (path_concat): Remove assertion that would have triggered
59505         for ABASE starting with more than one slash.
59506         Reported by Andreas Schwab.
59507
59508         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59509         properly when ABASE is an absolute file name.
59510         Correct the description of this function.
59511         Include <assert.h>.
59512         Add an assertion and a test driver.
59513         This fixes a bug introduced on 2004-07-02.
59514         Andreas Schwab reported the resulting failure of cp --parents:
59515         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59516
59517 2005-03-21  Jim Meyering  <jim@meyering.net>
59518
59519         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59520         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59521
59522 2005-03-21  Jim Meyering  <jim@meyering.net>
59523         and  Paul Eggert  <eggert@cs.ucla.edu>
59524
59525         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59526         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59527         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59528         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59529         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59530         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59531         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59532         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59533         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59534         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59535         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59536         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59537         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59538         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59539         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59540         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59541         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59542         for these modules.
59543
59544 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59545
59546         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59547         (which shouldn't happen), generate nothing instead of returning 0
59548         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59549
59550 2005-03-16  Bruno Haible  <bruno@clisp.org>
59551
59552         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59553         HAVE_LONGLONG_64BIT.
59554
59555 2005-03-16  Bruno Haible  <bruno@clisp.org>
59556
59557         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59558         HAVE_LONGLONG_64BIT.
59559
59560 2005-03-16  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59563         HAVE_LONGLONG_64BIT.
59564
59565 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59568         reliably distinguish strftime failure from empty output on POSIX
59569         hosts.
59570
59571 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59574         (iconv_string): Don't guess a size-zero buffer, as that might cause
59575         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59576         result would be 'too large', where 'too large' is (heuristically)
59577         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59578         overflow concerns.  This will prevent some unwanted malloc failures
59579         when the inputs are very large.
59580
59581 2005-03-15  Karl Berry  <karl@gnu.org>
59582
59583         * config/srclist.txt (config.rpath): from gettext.
59584         * config/config.rpath: update.
59585
59586 2005-03-15  Bruno Haible  <bruno@clisp.org>
59587
59588         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59589         to 'negate'.
59590
59591         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59592         variable.
59593
59594         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59595         results.
59596
59597 2005-03-14  Simon Josefsson  <jas@extundo.com>
59598
59599         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59600         <fx@gnu.org>.
59601
59602 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59603
59604         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59605         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59606         intprops.h.
59607         * lib/strtol.c: Likewise.
59608
59609 2005-03-14  Jim Meyering  <jim@meyering.net>
59610
59611         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59612         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59613         to be nonzero so that we (and caller) can detect the difference
59614         between a valid zero-length expansion and an error return, even
59615         when the underlying strftime fails before writing anything into
59616         that location.
59617
59618 2005-03-14  Bruno Haible  <bruno@clisp.org>
59619
59620         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59621         Update from GNU gettext 0.14.3.
59622
59623 2005-03-10  Jim Meyering  <jim@meyering.net>
59624
59625         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59626
59627 2005-03-10  Jim Meyering  <jim@meyering.net>
59628
59629         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59630         so that this module works on systems without fchdir.
59631
59632 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         Factor int-properties macros into a single file, except for
59635         glibc-related files.
59636         * lib/intprops.h: New file.
59637         * lib/getloadavg.c: Include it instead of limits.h.
59638         (INT_STRLEN_BOUND): Remove.
59639         * lib/human.c: Include intprops.h.
59640         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59641         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59642         302/1000.
59643         * lib/inttostr.h: Include intprops.h instead of limits.h.
59644         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59645         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59646         for consistency with intprops.h.
59647         (time_t_is_integer, twos_complement_arithmetic): Use them.
59648         * lib/sig2str.h: Include <signal.h>, intprops.h.
59649         (INT_STRLEN_BOUND): Remove.
59650         * lib/strftime.c (TYPE_SIGNED): Remove.
59651         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59652         * lib/strtol.c: Adjust comments to match intprops.h.
59653         * lib/userspec.c: Include intprops.h.
59654         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59655         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59656         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59657         instead of rolling our own expressions.
59658         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59659
59660         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59661         instead of int.
59662         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59663         the right thing even if adding 1900 would overflow.  Similarly
59664         for tm_mon + 1 and tm_yday + 1.
59665         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59666         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59667         (DO_SIGNED_NUMBER): New macro.
59668         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59669
59670 2005-03-07  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59673
59674 2005-03-07  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59677
59678 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59679
59680         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59681         (func_import): Only replace files via --import when they have actually
59682         changed.
59683
59684 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59685
59686         * m4/mmap-anon.m4: New file.
59687         * m4/pagealign_alloc.m4: New file.
59688
59689 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59690             Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/pagealign_alloc: New file.
59693         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59694
59695 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59696             Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/pagealign_alloc.h: New file.
59699         * lib/pagealign_alloc.c: New file.
59700
59701 2005-03-03  Bruno Haible  <bruno@clisp.org>
59702
59703         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59704         Use an all-permissive copyright notice, recommended by RMS.
59705
59706 2005-03-02  Bruno Haible  <bruno@clisp.org>
59707
59708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59709         of AIX, the replacement has to be done only after <string.h> is
59710         included, therefore not in config.h. stpncpy.h does the replacement,
59711         and stpncpy.c uses it.
59712
59713 2005-03-02  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59716         stpncpy.c uses it.
59717
59718 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59721         The workaround isn't strictly needed for POSIX conformance, and
59722         it's too much of a pain to configure and maintain.  We'll ask
59723         people to fix their kernels instead.
59724         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59725         (NANOSLEEP_BUG_WORKAROUND): Remove.
59726         (xnanosleep): Remove the workaround.
59727
59728 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59731         Reported by Derek Price.
59732         (Include): Add "timespec.h".
59733
59734         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59735
59736 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59737
59738         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59739         to detect nanosleep bug.
59740
59741 2005-03-01  Bruno Haible  <bruno@clisp.org>
59742
59743         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59744
59745 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59746
59747         * modules/gethrxtime: New file.
59748         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59749         (Depends-on): Add gethrxtime.
59750         (configure.ac): Add gl_XNANOSLEEP.
59751         (Makefile.am): Remove lib_SOURCES line.
59752
59753 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59756         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59757
59758 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59761         * lib/timespec.h (gettime): Return void, since it always
59762         succeeds now.  All uses changed.
59763         * lib/gettime.c (gettime) Likewise.
59764         [HAVE_NANOTIME]: Prefer nanotime.
59765         Assume gettimeofday succeeds, as POSIX requires.
59766         Assime time () succeeds, since other code already does.
59767         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59768         (timespec_subtract): Remove.
59769         (NANOSLEEP_BUG_WORKAROUND): New constant.
59770         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59771         things considerably.  Use it only on GNU/Linux hosts, since the
59772         workaround shouldn't be needed elsewhere.
59773
59774 2005-02-24  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/gettext (Files): Add m4/glibc2.m4.
59777
59778 2005-02-24  Bruno Haible  <bruno@clisp.org>
59779
59780         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59781         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59782         * m4/progtest.m4:
59783         Update from GNU gettext 0.14.2.
59784         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59785
59786 2005-02-24  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59789         * lib/config.charset: Update from GNU gettext 0.14.2.
59790
59791 2005-02-24  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/gettext.h: Update from GNU gettext 0.14.2.
59794
59795 2005-02-23  Simon Josefsson  <jas@extundo.com>
59796
59797         * m4/iconvme.m4: New file.
59798
59799 2005-02-23  Jim Meyering  <jim@meyering.net>
59800
59801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59802         change.
59803         Thanks to Bruno Haible for catching it.
59804
59805 2005-02-22  Simon Josefsson  <jas@extundo.com>
59806
59807         * modules/iconvme: New file.
59808
59809         * MODULES.html.sh: Add iconvme.
59810
59811 2005-02-22  Simon Josefsson  <jas@extundo.com>
59812
59813         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59814
59815 2005-02-22  Simon Josefsson  <jas@extundo.com>
59816
59817         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59818
59819 2005-02-22  Jim Meyering  <jim@meyering.net>
59820
59821         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59822         s/ifndef/ifdef/.
59823
59824 2005-02-20  Neil Conway  <neilc@samurai.com>
59825
59826         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59827         returned by OSX/Darwin if the specified buffer is not large
59828         enough for the hostname.
59829
59830 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59831
59832         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59833         pass it to _help, otherwise the latter coredumps trying to
59834         dereference state.root_argp.
59835
59836 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * modules/chdir-long (Depends-on): Add memrchr.
59839         * modules/memrchr (Files): Add lib/memrchr.h.
59840         (Include): "memrchr.h".
59841
59842 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59843
59844         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59845
59846 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * lib/memrchr.h: New file.
59849         * lib/chdir-long.c: Include it.
59850         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59851         Don't bother including stddef.h.
59852
59853 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59856         inclusion.
59857         Include <sys/types.h>, for dev_t.
59858         (ME_DUMMY, ME_REMOTE): Move from here....
59859         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59860         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59861         Dmitry V. Levin.
59862         Include mountlist.h first, to test the interface.
59863
59864 2005-01-29  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/progname.c (program_name): Initialize.
59867         Needed when linking statically on MacOS X.
59868
59869 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59870
59871         Sync from coreutils.
59872         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59873         (Depends-on): Add c-strtod.
59874         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59875
59876 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         Sync from coreutils.
59879         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59880
59881         Remove files that are specific to coreutils.
59882         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59883
59884 2005-01-28  Bruno Haible  <bruno@clisp.org>
59885
59886         * modules/javacomp: New file.
59887         * MODULES.html.sh (Java): Add javacomp.
59888
59889 2005-01-28  Bruno Haible  <bruno@clisp.org>
59890
59891         * m4/javacomp.m4: New file, from GNU gettext.
59892
59893 2005-01-28  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/javacomp.sh.in: New file, from GNU gettext.
59896         * lib/javacomp.h: New file, from GNU gettext.
59897         * lib/javacomp.c: New file, from GNU gettext.
59898
59899 2005-01-26  Simon Josefsson  <jas@extundo.com>
59900
59901         * lib/gai_strerror.c: Use GPL in header.
59902
59903 2005-01-26  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/javaexec: New file.
59906         * MODULES.html.sh (Java): Add javaexec.
59907
59908 2005-01-26  Bruno Haible  <bruno@clisp.org>
59909
59910         * m4/javaexec.m4: New file, from GNU gettext.
59911
59912 2005-01-26  Bruno Haible  <bruno@clisp.org>
59913
59914         * lib/javaexec.sh.in: New file, from GNU gettext.
59915         * lib/javaexec.h: New file, from GNU gettext.
59916         * lib/javaexec.c: New file, from GNU gettext.
59917
59918 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59919
59920         * modules/lchown (Depends-on): Remove lchown.h
59921
59922 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59923
59924         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59925         must be defined if the header file was not found, in order
59926         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59927
59928 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59929
59930         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59931         initializers for struct pentry_state.
59932         (__argp_error): Check return value of __asprintf
59933         (__argp_failure): Translate error message
59934
59935         * lib/argp-parse.c: Removed braces around the expansion of N_()
59936
59937 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59940         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59941         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59942         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59943         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59944         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59945         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59946         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59947         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59948         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59949         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59950         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59951         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59952         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59953         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59954         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59955         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59956         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59957         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59958         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59959         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59960         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59961         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59962         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59963         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59964         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59965         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59966         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59967         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59968         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59969         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59970         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59971         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59972         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59973         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59974         Use an all-permissive copyright notice, recommended by RMS.
59975
59976 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59977
59978         * modules/chdir-long (Depends-on): Remove mempcpy.
59979
59980 2005-01-21  Jim Meyering  <jim@meyering.net>
59981
59982         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59983         same value as for Solaris 9.
59984
59985         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59986         component length.  This included changing the parameter to be
59987         of type `char *' rather than `char const *'.
59988         * lib/chdir-long.h (chdir_long): Update prototype.
59989
59990         * lib/openat.c (fdopendir, fstatat): New functions.
59991         * lib/openat.h: Include headers required for use of DIR and struct
59992         stat.
59993         [AT_SYMLINK_NOFOLLOW]: Define.
59994         (fdopendir, fstatat): Add prototypes.
59995
59996 2005-01-21  Bruno Haible  <bruno@clisp.org>
59997
59998         * modules/classpath: New file.
59999         * MODULES.html.sh (Java): Add classpath.
60000
60001 2005-01-21  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/classpath.h: New file, from GNU gettext.
60004         * lib/classpath.c: New file, from GNU gettext.
60005
60006 2005-01-20  Simon Josefsson  <jas@extundo.com>
60007
60008         * modules/version-etc-fsf: New file.
60009
60010 2005-01-20  Simon Josefsson  <jas@extundo.com>
60011
60012         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60013         * lib/version-etc.c: Remove version_etc_copyright.
60014         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60015         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60016
60017 2005-01-20  Simon Josefsson  <jas@extundo.com>
60018
60019         * lib/base64.h (isbase64): Add.
60020
60021         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60022         using a unsigned prototype, don't inline.
60023         (base64_decode): Use it.
60024
60025 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60028         it.
60029
60030 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         * lib/save-cwd.c (save_cwd): Remove code to support the case
60033         where fchdir is missing or flaky.
60034
60035 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60038
60039 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60040
60041         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60042         AC_LIBSOURCES now does this.
60043         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60044         with new ullong_max module.
60045
60046 2005-01-19  Bruno Haible  <bruno@clisp.org>
60047
60048         * modules/sh-quote: New file.
60049         * MODULES.html.sh (Executing programs): Add sh-quote.
60050
60051 2005-01-19  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/sh-quote.h: New file, from GNU gettext.
60054         * lib/sh-quote.c: New file, from GNU gettext.
60055
60056 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         Merge from coreutils.
60059         * m4/ullong_max.m4: New file.
60060         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60061         (gl_MACROS): Assume localeconv exists.
60062
60063 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         Merge changes from coreutils, as described below in several
60066         changelogs dated today.
60067
60068         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60069         (O_DIRECTORY): Remove; not needed here, since "." must be
60070         a directory.  All uses removed.
60071         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60072         universal on Suns, and we also need to test for IRIX.
60073         Revamp code to use 'if' rather than '#if'.
60074         Avoid unnecessary comparison of cwd->desc to 0.
60075
60076         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60077         for known valid error numbers rather than observed invalid ones.
60078
60079 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         * modules/ullong_max: New file.
60082
60083         * modules/chdir-long, modules/openat: New files.
60084         * modules/save-cwd (Depends-on): Depend on chdir-long.
60085         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60086
60087 2005-01-18  Jim Meyering  <jim@meyering.net>
60088
60089         Merge from coreutils.
60090         * m4/chdir-long.m4, m4/openat.m4: New files.
60091         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60092         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60093         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60094         is sane and DOES follow symlinks.  Besides, testing 20 different
60095         systems found no broken chown implementations.
60096         Prompted by a change in rsync's copy of this macro.
60097         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60098
60099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60100
60101         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60102         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60103         NULL-means-set-to-current-time semantics.
60104         Remove temporary file immediately, rather than waiting
60105         for configure's at-exit trap code to do it.
60106
60107 2005-01-18  Jim Meyering  <jim@meyering.net>
60108
60109         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60110
60111         * lib/utimens.c (futimens): Account for the fact that futimes
60112         can also fail with errno == ENOSYS or errno == ENOENT.
60113         Patch from Dmitry V. Levin.
60114
60115         Change the name of the robust chdir function from chdir to chdir_long.
60116         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60117         (restore_cwd): Use chdir_long, not chdir.
60118         * lib/chdir-long.c: Renamed from chdir.c.
60119         * lib/chdir-long.h: Renamed from chdir.h.
60120         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60121         Hurd.
60122
60123 2005-01-18  Bruno Haible  <bruno@clisp.org>
60124
60125         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60126         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60127         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60128         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60129         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60130         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60131         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60132         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60133         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60134         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60135         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60136         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60137         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60138         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60139         Use an all-permissive copyright notice, recommended by RMS.
60140
60141 2005-01-18  Bob Proulx  <bob@proulx.com>
60142
60143         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60144         simplify offsetof() macro construct to avoid compile failure with
60145         native HP-UX 11.0 ANSI C compiler.
60146
60147 2005-01-17  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60150         redundant because stpncpy.m4 takes care of it.
60151
60152 2005-01-17  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60155
60156 2005-01-17  Bruno Haible  <bruno@clisp.org>
60157
60158         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60159         used.
60160
60161 2005-01-17  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/fwriteerror.h (fwriteerror): Change specification to include
60164         fclose.
60165         * lib/fwriteerror.c: Include <stdbool.h>.
60166         (fwriteerror): At the end, close the file stream. Record whether
60167         stdout was already closed.
60168
60169 2005-01-17  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/execute.c (environ): Declare if needed.
60172         * lib/pipe.c (environ): Likewise.
60173         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60174
60175 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60176
60177         * modules/argp: Depend on vsnprintf
60178
60179 2005-01-10  Jim Meyering  <jim@meyering.net>
60180
60181         * modules/closeout (Depends-on): Add atexit.
60182
60183 2005-01-06  Bruno Haible  <bruno@clisp.org>
60184
60185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60186
60187 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60190         definitions to be after all include files, to avoid collisions.
60191         Problem reported by Bob Proulx.
60192
60193 2005-01-04  Jim Meyering  <jim@meyering.net>
60194
60195         Changes imported from coreutils.
60196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60197         as the mkstemp template, use a temporary directory and an
60198         8.3-friendly template to avoid trouble on systems like DJGPP.
60199         Reported by Juan M. Guerrero via Stepan Kasal.
60200         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60201         close. Remove the temporary directory right away, rather than waiting
60202         for configure's at-exit trap code to do it.
60203         Suggestion from Stepan Kasal.
60204
60205 2005-01-01  Simon Josefsson  <jas@extundo.com>
60206
60207         * gnulib-tool: Print #include directives when --import'ing.
60208
60209 2004-12-28  Simon Josefsson  <jas@extundo.com>
60210
60211         * tests/test-base64.c: Include required header files.  Remove
60212         unused variables.
60213
60214 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60215
60216         * modules/error (Depends-on): Remove gettext.
60217
60218 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60221         not needed.  This removes a dependency on the gettext module.
60222         [defined _LIBC]: Do not include <libintl.h>; not needed.
60223
60224 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60227         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60228
60229 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60230
60231         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60232         HAVE_DECL_STRTOLD.
60233
60234 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60235
60236         * modules/getdate (Depends-on): Remove alloca-opt.
60237
60238 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60241
60242 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/argp-parse.c: Include <stddef.h>.
60245         (alignof, alignto): New macros.
60246         (parser_init): Don't assume that void * is aligned sufficiently
60247         for struct option.
60248
60249         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60250         need to extend the stack.
60251         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60252         large.
60253
60254 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60255
60256         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60257
60258 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60261         (2004-10-24) change.  Apparently this was a false alarm.
60262
60263         * modules/getdate: Depend on alloca-opt, not alloca.
60264
60265 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60268         Remove now-obsolete comment about AIX.
60269         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60270         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60271         (YYMAXDEPTH): New macro.
60272
60273 2004-12-18  Simon Josefsson  <jas@extundo.com>
60274
60275         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60276
60277 2004-12-18  Bruno Haible  <bruno@clisp.org>
60278
60279         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60280
60281 2004-12-18  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/fatal-signal.c (fatal_signals): Make non-const.
60284         (init_fatal_signals): New function.
60285         (uninstall_handlers, install_handlers): Ignore signals that were set to
60286         SIG_IGN.
60287         (at_fatal_signal): Call init_fatal_signals.
60288         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60289         SIG_IGN.
60290         Reported by Paul Eggert.
60291
60292 2004-12-18  Bruno Haible  <bruno@clisp.org>
60293
60294         * doc/alloca.texi: New file.
60295         * doc/alloca-opt.texi: New file.
60296
60297 2004-12-17  Jim Meyering  <jim@meyering.net>
60298
60299         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60300         Otherwise, install-sh could exit with improper exit status when
60301         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60302
60303 2004-12-16  Simon Josefsson  <jas@extundo.com>
60304
60305         * tests/test-base64.c: Add license.
60306
60307 2004-12-15  Stepan Kasal  <address@hidden>
60308
60309         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60310
60311 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * modules/getcwd (Files): Add m4/d-ino.m4.
60314         Suggested by Mark D. Baushke.
60315
60316 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         * lib/getdate.y (textint): New member "negative".
60319         (time_zone_hhmm): New function.
60320         Expect 14 shift-reduce conflicts, not 13.
60321         (o_colon_minutes): New rule.
60322         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60323         (yylex): Set the "negative" member of signed numbers.
60324
60325 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * doc/getdate.texi (Time of day items, Time zone items):
60328         Describe new formats +00:00, UTC+00:00.
60329
60330 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60333         spurious "-l"s.  Problem reported by Stepan Kasal.
60334
60335 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60338         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60339
60340 2004-12-04  Simon Josefsson  <jas@extundo.com>
60341
60342         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60343         Vandoorselaere <yoann@prelude-ids.org>.
60344
60345 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         Changes imported from coreutils.
60348         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60349         exist.
60350         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60351
60352 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         Changes imported from coreutils.
60355         * lib/hard-locale.c: Assume <locale.h> exists.
60356         Include "strdup.h".
60357         (GLIBC_VERSION): New macro.
60358         (hard_locale): Assume setlocale exists.
60359         Rewrite to avoid #ifdef.
60360         Use strdup rather than malloc + strcpy.
60361         * lib/human.c: Assume <locale.h> exists.
60362         (human_readable): Assume localeconv exists.
60363
60364 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * modules/hard-locale (Depends-on): Add strdup.
60367
60368 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60369
60370         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60371         convert T2, not T.  (Imported from libc.)
60372
60373 2004-11-30  Simon Josefsson  <jas@extundo.com>
60374
60375         * modules/restrict (License): Change to LGPL.
60376
60377 2004-11-30  Simon Josefsson  <jas@extundo.com>
60378
60379         * m4/restrict.m4: Add copyright and copying conditions.
60380
60381 2004-11-30  Simon Josefsson  <jas@extundo.com>
60382
60383         * m4/base64.m4: New file.
60384
60385 2004-11-30  Simon Josefsson  <jas@extundo.com>
60386
60387         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60388         base64.
60389
60390         * tests/test-base64.c: New file.
60391
60392         * modules/base64: New file.
60393
60394 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60395
60396         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60397         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60398
60399         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60400
60401 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60404         (__getcwd.c): Don't restore errno; glibc doesn't.
60405         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60406         first, falling back to our code only if its results look suspicious.
60407         Ensure that the resulting buffer is only as large as necessary.
60408
60409         * lib/readutmp.c: Include readutmp.h first.
60410         Include <errno.h>, since readutmp.h no longer does that.
60411         * lib/readutmp.h: Don't include <errno.h>,
60412         <sys/param.h>, <time.h>; not needed to establish interface.
60413         (errno): Remove decl.
60414         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60415         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60416         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60417
60418 2004-11-28  Simon Josefsson  <jas@extundo.com>
60419
60420         * lib/base64.h, base64.c: New file.
60421
60422 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60425
60426 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60429         (Depends-on): Remove pathmax, same.  Add mempcpy.
60430         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60431         (Makefile.am): Append getcwd.h to lib_SOURCES.
60432         (Include): Add getcwd.h.
60433         (Maintainer): Change from Jim Meyering to "all, glibc",
60434         since getdate now uses intended-for-glibc code.
60435         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60436         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60437
60438 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60441         HP's ANSI C compiler.
60442         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60443         Declaring int functions causes warnings on some modern systems and
60444         shouldn't be needed to compile on ancient ones.
60445         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60446         defined.
60447
60448         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60449         with the following changes.
60450         (__set_errno): Parenthesize properly.
60451         Include <stdbool.h>.
60452         (MIN, MAX, MATCHING_INO): New macros.
60453         (__getcwd): Define with prototype, not K&R form.
60454         Use heuristics to allocate default buffer on stack if possible.
60455         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60456         behavior, and to avoid the PATH_MAX limit when computing
60457         ../../../../...
60458         Use MATCHING_INO to compare inode number to file.
60459         Check for arithmetic overflow in size calculations.
60460         Fix bug in reallocation of dot array that caused getcwd to fail
60461         on directories nested deeper than 75.
60462         Be more careful about saving errno on error.
60463         Do not use realloc; use only free+malloc, as this is a bit
60464         more flexible and avoids a needless copy operation.
60465         Do not inspect st_dev and st_ino for symbolic links; POSIX
60466         doesn't specify the latter.
60467         Check for closedir errors.
60468         Avoid needless casts.
60469         Use "#ifdef weak_alias" around weak_alias, to be like other
60470         glibc code.
60471         The following changes to getcwd.c have effect only when used in
60472         gnulib; they have no effect inside glibc proper.
60473         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60474         as alloca isn't used.
60475         (alloca, __alloca): Likewise.
60476         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60477         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60478         unconditionally, as gnulib assumes C89 or better.
60479         Do not include <sys/param.h>.
60480         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60481         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60482         better.
60483         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60484         Include <dirent.h> in a way that is compatible with modern Autoconf.
60485         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60486         New macros, if not already defined.
60487         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60488         Use "_LIBC", not "defined _LIBC", for consistency.
60489         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60490         a mempcpy module.
60491         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60492         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60493         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60494         credit only to Jim Meyering and adjust the copyright dates.
60495         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60496         <stdlib.h>, <unistd.h>, "pathmax.h".
60497         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60498         (INITIAL_BUFFER_SIZE): Remove.
60499         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60500
60501 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60504         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60505         Use the _ONCE methods, for efficiency.
60506         Check for fcntl.h.  In test program, include <errno.h>
60507         and <fcntl.h> if available.  Remove old K&R cruft from
60508         test program.  Check for common errors in GNU/Linux,
60509         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60510         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60511         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60512         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60513         name accordingly.
60514         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60515         accommodate new getcwd.c.
60516         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60517         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60518         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60519         that's all we need now.
60520
60521 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60522
60523         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60524         argp-parse.c depends on getopt internals, that means we should
60525         always use our getopt, to be on the safe side.
60526         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60527         order not to spoil the result of an eventual previous invocation
60528         of gl_GETOPT_SUBSTITUTE.
60529
60530 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60531
60532         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60533         redefinition warnings. To avoid them, include the defines
60534         in `#if !defined __need_getopt ... #endif'. The only place
60535         where __getopt_argv_const is used is in definitions
60536         of getopt_long and getopt_long_only below, which are as well
60537         protected by `#ifndef __need_getopt'.
60538         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60539         __need_getopt after including <stdio.h> and <unistd.h> These
60540         headers might have defined it.
60541
60542 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60545
60546 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60549         (futimens): New function, which uses futimes if available.
60550         (futimens, utimens): Support timespec==NULL, with same semantics
60551         as utime and utimens.
60552         * lib/utimens.h (futimens): New decl.
60553
60554 2004-11-23  Jim Meyering  <jim@meyering.net>
60555
60556         * lib/getopt_.h: Remove trailing blanks.
60557
60558 2004-11-23  Jim Meyering  <jim@meyering.net>
60559
60560         * lib/__fpending.c: Add comment.
60561
60562 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * modules/canonicalize (Depends-on): Add xreadlink.
60565         Problem reported by James Youngman.
60566
60567 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60570         New macros.
60571         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60572         optopt): Use them instead of invoking ## directly; otherwise, the
60573         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60574
60575 2004-11-19  Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/strtok_r.c: Move comments from here...
60578         * lib/strtok_r.h: ... to here.
60579
60580 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60583         implementations that mishandle size_t overflow.
60584
60585 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60588         might fail.  Problem reported by Yoann Vandoorselaere.
60589         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60590         implementations that mishandle size_t overflow.
60591
60592 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         * modules/canon-host (Depends-on): Add strdup.
60595
60596 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60599
60600 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         * lib/canon-host.c: Include "strdup.h".
60603         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60604         Use strdup instead of malloc/strcpy to duplicate strings.
60605
60606         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60607         (human_space_before_unit): New constant.
60608         * lib/human.c (human_readable): Support it.
60609
60610         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60611         (xgetcwd): Set errno correctly when failing.
60612         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60613         the failure is actually due to a PATH_MAX problem.
60614
60615         Further getopt changes to make it more likely that glibc will
60616         buy the changes back.
60617         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60618         (getopt): Use it, so to preserve glibc semantic
60619         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60620         when compiling for libc.
60621         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60622         (getopt_long, getopt_long_only): Use it.
60623
60624         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60625         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60626         (getopt): Argv is now char * const *, as per standard.
60627         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60628         not char *__getopt_argv_const *.
60629         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60630         _getopt_long_only_r): Likewise.
60631         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60632         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60633         _getopt_long_r, _getopt_long_only_r): Likewise.
60634         * lib/getopt_.h (__getopt_argv_const): Remove.
60635         (getopt): Argv is now char * const *, as per standard.
60636
60637         * lib/getdate.y (tORDINAL): New token.
60638         (day, relunit): Allow it for relative times.
60639         (relative_time_table): Use tORDINAL for ordinals.
60640
60641 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60642
60643         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60644         Document that "second" isn't allowed as an ordinal number.
60645
60646 2004-11-16  Jim Meyering  <jim@meyering.net>
60647
60648         * modules/closeout (Depends-on): Add fpending.
60649
60650 2004-11-15  Jim Meyering  <jim@meyering.net>
60651
60652         * lib/closeout.c: Include "__fpending.h" once again.
60653         Include <stdbool.h>.
60654         (close_stdout): Don't fail just because stdout was closed initially,
60655         since some programs don't write to stdout in the normal course of
60656         operation (other than --version and --help), and we don't want this
60657         function to make e.g. `touch file >&-' fail.
60658         But do fail if it was closed and someone has tried to write to it.
60659         E.g., `printf foo >&-' must fail.
60660
60661 2004-11-13  Jim Meyering  <jim@meyering.net>
60662
60663         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60664
60665 2004-11-12  Simon Josefsson  <jas@extundo.com>
60666
60667         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60668         small doc fix is still pending.
60669
60670 2004-11-11  Simon Josefsson  <jas@extundo.com>
60671
60672         * modules/strtok_r: New file.
60673
60674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60675         strtok_r.
60676
60677 2004-11-11  Simon Josefsson  <jas@extundo.com>
60678
60679         * m4/strtok_r.m4: New file.
60680
60681         * m4/getopt.m4: Replace opterr.
60682
60683 2004-11-11  Simon Josefsson  <jas@extundo.com>
60684
60685         * lib/strtok_r.h, strtok_r.c: New file.
60686
60687 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60690         of replacing opterr, getopt, etc.  This should handle the
60691         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60692
60693 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60696         we can stop lying to compilers about the constness of argv when we
60697         are compiled outside glibc.
60698         (getopt, getopt_long, getopt_long_only): Use it.
60699         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60700         _getopt_internal, getopt): Likewise.
60701         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60702         _getopt_long_only_r): Likewise.
60703         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60704         _getopt_long_r, _getopt_long_only_r): Likewise.
60705
60706         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60707         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60708         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60709         the other external symbols.
60710         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60711         declaration, since the above renaming now works around collisions.
60712
60713 2004-11-11  Jim Meyering  <jim@meyering.net>
60714
60715         * lib/linebreak.c: Remove trailing blanks.
60716         * lib/alloca_.h: Likewise.
60717         * lib/acosl.c: Likewise.
60718         * lib/euidaccess.c: Likewise.
60719         * lib/allocsa.h: Likewise.
60720
60721 2004-11-10  Simon Josefsson  <jas@extundo.com>
60722
60723         * m4/getaddrinfo.m4: New file.
60724
60725 2004-11-10  Simon Josefsson  <jas@extundo.com>
60726
60727         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60728
60729 2004-11-10  Simon Josefsson  <jas@extundo.com>
60730
60731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60732         getaddrinfo.
60733
60734         * modules/getaddrinfo: New file.
60735
60736 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60739
60740 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * lib/mktime.c (SHR): New macro, which is a portable
60743         substitute for >> that should work even on Crays.
60744         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60745         Problem reported by Mark D. Baushke in
60746         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60747         * lib/getdate.y (SHR): Likewise.
60748         (tm_diff): Use it.
60749         * lib/strftime.c (SHR): Likewise.
60750         (tm_diff): Use it.
60751         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60752         quote_these_too, so that right shifts are well defined.  All uses
60753         changed.
60754
60755 2004-11-10  Jim Meyering  <jim@meyering.net>
60756
60757         Ensure that no close failure goes unreported.
60758         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60759         return early when it seems there's nothing to flush.
60760         Don't include __fpending.h.
60761
60762 2004-11-10  Jim Meyering  <jim@meyering.net>
60763
60764         * modules/closeout (Depends-on): Remove fpending.
60765
60766 2004-11-10  Jim Meyering  <jim@meyering.net>
60767
60768         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60769
60770 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60773         gl_FUNC_STRFTIME.
60774         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60775         and AC_REQUIRE when possible, to avoid duplicate checks.
60776         Check for <wchar.h>.
60777
60778 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60781
60782 2004-11-09  Bruno Haible  <bruno@clisp.org>
60783
60784         * m4/sockpfaf.m4: New file.
60785
60786 2004-11-05  Bruno Haible  <bruno@clisp.org>
60787
60788         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60789         Reported by Mark D. Baushke <mdb@cvshome.org>.
60790
60791 2004-11-04  Bruno Haible  <bruno@clisp.org>
60792
60793         2004-09-11  Bruno Haible  <bruno@clisp.org>
60794                 * allocsa.valgrind: New file.
60795         2004-02-06  Bruno Haible  <bruno@clisp.org>
60796                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60797                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60798                 Reported by Christopher Seip <chris.seip@hp.com>.
60799
60800 2004-11-04  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60803         (Makefile.am): Distribute it.
60804
60805 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60806
60807         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60808         with errno == ERANGE if the buffer is too small.
60809         Problem reported by Mark D. Baushke.
60810
60811 2004-11-03  Albert Chin  <china@thewrittenword.com>
60812             Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60815         equivalent, substitute $ac_type for equivalent type rather than
60816         blindly using uint32_t *always* which won't work if uint32_t is not
60817         available.  Define _UINT32_T to work around typedef of uint32_t if
60818         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60819         2.5.1.
60820
60821 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         * m4/jm-macros.m4: Sync from coreutils.
60824         (gl_MACROS): Check for mbrlen, for pathchk.
60825         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60826
60827 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * lib/xreadlink.c (MAXSIZE): New macro.
60830         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60831         size does not exceed MAXSIZE.  Avoid cast.
60832         As suggested by Mark D. Baushke in
60833         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60834         if readlink fails with buffer size just under MAXSIZE, try again
60835         with MAXSIZE.
60836
60837 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60840
60841 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60842         and  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60845         (get_date): Overparenthesize to avoid GCC warning.
60846
60847 2004-11-02  Bruno Haible  <bruno@clisp.org>
60848
60849         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60850         returns void.
60851
60852 2004-11-02  Bruno Haible  <bruno@clisp.org>
60853
60854         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60855         function returns void.
60856
60857 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60860         fflush_unlocked, flockfile, funlockfile, funlockfile,
60861         fputs_unlocked, putc_unlocked.
60862
60863 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60866         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60867         already declared.
60868
60869 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60870
60871         * modules/getdate (Files): Add doc/getdate.texi.
60872         (Depends-on): Add setenv, xalloc.
60873
60874 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         * lib/getdate.y: Add support for TZ="foo" within a date string.
60877         Fix some bugs near time_t boundaries.  Reject dates with
60878         out-of-range components, e.g., "Sept 31".
60879         Include <stdlib.h>, "setenv.h", "xalloc.h".
60880         (ISDIGIT_LOCALE): Remove; unused.
60881         Note that the TZ and time functions used here are not reentrant.
60882         (mktime_ok, get_tz): New functions.
60883         (TZBUFSIZE): New constant.
60884         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60885         This requires that we sometimes generate our own TZ="XXX..." setting.
60886
60887 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * doc/getdate.texi: New file, from coreutils with modifications for
60890         the new TZ parsing.
60891
60892 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60893
60894         * lib/mktime.c (not_equal_tm): Remove redundant check.
60895
60896 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         * modules/regex (lib_SOURCES): Add regex.c.
60899         Reported by James Youngman in
60900         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60901
60902 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/getdate.y: Use Bison 1.875 features, and some minor
60905         code cleanups.  This change does not affect semantics.
60906         Don't include <stdlib.h>; no longer needed.
60907         Don't include unlocked-io.h; only the "#if TEST" code uses
60908         stdio, and performance isn't crucial there.
60909         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60910         Bison 1.875 features as described below.
60911         All uses of "PC." replaced by "pc->".
60912         (YYSTYPE): Add a forward declaration.
60913         (yylex, yyerror): Use full prototypes in forward decls.
60914         Use "%pure-parser" rather than obsolescent "%pure_parser".
60915         Use %parse-param and %lex-param instead of obsolescent
60916         YYPARSE_PARAM and YYLEX_PARAM.
60917         (meridian_table, month_and_day_table, time_units_table,
60918         relative_time_table, time_zone_table, military_table,
60919         lookup_zone, lookup_word, get_date):
60920         Use NULL instead of 0 where appropriate.
60921         (to_hour): Avoid abort (), to avoid a dependency on
60922         stdlib.h.
60923         (yyerror, yylex): Now accepts parser_control * arg.
60924         (main) [TEST]: Use '\0' rather than 0 for char.
60925
60926 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60929
60930 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60933         It's now the caller's responsibility to handle the case where
60934         !HAVE_GETPAGESIZE && !defined getpagesize.
60935
60936         * lib/mktime.c (leapyear): Arg is long int, not int.
60937
60938 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60939
60940         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60941
60942 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60945         missing.  Problem reported by James Youngman.
60946
60947 2004-10-16  Simon Josefsson  <jas@extundo.com>
60948
60949         * gnulib-tool: Fix comments.  Fix parse problem.
60950         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60951
60952 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60953
60954         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60955         implementation of getopt_long.  Problem reported by Alexander Taler in:
60956         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60957
60958 2004-10-15  Bruno Haible  <bruno@clisp.org>
60959
60960         * gnulib-tool: Untabify. Initialize supplied_libname.
60961         (func_usage): More homogenous output.
60962         (func_modules_transitive_closure, func_modules_to_filelist,
60963         func_emit_lib_Makefile_am): New functions.
60964         (func_import): New function, extracted from big case statement. Use
60965         func_get_license, func_modules_transitive_closure,
60966         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60967         opt_lgpl. Don't use test -a, as it's not portable.
60968         (func_create_testdir): Use func_modules_transitive_closure,
60969         func_modules_to_filelist, func_emit_lib_Makefile_am.
60970
60971 2004-10-15  Bruno Haible  <bruno@clisp.org>
60972
60973         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60974
60975 2004-10-15  Bruno Haible  <bruno@clisp.org>
60976
60977         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60978         the portions belonging to each module.
60979         Suggested by Derek Robert Price <derek@ximbiot.com>.
60980
60981 2004-10-12  Simon Josefsson  <jas@extundo.com>
60982
60983         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60984         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60985         to real functions.
60986
60987 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60988
60989         * modules/vsnprintf: New file.
60990
60991 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60992
60993         * m4/vsnprintf.m4: New file.
60994
60995 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60996
60997         * lib/vsnprintf.h: New file.
60998         * lib/vsnprintf.c: New file.
60999
61000 2004-10-11  Bruno Haible  <bruno@clisp.org>
61001
61002         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61003         vsnprintf.
61004
61005 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61008
61009 2004-10-07  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61012         fits into the provided buffer.
61013
61014 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/diacrit.c, diacrit.h: Add GPL notice.
61017
61018         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61019         notice.
61020         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61021         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61022         This avoids a potential constant-folding bug.
61023
61024 2004-10-05  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61027         for the declaration of strsep.
61028
61029 2004-10-05  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61032
61033 2004-10-04  Simon Josefsson  <jas@extundo.com>
61034
61035         * modules/memmem: New file.
61036         * tests/test-memmem.c: New file.
61037         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61038
61039 2004-10-04  Simon Josefsson  <jas@extundo.com>
61040
61041         * m4/memmem.m4: New file.
61042
61043 2004-10-04  Simon Josefsson  <jas@extundo.com>
61044
61045         * lib/memmem.h: New file.
61046         * lib/memmem.c: New file, taken from glibc.
61047
61048 2004-10-04  Simon Josefsson  <jas@extundo.com>
61049
61050         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61051         '#ifdef USE_UNLOCKED_IO'.
61052
61053 2004-10-04  Simon Josefsson  <jas@extundo.com>
61054
61055         * config/srclist.txt: Add memmem from glibc.
61056
61057 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61058
61059         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61060
61061         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61062         modules/exclude, modules/getdate, modules/getline,
61063         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61064         modules/getusershell, modules/linebuffer, modules/md5,
61065         modules/mountlist, modules/posixtm, modules/readtokens,
61066         modules/readutmp, modules/regex, modules/sha1,
61067         modules/version-etc, modules/yesno:
61068         Remove dependency on unlocked-io.
61069
61070 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61073
61074         * m4/unlocked-io.m4: Add copyright notice.
61075         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61076
61077 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61080         * lib/xmalloc.c (xmemdup): Likewise.
61081         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61082         XFREE): Remove these long-obsolescent macros.
61083         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61084         * lib/xstrdup.c: Remove.
61085
61086         * lib/regex.c (re_comp): Cast gettext return value to char *,
61087         Problem reported by Martin Neitzel via Mark D. Baushke.
61088
61089 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61092         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61093         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61094         regex.c, sha1.c, version-etc.c, yesno.c:
61095         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61096         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61097         the includer's responsibility.
61098
61099         Sync from coreutils.
61100
61101         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61102         points to the start of a string, as the C Standard says the
61103         resulting behavior is undefined.
61104
61105         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61106         simple -> simple_backups, numbered_existing ->
61107         numbered_existing_backups, numbered -> numbered_backups
61108         to avoid shadowing problems.  All uses changed.
61109         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61110         * lib/backupfile.c (check_extension, numbered_backup):
61111         Rename locals to avoid shadowing 'basename'.
61112         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61113         once.
61114
61115         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61116         * lib/.cvsignore: Add getopt.h.
61117
61118 2004-10-04  Bruno Haible  <bruno@clisp.org>
61119
61120         * modules/README: New file.
61121         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61122         not a module.
61123
61124 2004-10-02  Jim Meyering  <jim@meyering.net>
61125
61126         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61127
61128 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61129
61130         * modules/strsep: New file.
61131
61132 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61133
61134         * m4/strsep.m4: New file.
61135
61136 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61137
61138         * lib/strsep.h: New file.
61139         * lib/strsep.c: New file.
61140
61141 2004-10-01  Simon Josefsson  <jas@extundo.com>
61142
61143         * lib/snprintf.c (snprintf): Handle size==0.
61144
61145 2004-10-01  Simon Josefsson  <jas@extundo.com>
61146             Bruno Haible  <bruno@clisp.org>
61147
61148         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61149         (snprintf): Declare 'args'.
61150
61151 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         * lib/snprintf.c: Remove comments as to why each header is needed.
61154
61155 2004-10-01  Bruno Haible  <bruno@clisp.org>
61156
61157         * MODULES.html.sh: Add strsep.
61158
61159 2004-09-30  Simon Josefsson  <jas@extundo.com>
61160
61161         * modules/snprintf: New file.
61162
61163 2004-09-30  Simon Josefsson  <jas@extundo.com>
61164
61165         * m4/snprintf.m4: New file.
61166
61167 2004-09-30  Simon Josefsson  <jas@extundo.com>
61168
61169         * lib/snprintf.h, lib/snprintf.c: New files.
61170
61171 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61172
61173         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61174         (hol_entry_help): Never translate an empty string.
61175         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61176         * lib/argp.h (OPTION_NO_TRANS): New option.
61177
61178 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * modules/argp (Maintainer): Replace Simon Josefsson
61181         by Sergey Poznyakoff.
61182
61183 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61186         changes merged back into glibc.
61187
61188 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61191
61192 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61193
61194         * lib/xvasprintf.c: Include xalloc.h.
61195         (xvasprintf): Use xalloc_die, not xmalloc_die.
61196
61197 2004-09-29  Bruno Haible  <bruno@clisp.org>
61198
61199         * modules/alloca-opt: New file, derived from modules/alloca.
61200         * modules/allocsa: Depend on alloca-opt instead of alloca.
61201         * modules/setenv: Likewise.
61202         * modules/vasnprintf: Likewise.
61203         * MODULES.html.sh: Add alloca-opt.
61204
61205 2004-09-28  Simon Josefsson  <jas@extundo.com>
61206
61207         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61208         LGPL, and to replace license template from GPL to LGPL.
61209
61210 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61211
61212         * modules/dummy: Change license to LGPL.
61213
61214 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61215
61216         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61217
61218 2004-09-24  Simon Josefsson  <jas@extundo.com>
61219
61220         * modules/minmax (License): Change from GPL to LGPL.
61221
61222 2004-09-23  Simon Josefsson  <jas@extundo.com>
61223
61224         * gnulib-tool (--import): Typo.
61225
61226 2004-09-23  Simon Josefsson  <jas@extundo.com>
61227
61228         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61229
61230 2004-09-22  Bruno Haible  <bruno@clisp.org>
61231
61232         * modules/*: Add 'License' field.
61233         * gnulib-tool: Accept --extract-license option.
61234         (func_get_license): New function.
61235
61236 2004-09-21  Bruno Haible  <bruno@clisp.org>
61237
61238         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61239         Reported by Simon Josefsson.
61240
61241 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61242
61243         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61244         gl_AC_TYPE_LONG_LONG.
61245
61246 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61249
61250 2004-09-18  Simon Josefsson  <jas@extundo.com>
61251         and  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61254         calls with autoreconf.  Define GL_LIB.
61255
61256 2004-09-14  Karl Berry  <karl@gnu.org>
61257
61258         * config/srclist.txt: unsync setenv.c, sigh.
61259
61260 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61263         Problem reported by Bruno Haible in:
61264         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61265
61266 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * config/srclist.txt: Comment out argp-pvh.c.
61269
61270 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61273         in case some system header has #define'd it.  Problem reported by
61274         Soeren D. Schulze in
61275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61276
61277 2004-09-09  Karl Berry  <karl@gnu.org>
61278
61279         * regex.[ch]: delete from the root.  These were supposed to be
61280                 synced with emacs cvs, but this has not happened for about
61281                 a year, and anyway nothing else uses emacs regex.[ch].
61282                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61283                 lib/regex[.ch] is untouched.
61284
61285 2004-09-09  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61288
61289 2004-09-09  Bruno Haible  <bruno@clisp.org>
61290
61291         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61292         modifications.
61293         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61294
61295 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61296
61297         * modules/xvasprintf: New file.
61298         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61299
61300 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61301
61302         * lib/xvasprintf.h: New file.
61303         * lib/xvasprintf.c: New file.
61304         * lib/xasprintf.c: New file.
61305
61306 2004-09-08  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61309
61310 2004-09-08  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61313         length is > INT_MAX.
61314         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61315         more.
61316
61317 2004-09-08  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/stdint_.h: New file, taken from GNU clisp.
61320
61321 2004-09-08  Bruno Haible  <bruno@clisp.org>
61322             Oskar Liljeblad  <oskar@osk.mine.nu>
61323
61324         * modules/stdint: New file.
61325         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61326
61327 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         Import from coreutils.
61330         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61331         strings on unbounded length.  alloca's performance benefits aren't
61332         that important here.
61333         (V_STRDUP): Remove.
61334         (parse_with_separator): New function, with most of the internals
61335         of the old parse_user_spec.  Allow user to omit both user and group,
61336         for compatibility with FreeBSD.
61337         Clone only the user name, not the entire spec.
61338         Do not set *uid, *gid unless entirely successful.
61339         Avoid memory leak in some failing cases.
61340         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61341         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61342         (parse_user_spec): Rewrite to use parse_with_separator.
61343
61344 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * modules/userspec: Don't depend on alloca.
61347
61348 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61349
61350         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61351
61352 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61353
61354         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61355         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61356         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61357
61358 2004-08-16  Simon Josefsson  <jas@extundo.com>
61359
61360         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61361         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61362         Add --dry-run for --import.
61363         Let user provided command line parameters override configure.ac
61364         settings.
61365
61366 2004-08-12  Simon Josefsson  <jas@extundo.com>
61367
61368         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61369         as discussed with Paul Eggert in threads rooted at
61370         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61371         and
61372         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61373         Before, the test was empty, and relied on ELIDE_CODE in source
61374         code.)
61375         (gl_PREREQ_GETOPT): New macro.
61376         (gl_GETOPT): Use them.
61377
61378 2004-08-12  Simon Josefsson  <jas@extundo.com>
61379
61380         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61381         * lib/getopt_.h: Renamed from getopt.h.
61382
61383 2004-08-12  Simon Josefsson  <jas@extundo.com>
61384
61385         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61386         Change default library name from libfoo to libgnu.
61387         Now, if you have a configure.ac that says:
61388                 gl_SOURCE_BASE(gl)
61389                 gl_M4_BASE(gl/m4)
61390                 gl_MODULES(error getopt etcetera)
61391                 gl_INIT
61392         you can import all you need by running:
61393                 ../gnulib/gnulib-tool --import
61394
61395         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61396         (Makefile.am): Rewrite, use logic from argz.
61397         (Include): Use <getopt.h> instead of "getopt.h".
61398
61399 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * modules/argp (Files): Add m4/unlocked-io.m4.
61402         (Depends-on): Add extensions.
61403
61404 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61407         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61408         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61409         Check for program_invocation_name, program_invocation_short_name,
61410         flockfile, funlockfile, features.h, _getopt_long_only_r.
61411
61412 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61415         its complicated substitute.
61416         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61417         and program_invocation_name.
61418         (__argp_basename) [!_LIBC]: Remove; the only use was
61419         replaced by its body.
61420         (__argp_short_program_name): Change condition from
61421         !defined __argp_short_program_name to
61422         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61423         to match argp-namefrob.h.
61424         (__argp_failure): Don't assume strerror_r returns char *.
61425         * lib/argp-parse.c (N_): Define unconditionally.
61426         (argp_default_options): Fill out initializers with 0 to avoid
61427         gcc warnings.
61428
61429 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61432         getopt1.c.
61433
61434 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61435
61436         Merge from coreutils.
61437
61438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61439
61440         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61441         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61442
61443 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         Merge from coreutils.
61446
61447         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61448         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61449         for Reliant Unix 5.43.
61450
61451         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61452         (union fooround): Use uintmax_t, not long int.
61453         The rest is a merge from libc:
61454         [defined _LIBC]: Include <shlib-compat.h>.
61455         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61456
61457         * lib/settime.c (settime): Recode to avoid warning with
61458         Sun Forte C 6U2.
61459
61460         * lib/strverscmp.c: Convert to UTF-8.
61461
61462 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61465         m4/uintmax_t.m4.
61466
61467 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * modules/xalloc-die: New file.
61470         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61471
61472         * modules/md5 (Files): Add m4/uint32_t.m4.
61473         * modules/sha1: Renamed from modules/sha.
61474         (Files):
61475         Rename lib/sha.h to lib/sha1.h.
61476         Rename lib/sha.c to lib/sha1.c.
61477         Rename m4/sha.m4 to m4/sha1.m4.
61478         (lib_SOURCES): Likewise.
61479         (configure.ac): Rename gl_SHA to gl_SHA1.
61480         (Include): sha.h -> sha1.h.
61481
61482 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61483
61484         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61485         * m4/sha1.m4: Renamed from sha.m4.
61486         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61487
61488 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * lib/obstack.h (obstack_empty_p):
61491         Don't assume that chunk->contents is suitably aligned.
61492         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61493         Likewise. Problem reported by Benno in
61494         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61495
61496         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61497         readable.  This could be improved further but it'd take some work.
61498
61499 2004-08-08  Simon Josefsson  <jas@extundo.com>
61500
61501         * modules/xgethostname (Depends-on): Remove exit and error (not
61502         used).
61503
61504         * modules/getpass-gnu: Add getpass.h.
61505         (Depends-on): Add stdbool.
61506         * modules/getpass: Add getpass.h.
61507
61508 2004-08-08  Simon Josefsson  <jas@extundo.com>
61509
61510         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61511         Check getpass declaration.
61512
61513 2004-08-08  Simon Josefsson  <jas@extundo.com>
61514
61515         * lib/xgethostname.c: Don't include error.h (not used).
61516
61517         * lib/getpass.h: Add.
61518         * lib/getpass.c: Include getpass.h first.
61519
61520 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * lib/xalloc-die.c: New file.
61523         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61524         All uses removed.
61525         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61526         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61527         xalloc-die.c.
61528         (_, N_, xalloc_die): Move to xalloc-die.c.
61529         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61530         so that we needn't mess with xalloc_msg_memory_exhausted.
61531
61532         * lib/sha1.h: Renamed from sha.h.
61533         (SHA1_H): Renamed from _SHA_H.
61534         (sha1_ctx): Renamed from sha_ctx.
61535         (sha1_init_ctx): Renamed from sha_init_ctx.
61536         (sha1_process_block): Renamed from sha_process_block.
61537         (sha1_process_bytes): Renamed from sha_process_bytes.
61538         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61539         (sha1_read_ctx): Renamed from sha_read_ctx.
61540         (sha1_stream): Renamed from sha_stream.
61541         (sha1_buffer): Renamed from sha_buffer.
61542         * lib/sha1.c: Likewise; renamed from sha.c.
61543         Do not include <sys/types.h>.
61544         Include <stddef.h> rather than <stdlib.h>.
61545
61546 2004-08-08  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61549         FILESYSTEM_PREFIX_LEN.
61550         * lib/progreloc.c: Likewise.
61551         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61552
61553 2004-08-06  Simon Josefsson  <jas@extundo.com>
61554
61555         * modules/progname (Depends-on): Don't depend on stdbool.
61556
61557 2004-08-06  Simon Josefsson  <jas@extundo.com>
61558
61559         * modules/getsubopt: New file.
61560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61561         getsubopt.
61562
61563 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         More merge from coreutils.
61566
61567         * m4/utimens.m4, m4/utimecmp.m4: New files.
61568         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61569         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61570         prereq.m4, sha.m4: Import changes from coreutils.
61571
61572 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         More merge from coreutils.
61575         * modules/raise, modules/readtokens0, modules/utimens:
61576         * modules/utimecmp, module/xnanosleep: New files.
61577         * modules/strftime: Add lib/strftime.h.
61578         Change include from <time.h> to "strftime.h".
61579         * modules/yesno: Add lib/yesno.h.
61580         * modules/backupfile: Remove lib/addext.c.
61581         * modules/euidaccess: Add stat-macros.h.
61582         * modules/canonicalize, modules/euidaccess,
61583         modules/filemode, modules/lchown, modules/makepath,
61584         modules/rmdir, modules/stat: Likewise.
61585
61586 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         Merge from tar.
61589         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61590         SIZE_MAX is a valid preprocessor constant.
61591         (__argp_basename): Change from "#ifndef _LIBC"
61592         to "#ifndef __argp_short_program_name", so that
61593         we don't compile these functions for tar.
61594
61595         More merges from coreutils.
61596         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61597         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61598         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61599         * lib/addext.c: Remove; no longer needed.
61600         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61601         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61602         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61603         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61604         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61605         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61606         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61607         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61608         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61609         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61610         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61611         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61612         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61613         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61614         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61615         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61616         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61617         Import changes from coreutils.
61618
61619 2004-08-05  Simon Josefsson  <jas@extundo.com>
61620
61621         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61622
61623 2004-08-05  Simon Josefsson  <jas@extundo.com>
61624
61625         * m4/getsubopt.m4: New file.
61626
61627 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         Merge from coreutils.
61630
61631         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61632         * m4/getcwd-path-max.m4: New files.
61633
61634         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61635         FILESYSTEM_PREFIX_LEN ->
61636         FILE_SYSTEM_PREFIX_LEN.
61637         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61638         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61639         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61640         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61641
61642         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61643         prerequisite modules now handle the DOS stuff.
61644         Don't check for unistd.h.
61645
61646 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         Merge from coreutils.
61649
61650         * lib/.gdb-history: Remove; this doesn't belong here.
61651
61652         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61653         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61654         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61655         * lib/getcwd.c: New files.
61656
61657         * lib/dirname.h: Include <stdbool.h>.
61658         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61659         for consistency with POSIX terminology.  All uses changed.
61660         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61661         (strip_trailing_slashes): Use bool for booleans.
61662         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61663
61664         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61665         sometimes returns a positive errno value even when it succeeds.
61666         (print_errno_message) [!LIBC]: Fall back on strerror if
61667         __strerror_r fails.
61668
61669         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61670         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61671         (longest_relative_suffix): New function.
61672         (path_concat): Use it.  Assume first argument is not NULL.
61673         Port to DOS.  Omit redundant separators.
61674         Report an error instead of returning NULL.
61675         Use mempcpy instead of memcpy.
61676         (xpath_concat): Remove: not declared or used.
61677
61678         * lib/same.h: Include <stdbool.h>
61679         (same_name): Return bool, not int.
61680         * lib/same.c (same_name): Likewise.
61681         (errno): Don't declare; we assume C89 or better now.
61682
61683         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61684         if not already defined.
61685
61686         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61687         * lib/dup-safer.c (errno): Likewise.
61688
61689 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61690
61691         Merge from coreutils.
61692         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61693         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61694         * modules/path-concat: Don't depend on strdup.
61695
61696 2004-08-03  Simon Josefsson  <jas@extundo.com>
61697
61698         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61699         * lib/progname.h: Don't include stdbool.h.
61700
61701 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61704         * MODULES.html.sh (func_all_modules): Remove fatal.
61705
61706 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61709
61710 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61711
61712         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61713         working.
61714
61715 2004-08-02  Simon Josefsson  <jas@extundo.com>
61716
61717         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61718         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61719         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61720
61721 2004-08-01  Simon Josefsson  <jas@extundo.com>
61722
61723         * lib/xgetdomainname.c: Include stdlib.h, for free().
61724
61725 2004-07-19  Bruno Haible  <bruno@clisp.org>
61726
61727         * MODULES.html.sh (func_all_modules): Add dummy.
61728
61729 2004-07-16  Simon Josefsson  <jas@extundo.com>
61730
61731         * modules/dummy: New file.
61732
61733 2004-07-16  Simon Josefsson  <jas@extundo.com>
61734
61735         * lib/dummy.c: New file.
61736
61737 2004-07-16  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/backupfile.h: Add extern "C" for C++.
61740         * lib/closeout.h: Likewise.
61741         * lib/copy-file.h: Likewise.
61742         * lib/findprog.h: Likewise.
61743         * lib/full-write.h: Likewise.
61744         * lib/pathname.h: Likewise.
61745         * lib/progname.h: Likewise.
61746         * lib/stpcpy.h: Likewise.
61747         * lib/stpncpy.h: Likewise.
61748         * lib/strcase.h: Likewise.
61749         * lib/strstr.h: Likewise.
61750         * lib/xalloc.h: Likewise.
61751
61752         * lib/mbswidth.h: Add extern "C" for C++.
61753         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61754
61755 2004-07-13  Robert Millan  <robertmh@gnu.org>
61756
61757         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61758
61759 2004-07-09  Simon Josefsson  <jas@extundo.com>
61760
61761         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61762         failed without this.)
61763
61764 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61765
61766         * modules/chown (Files): Add lib/fchown-stub.c, since
61767         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61768
61769 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * lib/fchown-stub.c: New file.
61772
61773 2004-06-24  Jim Meyering  <jim@meyering.net>
61774
61775         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61776
61777 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61778
61779         * modules/argz: Omit "#include".
61780
61781         * MODULES.html.sh (func_all_modules): Add calloc, to match
61782         2004-06-01 addition of calloc module.
61783
61784 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * m4/argz.m4: New file, which is autoupdated from libtool.
61787
61788 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61791         libtool.
61792
61793 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         * config/srclist-update: Don't insist on "USA." before the
61796         close-comment, as libtool omits the period and puts the */ on a
61797         separate line.
61798         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61799         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61800
61801 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61802
61803         * modules/argz: New file.
61804         * MODULES.html.sh (func_all_modules): Add argz.
61805
61806 2004-06-12  Jim Meyering  <jim@meyering.net>
61807         and  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/hash (Files): Add lib/xalloc.h.
61810         * modules/pipe (Depends-on): Add wait-process.
61811         * modules/stat (Depends-on): Add xalloc.
61812         * modules/userspec (Files): Add lib/userspec.h.
61813         * modules/xstrto
61814
61815         Upgrade from gettext-0.13.
61816         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61817         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61818         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61819
61820 2004-06-10  Jim Meyering  <jim@meyering.net>
61821
61822         * lib/calloc.c: New file.
61823
61824 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         * lib/getdate.y (yylex): Allow space between sign and number.
61827         Problem reported by Dan Jacobson.
61828
61829 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         Merge from coreutils CVS.
61832
61833         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61834         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61835         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61836         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61837         xstrtol.m4: Fix copyright date and/or serial number.
61838
61839         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61840         See if we need an fchown replacement.
61841         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61842         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61843         and use the replacement function if we detect either defect.
61844
61845         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61846         gl_UTIMECMP.
61847
61848 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61849         and  Jim Meyering  <jim@meyering.net>
61850
61851         Merge from coreutils CVS.
61852
61853         * lib/stat-macros.h: New file, with contents from file-type.h
61854         and coreutils' system.h.
61855         * lib/file-type.c: Include "stat-macros.h".
61856         * lib/file-type.h (file_type): Move all macro definitions to new file,
61857         stat-macros.h.
61858
61859         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61860         Wrap old code with this conditional.
61861         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61862         function that does not dereference symlinks.
61863         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61864
61865         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61866         dependency problems.
61867         (xreadlink): Accept new arg SIZE, for efficiency.
61868         All decls and uses changed.
61869         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61870
61871         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61872         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61873
61874         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61875         sysexits.h.
61876
61877 2004-06-01  Jim Meyering  <jim@meyering.net>
61878
61879         * m4/calloc.m4: New file.
61880
61881 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61882
61883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61884         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61885         Also, fix a typo in a diagnostic.
61886
61887 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61890         or AC_FUNC_REALLOC.
61891
61892 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61895         macros to be defined.
61896         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61897         the allocator returns NULL because the requested size is zero.
61898
61899 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61902         var.  Add comment explaining why libc still defines it.  This
61903         merges the following patch from glibc:
61904         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61905
61906 2004-05-20  Andreas Schwab  <schwab@suse.de>
61907
61908         * m4/free.m4: Replace free if it not known to work, not the other
61909         way round.
61910
61911 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61914         present in glibc since revision 1.1 of this file.
61915         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61916         obstack_alignment_mask, obstack_alloc, obstack_base,
61917         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61918         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61919         obstack_grow0, obstack_init, obstack_int_grow,
61920         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61921         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61922         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61923         nonexistent functions.
61924
61925 2004-05-18  Karl Berry  <karl@gnu.org>
61926
61927         * config/srclist.txt: break link for vasnprintf.c.
61928
61929 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         Port obstack to the AS/400, where pointers are 16 bytes wide and
61932         you cannot cast an integer to a valid pointer.  This patch is
61933         currently waiting to be integrated into glibc; see
61934         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61935
61936         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61937         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61938         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61939         (struct obstack): temp member is now a union of a pointer and
61940         an integer, instead of an integer.  All integer uses changed.
61941         This does not affect the physical layout of struct obstack,
61942         except on hosts (like the AS/400) where the size or alignment of
61943         void * is greater than that of ptrdiff_t.
61944         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61945         __STDC__)]: Store temporary in pointer member of union, not
61946         integer member.
61947         * lib/obstack.c: Include <stddef.h>, for offsetof.
61948         (struct fooalign): Remove; it doesn't need a name.
61949         (union fooround): Change double to long double, and add void *.
61950         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61951         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61952         not a macro.  Hence the values are always int; so remove all
61953         casts-to-int in uses.
61954
61955 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61958         we can get this patch merged into glibc.
61959
61960 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61961             Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * m4/argp: Depend on alloca.
61964
61965 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61966             Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61969         freecoding.
61970
61971 2004-05-17  Bruno Haible  <bruno@clisp.org>
61972
61973         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61974         precision that consists of a '.' followed by an empty digit string.
61975         Patch by Tor Lillqvist <tml@iki.fi>.
61976
61977 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61980         for backward compatibility with older code.  We need our own
61981         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61982         it under some other name, and our alloca.h will define it.
61983
61984 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61985             Derek Price  <derek@ximbiot.com>
61986
61987         * lib/alloca.c: Include <alloca.h>, to get our interface.
61988         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61989         include <alloca.h> first.  Use C89 prototype for alloca; this
61990         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61991         Use #elif for simplicity, since we can assume C89 now.
61992         Don't try to source the system alloca.h since it will not be found
61993         and to prevent recursively including its replacement.
61994         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61995         * lib/regex.c: Likewise.
61996
61997 2004-05-16  Derek Price  <derek@ximbiot.com>
61998             Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         getline cleanup.  This changes the getndelim2 API: both order of
62001         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62002         no delimiter).
62003
62004         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62005         interface does that.
62006         (getline): Always use getdelim, so that we don't have two
62007         copies of this code.
62008         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62009         if available.
62010         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62011         (GETNDELIM2_MAXIMUM): New macro.
62012         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62013         instead of the old practice of delim2==0.  All callers changed.
62014         Return -1 on overflow, instead of returning junk.
62015         Do not set *linesize unless allocation succeeds.
62016         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62017         that we include sys/types.h.
62018         * lib/getnline.h: Likewise.
62019         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62020         (getndelim2): Reorder arguments.
62021         * lib/getnline.c (getnline, getndelim):
62022         Don't discard the NMAX argument.
62023         (getnline): Invoke getndelim, to avoid code duplication.
62024         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62025         of (size_t) -1 by callers of the getnline family.
62026
62027 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62030         Check for gettimeofday.
62031         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62032         Check for settimeofday, stime.
62033
62034 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         * lib/nanosleep.c (suspended): Change its type from int to
62037         sig_atomic_t volatile.
62038         (first_call): Make it private to rpl_nanosleep, and have it
62039         be zero initially as that's a bit faster.
62040         (my_usleep): Round up fractional times instead of truncating them,
62041         as this is the usual meaning for 'sleep'.
62042
62043         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62044         doesn't work.
62045         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62046         (ENOSYS): Define if not defined.
62047         (settime): Fall back on stime if it exists and settimeofday fails.
62048         But don't bother with fallbacks if a method fails with errno == EPERM.
62049
62050 2004-05-11  Jim Meyering  <jim@meyering.net>
62051
62052         Prior to this change, the save_cwd caller required read access to the
62053         current directory on most systems (ones with the fchdir function).
62054
62055         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62056         fails, try write-only, and finally, resort to using xgetcwd.
62057
62058 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * lib/obstack.c, obstack.h: Import changes from libc.
62061
62062 2004-04-28  Bruno Haible  <bruno@clisp.org>
62063
62064         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62065         also implicitly appends .exe to executables.
62066         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62067         accepts Windows pathnames.
62068         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62069         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62070         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62071         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62072         Reported by Derek Robert Price <derek@ximbiot.com>.
62073
62074 2004-04-21  Karl Berry  <karl@gnu.org>
62075
62076         * config/srclist.txt (localcharset.c): break sync.
62077
62078 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62079
62080         * m4/host-os.m4: Add a copyright notice.
62081
62082 2004-04-20  Jim Meyering  <jim@meyering.net>
62083
62084         Change UTILS_ to gl_ in AC_DEFINE'd names.
62085         Change utils_- and jm_-prefixed variables, too.
62086         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62087         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62089
62090         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62091         Don't emit trailing blanks.
62092         Also rename jm_-prefixed variables to have gl_ prefix.
62093
62094         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62095         Also rename jm_-prefixed variables to have gl_ prefix.
62096
62097         * m4/jm-macros.m4: Reflect the renamings.
62098         * m4/prereq.m4: Likewise.
62099
62100 2004-04-20  Jim Meyering  <jim@meyering.net>
62101
62102         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62103         memory.
62104
62105 2004-04-20  Jim Meyering  <jim@meyering.net>
62106             Bruno Haible  <bruno@clisp.org>
62107
62108         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62109         memory when realloc fails.
62110
62111 2004-04-19  Jim Meyering  <jim@meyering.net>
62112
62113         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62114         now that readutmp.c may call `free (0)'.
62115
62116 2004-04-19  Bruno Haible  <bruno@clisp.org>
62117
62118         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62119         * m4/inttypes_h.m4: Likewise.
62120         * m4/stdint_h.m4: Likewise.
62121         * m4/intmax_t.m4: Likewise.
62122         * m4/uintmax_t.m4: Likewise.
62123
62124 2004-04-18  Jim Meyering  <jim@meyering.net>
62125
62126         * m4/prereq.m4: Don't forbid jm_ prefix.
62127
62128         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62129         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62130         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62131         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62132         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62133         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62134         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62135         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62136         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62137         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62138         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62139         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62140         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62141         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62142         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62143         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62144         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62145         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62146         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62147
62148 2004-04-18  Jim Meyering  <jim@meyering.net>
62149
62150         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62151         failure, don't leak memory and do call END_UTMP_ENT.
62152
62153 2004-04-16  Jim Meyering  <jim@meyering.net>
62154
62155         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62156         coreutils' stat program.
62157         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62158
62159 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62160
62161         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62162         C89.
62163         (CHAR_BIT): Remove, since we assume C89.
62164         Include <stdint.h> if available, as per current Autoconf CVS advice.
62165
62166 2004-03-31  Jim Meyering  <jim@meyering.net>
62167
62168         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62169         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62170         * m4/xalloc.m4: Likewise.
62171
62172 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62173
62174         Merge from coreutils.
62175
62176         * m4/inttostr.m4: New file.
62177         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62178         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62179         Require gl_CLOCK_TIME.
62180         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62181
62182 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62183
62184         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62185         not bool, to be more consistent with Unix conventions.
62186         Suggested by Bruno Haible.
62187
62188         Merge from coreutils.
62189
62190         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62191         * lib/umaxtostr.c: New files.
62192
62193         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62194         the usual <time.h> dance.
62195         (get_date): Change signature to support fractional time stamps.
62196         All callers changed.
62197         * lib/getdate.y: Include "getdate.h" first, as we can now
62198         assume C89 and don't need to worry about 'const'.
62199         Similarly, include "unlocked-io.h" near start, not in middle.
62200         Include <limits.h>.
62201         (textint.value): Use long int rather than int.
62202         (textint.digits): Use size_t rather than int.
62203         (BILLION, LOG10_BILLION): New constants.
62204         (parser_control): New member rel_ns.  Members day_ordinal,
62205         time_zone, month, day, hour, minutes, rel_year, rel_month,
62206         rel_day, rel_hour, rel_minutes, rel_seconds
62207         are now long int, not int.  Member seconds is now struct timespec,
62208         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62209         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62210         not int.
62211         (%union.intval): Now long int, not int.
62212         New member timespec.
62213         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62214         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62215         (spec): Now is a timespec or an item list.
62216         (timespec, items): New nonterminals.
62217         (time, rel, relunit, number, get_date):
62218         Add support for fractional seconds.
62219         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62220         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62221         (to_hour): First arg is now long int, not int.
62222         (to_year): Returns long int, not int.
62223         Don't treat year -70 like 70.
62224         (tm_diff): Returns long int, not int.
62225         (lookup_word): Use bool instead of int when appropriate.
62226         (yylex): Use size_t for count, not int.
62227         Detect overflow when parsing large integer constants.
62228         Add support for fractions.
62229         (get_date): Make pointers 'const' if possible.
62230         Use more-portable code to detect integer overflow.
62231         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62232         Don't use ctime; it's not reliable if the year has >4 digits.
62233
62234         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62235         This is for compatibility with BSD.
62236
62237         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62238         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62239         From coreutils' system.h.
62240
62241         * lib/userspec.c: Don't include "posixver.h".
62242         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62243         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62244         compatible extension.  Simplify code by removing a boolean int
62245         that was always nonzero if a string was nonnull.
62246
62247 2004-03-30  Jim Meyering  <jim@meyering.net>
62248
62249         Merge from coreutils.
62250
62251         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62252         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62253         on some systems one must include <grp.h> before it.
62254         Reported by Christian Krackowizer.
62255
62256 2004-03-30  Jim Meyering  <jim@meyering.net>
62257
62258         Merge from coreutils.
62259
62260         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62261
62262         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62263         an empty input stream.
62264
62265         * lib/readtokens.c: Include <stdbool.h>.
62266         (readtoken): Use `size_t' rather than int/long.
62267         All callers adjusted.
62268         Use `bool' rather than `int' where appropriate.
62269         Use memset rather than an explicit loop.
62270         Use x2nrealloc rather than xrealloc.
62271         Allow the use of `\0' as a delimiter.
62272         (readtokens): Likewise.
62273         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62274
62275 2004-03-30  Jim Meyering  <jim@meyering.net>
62276
62277         * m4/realloc.m4: Remove file, since now it does no more than
62278         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62279         the `configure.ac' section of module/realloc.
62280         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62281
62282 2004-03-30  Bruno Haible  <bruno@clisp.org>
62283
62284         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62285         nonnull.
62286
62287 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62288
62289         Merge changes to getloadavg.c from coreutils and Emacs.
62290
62291         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62292         Define to an expression, not to the empty string.
62293         Include cloexec.h and xalloc.h.
62294         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62295         Use set_cloexec_flag rather than rolling our own.
62296         * lib/cloexec.c, lib/cloexec.h: New files.
62297
62298 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62299
62300         * m4/cloexec.m4: New file.
62301
62302 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62303
62304         * lib/getopt.h: Sync with libc CVS.
62305
62306 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62307             Bruno Haible  <bruno@clisp.org>
62308
62309         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62310         mbswidth.
62311
62312 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62313             Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/mbswidth.h: Include <wchar.h> only if
62316         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62317         <wchar.h>.
62318         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62319
62320 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62321
62322         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62323         Sync with libc CVS.
62324         * lib/getopt_int.h: New file, also synced from libc.
62325
62326 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62327
62328         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62329         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62330         Bring back getopt.c, getopt.h, getopt1.c.
62331
62332 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62333
62334         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62335         All uses changed.  Check for sa_sigaction member; this fixes
62336         a bug first reported by Jason Andrade in
62337         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62338
62339 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62340
62341         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62342         '#if' expressions.  Unlike the code it replaces, it does not
62343         depend on (defined _SC_PAGESIZE).  However, it does depend on
62344         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62345         first reported by Jason Andrade in
62346         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62347
62348 2004-02-25  Simon Josefsson  <jas@extundo.com>
62349
62350         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62351
62352 2004-02-25  Simon Josefsson  <jas@extundo.com>
62353
62354         * lib/strdup.h: New file.
62355         * lib/strdup.c: Include it.
62356         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62357         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62358
62359 2004-02-23  Karl Berry  <karl@gnu.org>
62360
62361         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62362         (from fencepost.gnu.org:/gd/gnuorg).
62363
62364 2004-02-23  Karl Berry  <karl@gnu.org>
62365
62366         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62367         * config/srclist.txt: add maintain/standards documents.
62368
62369 2004-02-18  Bruno Haible  <bruno@clisp.org>
62370
62371         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62372         Reported by Derek Robert Price <derek@ximbiot.com>.
62373
62374 2004-02-16  Karl Berry  <karl@gnu.org>
62375
62376         * config/mkinstalldirs, install-sh: update from automake.
62377
62378 2004-02-06  Karl Berry  <karl@gnu.org>
62379
62380         * m4/po.m4: update from gettext 0.14.1.
62381
62382 2004-02-06  Karl Berry  <karl@gnu.org>
62383
62384         * lib/config.charset: update from gettext 0.14.1.
62385
62386 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62387
62388         Add comments and code, prompted by suggestions from Bruno Haible
62389         for sh-quote.
62390         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62391         describing the enum quoting_style values.
62392         * lib/quotearg.c (quotearg_alloc): New function.
62393         (quotearg_buffer_restyled): Treat lone { and } as special.
62394         Treat = as special.  Work around bug with older shells
62395         that "see" a '\' that is really the 2nd byte of a multibyte char.
62396         Quote empty string with shell_quoting_style.
62397
62398 2004-02-03  Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/pipe.m4: New file, from GNU gettext.
62401
62402 2004-02-03  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/pipe.h: New file, from GNU gettext.
62405         * lib/pipe.c: New file, from GNU gettext.
62406
62407 2004-01-27  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/execute.m4: New file, from GNU gettext.
62410
62411 2004-01-27  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/execute.h: New file, from GNU gettext.
62414         * lib/execute.c: New file, from GNU gettext.
62415         * lib/w32spawn.h: New file, from GNU gettext.
62416
62417 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62418
62419         Merge from diffutils.
62420
62421         * lib/file-type.c (file_type): Add typed memory objects.
62422         * lib/file-type.h (S_TYPEISTMO): New macro.
62423
62424         * lib/c-stack.h (c_stack_action): Remove argv argument.
62425         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62426         (die): Don't calculate message unless segv_action returns.
62427         (get_stack_location, min_address_from_argv, max_address_from_argv,
62428         volatile stack_base, volatile_stack_size): Remove.
62429         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62430         that every segmentation violation is a stack overflow.  (Ouch!)
62431         See Debian bug 136249 (still outstanding) for more info about why
62432         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62433
62434 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62435
62436         Exit-status fix from coreutils.
62437
62438         Use exit_failure consistently in place of EXIT_FAILURE,
62439         so that program exit statuses are consistent on failure.
62440
62441         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62442         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62443         * lib/argmatch.h: Comment fix to match the above.
62444         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62445         Now a macro referring to exit_failure, instead of a separate
62446         variable.  Include "exitfail.h" to get it.
62447         * lib/xstrtol.h: Include "exitfail.h".
62448         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62449
62450         * lib/long-options.c (parse_long_options): Use prototype
62451         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62452         for clarity.
62453
62454 2004-01-21  Jim Meyering  <jim@meyering.net>
62455
62456         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62457         so as not to conflict with a different-sized __mktime_internal
62458         function in GNU libc.
62459         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62460         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62461
62462 2004-01-20  Karl Berry  <karl@gnu.org>
62463
62464         * config/config.guess: update from config.
62465
62466         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62467
62468 2004-01-20  Bruno Haible  <bruno@clisp.org>
62469
62470         Safer stack allocation.
62471         * lib/setenv.c: Include allocsa.h.
62472         (alloca): Remove fallback definition.
62473         (freea): Remove macro.
62474         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62475         instead of freea.
62476
62477 2004-01-20  Bruno Haible  <bruno@clisp.org>
62478
62479         * m4/eealloc.m4: New file, from GNU gettext.
62480
62481 2004-01-20  Bruno Haible  <bruno@clisp.org>
62482
62483         * m4/allocsa.m4: New file, from GNU gettext.
62484
62485 2004-01-20  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/xallocsa.h: New file, from GNU gettext.
62488         * lib/xallocsa.c: New file, from GNU gettext.
62489
62490 2004-01-20  Bruno Haible  <bruno@clisp.org>
62491
62492         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62493
62494 2004-01-20  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62497         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62498         specially.
62499
62500 2004-01-20  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62503         patch.
62504
62505 2004-01-20  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62508
62509 2004-01-20  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/eealloc.h: New file.
62512
62513 2004-01-20  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/binary-io.h: Avoid warnings on Cygwin.
62516
62517 2004-01-20  Bruno Haible  <bruno@clisp.org>
62518
62519         * lib/allocsa.h: New file, from GNU gettext.
62520         * lib/allocsa.c: New file, from GNU gettext.
62521
62522 2004-01-18  Karl Berry  <karl@gnu.org>
62523
62524         * doc/gpl.texi, doc/lgpl.texi: new files.
62525
62526 2004-01-18  Karl Berry  <karl@gnu.org>
62527
62528         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62529         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62530
62531 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62532
62533         Merge from coreutils.
62534
62535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62536         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62537         (gl_DEFAULT_POSIX2_VERSION): Move
62538         the documentation from 'configure' into 'config.hin',
62539         so that 'configure --help' isn't burdened by it and
62540         we don't have to worry about its formatting there.
62541         Reword the documentation so that it's more succinct
62542         and can be run together into a single paragraph.
62543         * m4/same.m4 (gl_SAME): Check for pathconf.
62544
62545 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62546
62547         Merge from coreutils.
62548
62549         * lib/posixver.c: Include posixver.h.
62550
62551         * lib/same.c: Include <stdbool.h>, <limits.h>.
62552         (_POSIX_NAME_MAX): Define if not defined.
62553         (MIN): New macro.
62554         (same_name): If file names are silently truncated, report
62555         that the file names are the same if they are the same after
62556         the silent truncation.
62557
62558         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62559         conversion function.
62560         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62561         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62562         longer needed.
62563
62564 2004-01-15  Jim Meyering  <jim@meyering.net>
62565
62566         Merge from coreutils.
62567
62568         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62569         if no library is required.
62570         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62571         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62572         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62573         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62574         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62575         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62576         value, $ac_cv_search_crypt, if it's "none required".
62577         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62578         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62579         not gl_FUNC_GETLOADAVG.
62580         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62581         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62582
62583 2004-01-15  Jim Meyering  <jim@meyering.net>
62584
62585         Merge from coreutils.
62586
62587         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62588         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62589         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62590
62591         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62592         optional configure-time default.
62593
62594         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62595
62596         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62597
62598 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62599
62600         Merge from coreutils.
62601
62602         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62603         value, $ac_cv_search_nanosleep, if it's "none required".
62604
62605 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62606
62607         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62608         with like-named macro in fnmatch.c.
62609         (EXT): Use an internal constant instead.
62610
62611         Merge fnmatch patches from glibc.
62612         * lib/fnmatch.c (mbsinit): Remove define.
62613         Add libc_hidden_ver (__fnmatch, fnmatch).
62614         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62615         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62616
62617 2004-01-14  Karl Berry  <karl@gnu.org>
62618
62619         * config/install-sh: update from automake.
62620
62621 2004-01-13  Karl Berry  <karl@gnu.org>
62622
62623         * config/install-sh: update from automake.
62624
62625 2004-01-09  Karl Berry  <karl@gnu.org>
62626
62627         * config/install-sh: update from automake.
62628
62629 2004-01-05  Karl Berry  <karl@gnu.org>
62630
62631         * config/config.{sub,guess}: update from config.
62632
62633 2003-12-31  Karl Berry  <karl@gnu.org>
62634
62635         * config/depcomp: update from automake.
62636
62637 2003-12-14  Karl Berry  <karl@gnu.org>
62638
62639         * lib/config.charset: update from gettext-runtime.
62640
62641 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62642
62643         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62644         Bug reported by Alfred M. Szmidt.
62645
62646 2003-12-03  Bruno Haible  <bruno@clisp.org>
62647
62648         * m4/gettext.m4: Upgrade from gettext-0.13.
62649         * m4/po.m4: Upgrade from gettext-0.13.
62650         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62651         * m4/intmax.m4: New file, from gettext-0.13.
62652         * m4/printf-posix.m4: New file, from gettext-0.13.
62653
62654 2003-11-29  Karl Berry  <karl@gnu.org>
62655
62656         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62657
62658 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62659             Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/printf-parse.h: Don't include sys/types.h.
62662         (ARG_NONE): New macro.
62663         (char_directive): Change type of *arg_index fields to size_t.
62664         * lib/printf-parse.c: Don't include sys/types.h.
62665         (SSIZE_MAX): Remove macro.
62666         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62667         Remove unnecessary overflow check.
62668         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62669         fields.
62670
62671 2003-11-25  Bruno Haible  <bruno@clisp.org>
62672
62673         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62674
62675 2003-11-25  Bruno Haible  <bruno@clisp.org>
62676
62677         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62678         gt_TYPE_SSIZE_T.
62679
62680 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62681
62682         * modules/alloca: Remove dependency on xalloc.
62683
62684 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62685
62686         * lib/alloca.c: Remove dependency on xalloc module.
62687         (xalloc_die): Remove.
62688         (memory_full) [!defined emacs]: New macro.
62689         [!defined emacs]: Don't include xalloc.h.
62690         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62691         address arithmetic overflows.  Change datatypes a bit to avoid
62692         unnecessary casts.
62693
62694 2003-11-22  Jim Meyering  <jim@meyering.net>
62695
62696         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62697         s/size/size_t/.
62698
62699 2003-11-21  Karl Berry  <karl@gnu.org>
62700
62701         * config/config.{sub,guess}: update from config.
62702
62703 2003-11-18  Karl Berry  <karl@gnu.org>
62704
62705         * config/config.{sub,guess}: update from config.
62706
62707         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62708
62709 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62710
62711         * README: Mention that S+T cannot overflow if S is the size of
62712         an existing object and T is sufficiently small.
62713
62714 2003-11-17  Jim Meyering  <jim@meyering.net>
62715
62716         On systems without utime and without a utimes function capable of
62717         dealing with a NULL struct utimbuf* argument, this utime replacement
62718         could -- in unusual circumstances -- leak a file descriptor.
62719         * lib/utime.c: Include <unistd.h> and <errno.h>.
62720         (utime_null): Be sure to close `fd' and to preserve errno.
62721         Reported by Geoff Collyer via Arnold Robbins.
62722
62723 2003-11-17  Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62726         (Depends-on): Add xsize.
62727
62728 2003-11-17  Bruno Haible  <bruno@clisp.org>
62729
62730         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62731
62732 2003-11-17  Bruno Haible  <bruno@clisp.org>
62733
62734         * lib/vasnprintf.c (alloca): Remove fallback definition.
62735         (freea): Remove definition.
62736         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62737         Reported by Paul Eggert.
62738
62739 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62740             Bruno Haible  <bruno@clisp.org>
62741
62742         Protect against address arithmetic overflow.
62743         * lib/printf-args.h: Include stddef.h.
62744         (arguments): Change type of field 'count' to size_t.
62745         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62746         'unsigned int' where appropriate.
62747         * lib/printf-parse.h: Include sys/types.h.
62748         (char_directive): Change type of *arg_index fields to ssize_t.
62749         (char_directives): Change type of fields 'count', max_*_length to
62750         size_t.
62751         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62752         (SSIZE_MAX): Define fallback value.
62753         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62754         instead of 'int' where appropriate. Check a_allocated, d_allocated
62755         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62756         * lib/vasnprintf.c: Include xsize.h.
62757         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62758         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62759         overflow. Avoid wraparound when converting a width or precision from
62760         decimal to binary.
62761
62762 2003-11-16  Bruno Haible  <bruno@clisp.org>
62763
62764         Update from GNU gettext.
62765         * lib/printf-parse.c: Generalize to it can be compiled for wide
62766         strings.
62767         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62768         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62769         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62770         SNPRINTF): New macros.
62771         Don't include <alloca.h> if the file is used inside libintl.
62772         (local_wcslen): New function, for Solaris 2.5.1.
62773         (VASNPRINTF): Use it instead of wcslen.
62774
62775 2003-11-16  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/xsize.h (xmax): New function.
62778         (xsum, xsum3, xsum4): Declare as "pure" functions.
62779
62780 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62781
62782         * modules/xalloc (Files): Undo latest change, since xalloc.h
62783         no longer needs SIZE_MAX or PTRDIFF_MAX.
62784
62785 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62786
62787         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62788         gl_PTRDIFF_MAX.
62789
62790 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62791
62792         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62793         "return", to pacify some unknown compiler.  Problem reported
62794         by Joerg Schilling.
62795
62796 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62797
62798         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62799         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62800         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62801         heuristic is just as accurate as far as we know, and it removes a
62802         dependency on size_max.m4 and ptrdiff_max.m4.
62803
62804 2003-11-11  Bruno Haible  <bruno@clisp.org>
62805
62806         * modules/xsize (Files): Add m4/size_max.m4.
62807         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62808
62809 2003-11-11  Bruno Haible  <bruno@clisp.org>
62810
62811         * m4/size_max.m4: New file.
62812         * m4/ptrdiff_max.m4: New file.
62813         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62814         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62815         (gl_XALLOC): Invoke it.
62816
62817 2003-11-11  Bruno Haible  <bruno@clisp.org>
62818
62819         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62820         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62821         defined.
62822
62823 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62824
62825         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62826         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62827         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62828         From Bruno Haible.
62829         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62830         not (size_t) -1, since it's defined here.
62831
62832 2003-11-09  Karl Berry  <karl@gnu.org>
62833
62834         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62835
62836 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62837
62838         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62839         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62840         Reject sizes of exactly SIZE_MAX bytes.
62841         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62842         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62843
62844 2003-11-05  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62847         SIZE_MAX defined in <limits.h> on Solaris.
62848
62849 2003-11-04  Jim Meyering  <jim@meyering.net>
62850
62851         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62852         variable names, rather than @VAR@.
62853         * modules/poll: Likewise.
62854
62855 2003-11-04  Bruno Haible  <bruno@clisp.org>
62856
62857         * modules/xsize: New file.
62858         * modules/linebreak: Depend on xsize.
62859         * MODULES.html.sh (func_all_modules): Add xsize.
62860
62861 2003-11-04  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/xsize.m4: New file.
62864
62865 2003-11-04  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/xsize.h: New file.
62868         * lib/linebreak.c: Include xsize.h.
62869         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62870         argument for overflow.
62871         Suggested by Paul Eggert.
62872
62873 2003-11-03  Karl Berry  <karl@gnu.org>
62874
62875         * config/config.{guess,sub}: update from config.
62876
62877 2003-11-03  Jim Meyering  <jim@meyering.net>
62878
62879         * modules/userspec (lib_SOURCES): Add userspec.h.
62880         (Include): Add "userspec.h".
62881         Improve description.
62882
62883 2003-11-03  Jim Meyering  <jim@meyering.net>
62884
62885         * lib/userspec.c: Include "userspec.h".
62886         * lib/userspec.h: New file.
62887
62888 2003-11-03  Bruno Haible  <bruno@clisp.org>
62889
62890         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62891
62892 2003-11-03  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62895         available, to avoid (extremely rare) race condition.
62896         Suggested by Paul Eggert.
62897
62898 2003-11-02  Karl Berry  <karl@gnu.org>
62899
62900         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62901
62902 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62903
62904         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62905         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62906         (read_filesystem_list): Set and use me_type_malloced.
62907         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62908         whatever the type happens to be), for brevity and consistency.
62909         Check for size calculation overflow on Alphas running OSF/1.
62910
62911 2003-10-31  Jim Meyering  <jim@meyering.net>
62912
62913         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62914
62915         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62916
62917 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62918             Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62921         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62922
62923 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62926         netbsd*-gnu*.  Suggested by Robert Millan.
62927
62928 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62929
62930         * modules/group-member: Depend on stdbool.
62931
62932 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62933
62934         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62935
62936 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62937
62938         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62939         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62940         after the 'gnu' in these cases.  This fixes some bugs in the
62941         previous change, and is based on suggestions by Robert Millan.
62942
62943 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62944
62945         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62946         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62947         no longer needed.
62948         * lib/quotearg.c (quotearg_n_options): Use it.
62949         * lib/group-member.c: Include <stdbool.h>.
62950         (free_group_info): Arg is now const *; don't free arg.
62951         (get_group_info): Now returns bool and accepts struct group_info *,
62952         rather than returning a malloc'ed struct group_info *.
62953         All uses changed.  Check for overflow in internal size calculation.
62954
62955         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62956         rather than xmalloc/xrealloc.
62957         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62958         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62959         conformance bug: the old code used a pointer after freeing the
62960         storage that it addressed.
62961         * lib/hash.c (hash_initialize): Simplify the code by using
62962         xalloc_oversized rather than doing it by hand.
62963         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62964         the buffer preserved.  Use free and xmalloc instead.
62965         * lib/quotearg.c (quotearg_n_options): Likewise.
62966         Use a simpler test for size overflow.  Don't use xalloc_oversized
62967         because unsigned int might be wider than size_t (!); this suggests
62968         that we should switch from unsigned int to size_t for slot numbers.
62969
62970 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62971
62972         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62973         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62974         NetBSD kernels.  Requested by Richard Stallman.
62975
62976 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62977
62978         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62979         to allocate the returned structure.  Do not allocate a subarray,
62980         as x2nrealloc will do that.
62981         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62982         instead of xnrealloc.
62983         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62984
62985 2003-10-27  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/stdbool_.h: Better support for BeOS.
62988
62989 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62990
62991         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62992         now uses inline.
62993
62994 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62995
62996         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62997         callers that want to do their own size-overflow checking.  Include
62998         <stdbool.h>, since xalloc_oversized returns bool.
62999         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63000         to use xalloc_oversized.
63001
63002         Add two functions x2realloc, x2nrealloc, for programs that grow
63003         arrays dynamically by doubling their sizes.
63004         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63005         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63006         New functions.
63007
63008         Port to C99 semantics for 'inline' of external functions.
63009         Bug reported by Bruno Haible.
63010         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63011         with the old contents of xnmalloc.
63012         (xnmalloc, xmalloc): Use it.
63013         (xnrealloc_inline): New static inline function,
63014         with the old contents of xnrealloc.
63015         (xnrealloc, xrealloc): Use it.
63016
63017         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63018         that.
63019
63020 2003-10-26  Karl Berry  <karl@gnu.org>
63021
63022         * config/srclist.txt (COPYING.DOC): no longer available from
63023         /gd/gnuorg; don't know where the ultimate source is.
63024
63025 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63026
63027         Fix several address-calculation bugs in the hash modules,
63028         plus some minor code cleanup.
63029
63030         * lib/hash.h: Include <stdbool.h>, for bool.
63031         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63032         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63033         hash_get_n_entries, hash_get_max_bucket_length,
63034         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63035         hash_rehash): Use size_t rather than unsigned.
63036         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63037         hash_get_n_buckets_used, hash_get_n_entries,
63038         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63039         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63040         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63041         Likewise.
63042         (SIZE_MAX): Define if not defined.
63043         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63044         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63045         hash_print):
63046         Use const * when possible.
63047         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63048         (check_tuning): Fix bug: if tuning parameters were very close to
63049         0 or 1, rounding errors could have caused subscript violations.
63050         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63051         (hash_initialize): Add 'fail:' label
63052         to free table and return NULL, and use it to simplify code.
63053         Use calloc rather than clearing the storage ourself.
63054         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63055         buffer size calculations.
63056         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63057         Include <stddef.h>, for size_t.
63058         * lib/hash-pjw.c (hash_pjw): Likewise.
63059         Switch to method described by Bruno Haible.
63060         Include <limits.h>, for CHAR_BIT.
63061         (SIZE_BITS): New macro.
63062
63063 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63064
63065         * m4/getline.m4 (AM_FUNC_GETLINE):
63066         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63067         hosts.  Problem reported by Derek Robert Price in
63068         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63069         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63070         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63071
63072 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63073
63074         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63075         ceiling the allocation at NMAX bytes rather than silently
63076         discarding input bytes before NMAX is reached.  This makes
63077         a difference only if NMAX exceeds SIZE_MAX / 2.
63078
63079         * lib/obstack.c: Merge from glibc.
63080         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63081         Add libc_hidden_def (_obstack_newchunk).
63082         (_obstack_free) [! defined _LIBC]: Remove.
63083         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63084         a clone of the function body.
63085         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63086         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63087
63088         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63089         glibc.
63090         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63091         arg to memcpy.
63092
63093         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63094         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63095         Don't use lvalue casts, as GCC plans to remove support for them
63096         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63097         was also present in the non-GCC version, indicating that this
63098         code had always been buggy and had never been widely used.
63099         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63100         Use the fast variant of each macro, rather than copying the
63101         definiens of the fast variant; that way, we'll be more likely to
63102         catch future bugs in the fast variants.
63103
63104 2003-10-20  Bruno Haible  <bruno@clisp.org>
63105
63106         * modules/wait-process: New file.
63107         * MODULES.html.sh (func_all_modules): Add wait-process.
63108
63109 2003-10-20  Bruno Haible  <bruno@clisp.org>
63110
63111         * m4/wait-process.m4: New file.
63112
63113 2003-10-20  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/wait-process.h: New file, from GNU gettext.
63116         * lib/wait-process.c: New file, from GNU gettext.
63117
63118 2003-10-19  Jim Meyering  <jim@meyering.net>
63119
63120         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63121         HPUX 10.20.
63122
63123 2003-10-18  Karl Berry  <karl@gnu.org>
63124
63125         * config/config.guess: update from config.
63126
63127 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63128
63129         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63130         (getgroups): First arg is int, not size_t.
63131         Don't let 'free' mangle errno.
63132
63133 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63134
63135         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63136
63137 2003-10-16  Karl Berry  <karl@gnu.org>
63138
63139         * config/config.{guess,sub}: update from config.
63140
63141 2003-10-16  Jim Meyering  <jim@meyering.net>
63142
63143         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63144         memcpy.
63145
63146 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63147
63148         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63149         (SIZE_MAX): Remove.
63150         (new_exclude, add_exclude_file): Initial size no longer needs to
63151         be a power of 2.
63152         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63153         our own address arithmetic overflow checking.
63154
63155         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63156         (fnmatch): Do not alloca more than 2000 wide characters;
63157         instead, use malloc for large buffers.
63158         Check for address arithmetic overflow, and return -1
63159         with errno set to ENOMEM in that case.
63160         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63161         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63162         instead, return -1.  Check for address arithmetic overflow.
63163
63164 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63165
63166         Handle invalid suffixes and overflow independently, so that
63167         callers can treat them independently as needed.  Fix some bugs in
63168         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63169         suffix for a human-readable blocksize.  The major caller-visible
63170         change is the addition of a new
63171         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63172         that both overflow and suffix chars were found.
63173
63174         * lib/human.c (humblock): Don't check separately for invalid suffix
63175         char; that is xstrtoumax's job (now that its bug is fixed).
63176         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63177         INTMAX_MAX]: New macros.
63178         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63179         TYPE_MAXIMUM): New macros.
63180         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63181         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63182         if overflow occurs, as it's what __strtol does and it's more useful
63183         in practice.
63184         (__xstrtol): If __strtol reports some error other than ERANGE,
63185         reflect it to the caller as LONGINT_INVALID.  If it reports
63186         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63187         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63188         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63189         value.
63190         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63191         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63192         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63193         [defined UINTMAX_MAX]: New macros.
63194
63195 2003-10-14  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63198
63199 2003-10-14  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/sig_atomic_t: New file, from GNU gettext.
63202         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63203
63204 2003-10-14  Bruno Haible  <bruno@clisp.org>
63205
63206         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63207         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63208         Also use volatile where needed.
63209
63210 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63211
63212         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63213         Change maintainer from Bruno Haible to 'all'.
63214
63215 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63216
63217         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63218
63219 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63220
63221         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63222         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63223         and define in terms of the other primitives.
63224         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63225         (SIZE_MAX): Define if not already defined.
63226         (array_size_overflow): New function.
63227         (xalloc_die): Abort instead of exiting if 'error' returns.
63228         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63229         (xmalloc, xrealloc): Use them.
63230         (xcalloc): Check for address arithmetic overflow.
63231         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63232         a bit faster than strcpy.
63233
63234 2003-10-10  Simon Josefsson  <jas@extundo.com>
63235
63236         * modules/argp (Depends-on): Add restrict and strcase.
63237
63238 2003-10-10  Simon Josefsson  <jas@extundo.com>
63239
63240         * m4/argp.m4: Add AC_C_INLINE.
63241
63242 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63243
63244         Merge getpass from libc, plus a few fixes.
63245
63246         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63247         Include <stdbool.h>.
63248         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63249         __fsetlocking to empty.
63250         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63251         do include <bits/libc-lock.h>.
63252         Do not include <fcntl.h>; not needed.
63253         [_LIBC]: Include <wchar.h>.
63254         (NOTCANCEL_MODE): New macro.
63255         (flockfile, funlockfile) [_LIBC]: New macros.
63256         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63257         [!_LIBC]: New macros.
63258         (call_fclose): New function.
63259         (getpass): Use it.  Save tty stream separately; this simplifies the
63260         code and makes it more reliable if stdin happens to equal stdout.
63261         Invoke __fsetlocking on tty.
63262         Handle thread cancellation if needed.
63263         Namespace cleanup (use __tcgetattr, __getline).
63264         Use bool for Booleans.
63265         [USE_IN_LIBIO]: Handle wide streams.
63266         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63267         stream might go where.
63268
63269         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63270         doesn't have to include <stdio.h> before us.
63271         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63272         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63273         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63274         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63275         if not declared, so that we can use getpass.c code from libc without
63276         rewriting it.
63277         (flockfile, ftrylockfile, funlockfile): New macros.
63278
63279 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63280
63281         * modules/getpass: Depend on stdbool.
63282
63283 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63284
63285         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63286
63287 2003-10-07  Karl Berry  <karl@gnu.org>
63288
63289         * config/config.{guess,sub}: update from config.
63290
63291 2003-10-06  Jim Meyering  <jim@meyering.net>
63292             Bruno Haible  <bruno@clisp.org>
63293
63294         This lets translators provide better translations for the
63295         "Written by ..." part of --version output.
63296         * lib/version-etc.h: Include stdarg.h.
63297         (version_etc_copyright): Declare as readonly.
63298         (version_etc): Make this function variadic with a NULL-terminated list
63299         of author name strings.
63300         (version_etc_va): New declaration.
63301         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63302         (version_etc_copyright): Declare as readonly.
63303         (version_etc_va): New function. Provide a different translatable string
63304         for each possible number of authors < 10. Abbreviate when there are 10
63305         authors or more.
63306         (version_etc): Make this function variadic. Call version_etc_va.
63307         Suggestion from Gary V. Vaughan.
63308
63309         * lib/long-options.h (parse_long_options): Change prototype: the
63310         authors string is moved to the end and becomes variadic.
63311         * lib/long-options.c: Include stdarg.h.
63312         (parse_long_options): Make this function variadic, too.
63313         Call version_etc_va, not version_etc.
63314
63315 2003-10-06  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/version-etc-2: Remove file.
63318         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63319
63320 2003-10-06  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/fatal-signal: New file.
63323         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63324
63325 2003-10-06  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/fatal-signal.m4: New file.
63328         * m4/signalblocking.m4: New file, from GNU gettext.
63329
63330 2003-10-06  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/version-etc-2.h: Remove file.
63333         * lib/version-etc-2.c: Remove file.
63334
63335 2003-10-06  Bruno Haible  <bruno@clisp.org>
63336
63337         * lib/fatal-signal.h: New file, from GNU gettext.
63338         * lib/fatal-signal.c: New file, from GNU gettext.
63339
63340 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63341
63342         * README: Rework advice for preventing empty .o files.
63343         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63344         not <sys/types.h>.
63345
63346 2003-10-04  Karl Berry  <karl@gnu.org>
63347
63348         * lib/argp*: update from libc.
63349
63350 2003-10-04  Karl Berry  <karl@gnu.org>
63351
63352         * config/config.{guess,sub}: update from config.
63353
63354 2003-10-02  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/lchown (Include): Add lchown.h.
63357         * modules/time_r (Include): Use "..." syntax.
63358         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63359
63360 2003-10-01  Simon Josefsson  <jas@extundo.com>
63361
63362         * MODULES.html.sh (func_all_modules): Move gethostname from section
63363         'based on' to section 'lacking' POSIX:2001.
63364
63365 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63366
63367         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63368         to output mode on the same stream.
63369
63370 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63371
63372         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63373         Fix arg typo in previous patch.
63374
63375 2003-09-28  Jim Meyering  <jim@meyering.net>
63376
63377         * lib/error.c: Correct cpp indentation.
63378
63379 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63380
63381         * modules/free: New file.
63382
63383 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63384
63385         * m4/free.m4: New file.
63386
63387 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63388
63389         * lib/minmax.h (MIN, MAX)
63390         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63391         Omit the special code that used __typeof__, since we worry that
63392         it could be more trouble than it's worth.  See:
63393         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63394         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63395
63396         * lib/free.c: New file.
63397
63398 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63399
63400         Trivial fixes to Makefile.am parts of module listings.
63401         * modules/strstr: Append strstr.h to lib_SOURCES.
63402         * modules/strcase: Likewise, for strcase.h.
63403
63404 2003-09-27  Karl Berry  <karl@gnu.org>
63405
63406         * config/mkinstalldirs: update from automake.
63407
63408 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63409
63410         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63411         (error_tail): Do not loop, reallocating temporary buffer, since
63412         the output cannot contain more wide characters than the input
63413         contains bytes, the size must be big enough already.  This avoids
63414         one potential size overflow calculation.  Check for size overflow
63415         when calculating temporary buffer size.  Free temporary buffer
63416         when done, if it was allocated with malloc; this plugs a memory
63417         leak.  Remove casts from void * to pointers, that are no longer
63418         needed now that we're assuming C89 or better.
63419
63420         Merge error changes from glibc.
63421
63422         * lib/error.c, error.h: Update copyright notice header to match glibc.
63423         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63424         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63425         Disable cancellation while printing error.
63426         * lib/error.h: Prepend __ to parameter names.
63427
63428 2003-09-26  Jim Meyering  <jim@meyering.net>
63429
63430         * lib/error.c (error_tail): Move some declarations
63431         into inner scope where the local variables are used.
63432
63433 2003-09-26  Bruno Haible  <bruno@clisp.org>
63434
63435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63436         stpncpy().
63437         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63438
63439 2003-09-26  Bruno Haible  <bruno@clisp.org>
63440
63441         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63442         (stpncpy): Define as alias for gnu_stpncpy.
63443         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63444
63445 2003-09-25  Simon Josefsson  <jas@extundo.com>
63446
63447         * lib/xgetdomainname.h: New file.
63448         * lib/xgetdomainname.c: New file.
63449
63450 2003-09-25  Simon Josefsson  <jas@extundo.com>
63451             Bruno Haible  <bruno@clisp.org>
63452
63453         * modules/getdomainname: New file.
63454         * modules/xgetdomainname: New file.
63455         * MODULES.html.sh (func_all_modules): Add getdomainname,
63456         xgetdomainname.
63457
63458 2003-09-25  Simon Josefsson  <jas@extundo.com>
63459             Bruno Haible  <bruno@clisp.org>
63460
63461         * m4/getdomainname.m4: New file.
63462
63463 2003-09-25  Simon Josefsson  <jas@extundo.com>
63464             Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/getdomainname.h: New file.
63467         * lib/getdomainname.c: New file.
63468
63469 2003-09-25  Karl Berry  <karl@gnu.org>
63470
63471         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63472
63473 2003-09-25  Karl Berry  <karl@gnu.org>
63474
63475         * config/install-sh: update from automake.
63476
63477 2003-09-25  Bruno Haible  <bruno@clisp.org>
63478
63479         * modules/version-etc-2: New file, from modules/version-etc with
63480         modifications.
63481         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63482
63483 2003-09-25  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63486         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63487
63488 2003-09-24  Simon Josefsson  <jas@extundo.com>
63489
63490         * modules/xgethostname: Add xgethostname.h.
63491
63492 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63493
63494         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63495         the buffer associated with the argument.  Bug reported by
63496         Simon Josefsson.
63497
63498 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63499
63500         * README: Document assumptions that 'int' is at least 32 bits
63501         wide, that integer arithmetic is 2's complement without overflow,
63502         that there are no holes in integer values, that adding sizes of
63503         two nonoverlapping objects can't overflow, and that all-bits-zero
63504         yields scalar zero.  Fix spelling and capitalization typos.
63505
63506 2003-09-19  Karl Berry  <karl@gnu.org>
63507
63508         * lib/argp.h: update from libc.
63509
63510 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63511
63512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63513         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63514         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63515
63516 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63517
63518         * gnulib-tool: Use "test -h", not "test -L", for portability
63519         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63520         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63521         (sed_extract_prog): Issue s commands one-by-one, rather than
63522         using \| in one s command.
63523
63524 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63525
63526         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63527         input error, instead of returning NULL the next time we are called
63528         (and therefore losing track of errno).
63529
63530 2003-09-16  Bruno Haible  <bruno@clisp.org>
63531
63532         * gnulib-tool (func_create_testdir): Warn about duplicated
63533         dependencies.
63534
63535 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63536
63537         * modules/argmatch, modules/fatal, modules/obstack,
63538         modules/xalloc, modules/xgethostname: Sort dependencies by
63539         importance, not alphabetically.
63540
63541 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63542
63543         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63544         fails, so that the caller gets the proper errno.
63545
63546         * lib/readutmp.c (read_utmp): Likewise.
63547         Check for fstat error.  Close stream and free storage
63548         when failing.
63549
63550 2003-09-14  Karl Berry  <karl@gnu.org>
63551
63552         * config/srclist.txt (strdup.c): disable for c89 changes.
63553
63554 2003-09-14  Jim Meyering  <jim@meyering.net>
63555
63556         * lib/getloadavg.c: Correct cpp indentation.
63557         * lib/strdup.c: Likewise.
63558         * lib/vasnprintf.c: Likewise.
63559
63560 2003-09-14  Bruno Haible  <bruno@clisp.org>
63561
63562         * modules/fwriteerror: New file.
63563         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63564
63565 2003-09-14  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/fwriteerror.h: New file.
63568         * lib/fwriteerror.c: New file.
63569
63570 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63571
63572         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63573         modules/xgethostname, modules/xalloc: Depend on exit.
63574
63575 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63576
63577         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63578
63579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63580         and AC_MINIX, too, so that their extensions are available.
63581
63582         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63583         This macro has been superseded by gl_BACKUPFILE.
63584
63585         More patches to assume C89 or better.
63586
63587         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63588
63589         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63590         unconditionally.
63591         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63592         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63593         Include <string.h>, <stdlib.h> unconditionally.
63594         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63595         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63596         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63597         headers or for string.h.
63598         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63599         or strtoul.
63600
63601         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63602         headers.
63603         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63604         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63605         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63606         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63607         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63608         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63609         memcpy, memset.
63610         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63611         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63612         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63613         strtol.
63614         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63615         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63617         strtoul.
63618
63619 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63620
63621         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63622         * lib/obstack.c [!defined _LIBC]: Likewise.
63623         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63624         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63625         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63626
63627         More changes to assume C89 or better.
63628
63629         * lib/error.c (error_tail): Assume vprintf.
63630
63631         * lib/argmatch.c (getenv): Remove decl.
63632         * lib/progreloc.c (get_full_program_name): Define via prototype.
63633         * lib/setenv.c (clearenv): Likewise.
63634         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63635         needed.
63636         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63637         (malloc, memcpy): Remove decls.
63638         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63639         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63640         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63641         (memcpy): Remove macro.
63642         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63643         (__P): Remove.  All uses removed.
63644         (PTR): Remove.  All uses changed to void *.
63645         (CHAR_BIT, NULL): Remove.
63646         (spaces, zeros, memset_space, memset_zero)
63647         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63648         Remove.
63649         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63650         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63651         Define with prototype.
63652         Remove now-unnecessary prototype decl.
63653         (extra_args_spec): Assume ANSI C.  All uses changed.
63654         (extra_args_spec_iso): Remove.
63655         (my_strftime, emacs_strftimeu): Define via prototype.
63656         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63657         unconditionally.
63658         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63659         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63660         (strtoul, strtol): Remove decls.
63661         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63662         LONG_MAX): Remove.
63663         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63664         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63665         (LOCALE_PARAM_PROTO): New macro.
63666         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63667         (INTERNAL (strtol), strtol): Define with a prototype.
63668         (PARAMS): Remove.  All uses removed.
63669         * lib/tempname.c: Include <string.h> unconditionally.
63670         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63671         * lib/xgethostname.c (main): Define with a prototype.
63672         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63673         Include <stdlib.h> unconditionally.
63674         (calloc, malloc, realloc, free): Remove decls.
63675         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63676         Include <stdlib.h> unconditionally.  Sort include file names.
63677         (strtod): Remove.
63678         (xstrtod): Define with a prototype.
63679         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63680         (strtol, strtoul): Remove decls.
63681
63682 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63683
63684         More patches to assume C89 or better.
63685         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63686         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63687         string.h, memchr, STDC_HEADERS.
63688
63689 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63690
63691         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63692         Include <stdlib.h>, <string.h> unconditionally.
63693         Remove now-unnecessary cast to char *.
63694         * lib/strnlen.c: Include <string.h> unconditionally.
63695         * lib/yesno.c (yesno): Define with a prototype.
63696
63697 2003-09-11  Bruno Haible  <bruno@clisp.org>
63698
63699         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63700
63701 2003-09-10  Jim Meyering  <jim@meyering.net>
63702
63703         * lib/error.c: Correct indentation of cpp directives.
63704
63705 2003-09-10  Bruno Haible  <bruno@clisp.org>
63706
63707         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63708         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63709         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63710         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63711         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63712         <stdlib.h> and <string.h> checks.
63713         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63714         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63715
63716 2003-09-10  Bruno Haible  <bruno@clisp.org>
63717
63718         * lib/strcspn.c: Include <string.h> unconditionally.
63719         * lib/strpbrk.c: Include <string.h> unconditionally.
63720         * lib/strstr.c: Include <string.h> unconditionally.
63721         * lib/unicodeio.c: Include <string.h> unconditionally.
63722         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63723         * lib/unsetenv.c: Likewise.
63724         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63725         * lib/yesno.c: Include <stdlib.h> unconditionally.
63726         (rpmatch): Add prototype.
63727
63728 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63729
63730         More patches to assume C89 or better.
63731         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63732         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63733         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63734         or for string.h.
63735         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63736         stdlib.h.
63737         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63738         C headers.
63739         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63740         string.h.
63741         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63742         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63743         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63744         or for string.h.
63745         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63746         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63747         C headers.
63748         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63749         memcpy.
63750         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63751         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63752         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63753         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63754         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63755         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63756         string.h, free.
63757         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63758         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63759         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63760         C headers, or for string.h.
63761         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63762         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63763         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63764         headers, memory.h, stdlib.h, string.h, strings.h.
63765         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63766         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63767         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63768         strchr.
63769         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63770         headers, memory.h, string.h.
63771         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63772         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63773         free.
63774         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63775         headers.
63776         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63777         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63778         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63779         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63780         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63781
63782 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63783
63784         More K&R removal.
63785
63786         * lib/acosl.c (main): Use a prototype.
63787         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63788         tanl.c: Likewise.
63789
63790         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63791
63792         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63793         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63794         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63795         with a prototype.
63796         * lib/getopt.c (const): Remove macro.
63797         Include <string.h> unconditionally.
63798         (my_index): Remove; all uses changed to strchr.
63799         (strlen): Remove decl.
63800         (exchange): Remove forward decl; no longer needed.
63801         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63802         Define with prototype.
63803         * lib/getopt1.c (const): Remove macro.
63804         (getopt_long, getopt_long_only, main): Define with prototype.
63805
63806         * lib/getugroups.c: Include <string.h> unconditionally.
63807
63808         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63809         (getusershell, setusershell, endusershell, readname, main):
63810         Define with prototypes.
63811
63812         * lib/group-member.c: Include group-member.h first.
63813         Include <stdlib.h> unconditionally.
63814
63815         * lib/hard-locale.c: Include hard-locale.h first.
63816         Include <stdlib.h>, <string.h> unconditionally.
63817
63818         * lib/hash.c (free, malloc): Remove decls.
63819         Include <stdlib.h> unconditionally.
63820
63821         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63822         (getenv): Do not declare.
63823
63824         * lib/idcache.c: Include <string.h> unconditionally.
63825
63826         * lib/long-options.c: Include long-options.h first, to test interface.
63827         Include <stdlib.h> unconditionally.
63828
63829         * lib/makepath.c: Include makepath.h first, to test interface.
63830         Include <stdlib.h> and <string.h> unconditionally.
63831
63832         * lib/linebuffer.c: Include <stdlib.h>.
63833         (free): Remove decl.
63834
63835         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63836         stddef.h. rpl_malloc returns void *, not char *.
63837         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63838         prototype.
63839
63840         * lib/md5.h: Include <limits.h> unconditionally.
63841         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63842         (__P): Remove; all uses removed.
63843         * lib/md5.c: Include "md5.h" first.
63844         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63845         md5_buffer, md5_process_bytes, md5_process_block):
63846         Define with prototypes.
63847         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63848         * lib/sha.c: Include "sha.h" first.
63849         Include <stdlib.h>, <string.h> unconditionally.
63850
63851         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63852         * lib/memcmp.c (__ptr_t): Likewise.
63853         * lib/memrchr.c (__ptr_t): Likewise.
63854         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63855         Include <string.h> unconditionally.
63856         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63857         * lib/memchr.c: Include <stdlib.h> unconditionally.
63858         * lib/memchr.c (LONG_MAX): Remove.
63859         * lib/memrchr.c (LONG_MAX): Likewise.
63860         * lib/memchr.c (__memchr): Define via a prototype.
63861         * lib/memrchr.c (__memrchr): Likewise.
63862         * lib/memcmp.c (__P): Remove, and remove all uses.
63863         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63864         Remove forward decls; no longer needed.
63865         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63866         Use types required by C89 in prototype.
63867
63868         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63869         * lib/savedir.c: Likewise.
63870         * lib/mkdir.c (free): Remove decl.
63871         * lib/rmdir.c (rmdir): Define with a prototype.
63872         * lib/savedir.c: Include savedir.h first, to test interface.
63873
63874         * lib/mktime.c (STDC_HEADERS): Remove.
63875         Include <stdlib.h>, <string.h> unconditionally.
63876
63877         * lib/modechange.c: Include <stdlib.h> unconditionally.
63878         (malloc): Remove decl.
63879
63880         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63881         (free): Remove decl.
63882
63883         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63884         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63885         (This type really should be intptr_t, but that's a C99ism.)
63886         (_obstack_memcpy): Remove: all uses changed to memcpy.
63887         Include <string.h> unconditionally.
63888         (struct obstack): Assume __STDC__ for types of members
63889         chunkfun, freefun, extra_arg.
63890         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63891         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63892         obstack_begin, obstack_specify_allocation,
63893         obstack_specify_allocation_with_arg, obstack_chunkfun,
63894         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63895         Remove unprototyped decls and the macros that use them.
63896         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63897         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63898         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63899         (defined __STDC__ && __STDC__)]:
63900         Remove nonprototyped code.
63901         Include <stdlib.h> unconditionally.
63902         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63903         _obstack_allocated_p, _obstack_free, obstack_free,
63904         _obstack_memory_used, print_and_abort):
63905         Define using prototypes.
63906         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63907         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63908         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63909         obstack_next_free, obstack_object_size, obstack_room) [0]:
63910         Remove unused, unprototyped code.
63911
63912         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63913
63914         * lib/physmem.c (physmem_total, physmem_available, main): Define
63915         with prototypes.
63916
63917         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63918         (main): Define with a prototype.
63919
63920         * lib/posixver.c (getenv): Remove decl.
63921
63922         * lib/putenv.c (malloc): Returns void *, not char *.
63923         Include <string.h> unconditionally.
63924         (strchr, memcpy, NULL): Do not define.
63925
63926         * lib/readtokens.c: Include readtokens.h first, to test interface.
63927         Include <stdlib.h>, <string.h> unconditionally.
63928         (init_tokenbuffer): Define with a prototype.
63929
63930         * lib/regex.c (PARAMS): Remove.  All uses removed.
63931         All uses of _RE_ARGS removed, too.
63932         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63933         unconditionally.
63934         (bzero): Assume memset exists.
63935         (memcmp, memcpy, NULL): Remove.
63936         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63937         char, or assignments to local vars of type signed char.
63938         (init_syntax_once, PREFIX(extract_number_and_incr),
63939         PREFIX(print_partial_compiled_pattern),
63940         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63941         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63942         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63943         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63944         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63945         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63946         wcs_compile_range, byte_compile_range, truncate_wchar,
63947         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63948         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63949         count_mbs_length, wcs_re_match_2_internal,
63950         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63951         PREFIX(alt_match_null_string_p),
63952         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63953         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63954         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63955         now-unnecessary declaration, if any.
63956         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63957         regcomp, regexec):
63958         Remove now-unnecessary casts among pointer types.
63959         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63960
63961         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63962         (free): Remove decl.
63963
63964         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63965
63966         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63967         (free): Remove decl.
63968
63969         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63970         * lib/xgetcwd.c: Likewise.
63971
63972         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63973         (free): Remove decl.
63974
63975         * lib/strchrnul.c (strchrnul): Define with a prototype.
63976         Fix bug: c_in was not converted to char before searching.
63977
63978         The following changes are not K&R related:
63979
63980         * lib/group-member.h: Include <sys/types.h>, so that this file is
63981         self-contained.
63982         * lib/makepath.h: Likewise.
63983
63984         * lib/getusershell.c (readname, default_index, line_size, readname):
63985         Use size_t, not int, for sizes.
63986         (readname): If the size overflows, report an error instead of
63987         looping forever.
63988
63989 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63990
63991         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63992         libc.
63993
63994 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63995
63996         * README: New section: portability guidelines.
63997
63998 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63999
64000         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64001         C89 spec.
64002
64003 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64004
64005         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64006
64007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64008
64009         Assume C89 or better; remove K&R cruft.
64010         A few of these changes were first proposed by Derek Robert Price
64011         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64012
64013         * lib/addext.c: Include <string.h> unconditionally.
64014         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64015         Don't declare getenv or malloc.
64016
64017         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64018         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64019         (NULL): Remove.
64020         (find_stack_direction, alloca): Use prototypes.
64021
64022         * lib/atexit.c (atexit): Define using a prototype.
64023
64024         * lib/basename.c, dirname.c, stripslash.c:
64025         Include <string.h> unconditionally.
64026
64027         * lib/bcopy.c: Include <stddef.h>.
64028         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64029
64030         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64031
64032         * lib/error.h (error, error_at_line, error_print_progname)
64033         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64034         * lib/error.c: Include error.h first, to check interface.
64035         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64036         (VA_START): Remove; all uses changeed to va_start.
64037         (exit, strerror): Remove decls.
64038         (error_print_progname): Prototype uncondionally.
64039         Don't include <errno.h>; no longer needed.
64040         (private_strerror): Remove.
64041         (error_tail): Always define.
64042         (error, error_at_line): Assume C89 or better; always use prototypes.
64043         * lib/fatal.c: Include "fatal.h" first, to test interface.
64044         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64045         (VA_START): Remove; all uses changed to va_start.
64046         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64047         this case.
64048         (exit): Remove decl.
64049         (fatal): Prototype unconditionally.  Assume va_start works.
64050         Abort at end, to pacify gcc.
64051
64052         * lib/euidaccess.c (main): Define with a prototype.
64053
64054         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64055
64056         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64057
64058         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64059         prototypes.
64060         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64061         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64062         (getenv): Remove decl.
64063         (fnmatch): Define using a prototype.
64064         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64065         (FCT): Define using a prototype.
64066
64067         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64068
64069         * lib/gethostname.c: Include <stddef.h>.
64070         (gethostname): Define with prototype.  Length is size_t, not int.
64071
64072 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64073
64074         Assume C89 or better; remove K&R cruft.
64075         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64076         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64077         string.h, getenv, malloc.
64078         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64079         headers.
64080         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64081         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64082         do not check for strerror.
64083         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64084         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64085         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64086         do not check for doprnt or vprintf.
64087         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64088         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64089
64090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64091
64092         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64093         getversion.c should have been removed then, but was accidentally
64094         preserved.
64095
64096         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64097         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64098
64099 2003-09-08  Karl Berry  <karl@gnu.org>
64100
64101         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64102                 config, forget about prep.
64103
64104         * config/depcomp, missing: update from automake.
64105
64106 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64107
64108         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64110
64111 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64112
64113         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64114         copy_tm_result.  Bug reported by Simon Josefsson in
64115         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64116
64117 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64118
64119         * m4/time_r.m4: New file.
64120         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64121         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64122         is. Check for timegm declaration.
64123         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64124         Do not check for gmtime_r.
64125         Replace mktime if __mktime_internal does not exist and if mktime
64126         hasn't been replaced already.
64127
64128 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64129
64130         * lib/time_r.c, lib/time_r.h: New files.
64131
64132         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64133         __localtime_r.
64134         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64135         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64136
64137         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64138         __gmtime_r.
64139         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64140         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64141         Include <time_r.h>.
64142
64143         * lib/timegm.c: Switch to glibc implementation, with the following
64144         changes:
64145         [defined HAVE_CONFIG_H]: Include <config.h>.
64146         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64147         (__mktime_internal) [!defined _LIBC]: New decl.
64148         (__gmtime_r) [!defined _LIBC]: New macro and function.
64149         (timegm): Use a prototype, since gnulib assumes C89.
64150         Do not bother declaring tmp to be const, as it's not really usefu.
64151         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64152         (timegm): Declare only if HAVE_DECL_TIMEGM.
64153
64154 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64155
64156         * MODULES.html.sh (func_all_modules): Add time_r.
64157         * modules/time_r: New file.
64158         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64159         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64160
64161 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64162
64163         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64164         Bug reported by Lute Kamstra in
64165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64166
64167         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64168         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64169         course with correspondingly smaller numbers for tomorrow and
64170         yesterday.  From Tadayoshi Funaba.  Originally installed into
64171         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64172         coreutils merge?).
64173
64174 2003-08-31  Simon Josefsson  <jas@extundo.com>
64175
64176         * modules/timegm: New file.
64177         * MODULES.html.sh (func_all_modules): Add timegm.
64178
64179 2003-08-31  Simon Josefsson  <jas@extundo.com>
64180
64181         * m4/timegm.m4: New file.
64182
64183 2003-08-31  Simon Josefsson  <jas@extundo.com>
64184
64185         * lib/timegm.h: New file.
64186         * lib/timegm.c: New file.  Based on
64187         wget-1.8.2/src/http.c:mktime_from_utc.
64188
64189 2003-08-31  Karl Berry  <karl@gnu.org>
64190
64191         * lib/argp.h: update from libc.
64192
64193 2003-08-28  Bruno Haible  <bruno@clisp.org>
64194
64195         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64196         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64197         followed by '#define fnmatch fnmatch_posix' gives an error.
64198
64199 2003-08-28  Bruno Haible  <bruno@clisp.org>
64200
64201         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64202         warning on QNX, which defines O_BINARY to 000000.
64203
64204 2003-08-27  Jim Meyering  <jim@meyering.net>
64205
64206         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64207         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64208         would fail after 32.  Reported by Danny Levinson.  Details here:
64209         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64210
64211 2003-08-24  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64214         MSVC7 <stdio.h> is included later.
64215
64216 2003-08-22  Simon Josefsson  <jas@extundo.com>
64217
64218         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64219
64220 2003-08-20  Karl Berry  <karl@gnu.org>
64221
64222         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64223
64224 2003-08-20  Bruno Haible  <bruno@clisp.org>
64225
64226         * modules/progname: New file.
64227         * MODULES.html.sh (func_all_modules): Add progname.
64228
64229 2003-08-20  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/progname.h: New file, from GNU gettext.
64232         * lib/progname.c: New file, from GNU gettext.
64233         * lib/progreloc.c: New file, from GNU gettext.
64234
64235 2003-08-19  Jim Meyering  <jim@meyering.net>
64236
64237         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64238         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64239
64240 2003-08-19  Bruno Haible  <bruno@clisp.org>
64241
64242         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64243         more.
64244
64245 2003-08-19  Bruno Haible  <bruno@clisp.org>
64246
64247         * lib/xstrdup.c: Assume <string.h> exists.
64248
64249 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64250
64251         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64252         in makefile rules.
64253
64254 2003-08-18  Jim Meyering  <jim@meyering.net>
64255
64256         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64257         * m4/lib-ld.m4: Likewise.
64258
64259 2003-08-18  Jim Meyering  <jim@meyering.net>
64260
64261         * lib/setenv.h: Indent nested cpp directive.
64262         * lib/vasnprintf.c: Remove trailing blanks.
64263
64264 2003-08-17  Simon Josefsson  <jas@extundo.com>
64265
64266         * modules/xstrndup: New file.
64267         * MODULES.html.sh (func_all_modules): Add xstrndup.
64268
64269 2003-08-17  Simon Josefsson  <jas@extundo.com>
64270
64271         * modules/argp: Fix autoconf macro name. Add more dependencies.
64272
64273 2003-08-17  Simon Josefsson  <jas@extundo.com>
64274
64275         * m4/xstrndup.m4: New file.
64276
64277 2003-08-17  Simon Josefsson  <jas@extundo.com>
64278
64279         * m4/argp.m4: New file.
64280
64281 2003-08-17  Simon Josefsson  <jas@extundo.com>
64282             Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/xstrndup.h: New file.
64285         * lib/xstrndup.c: New file.
64286
64287 2003-08-17  Bruno Haible  <bruno@clisp.org>
64288
64289         * modules/strndup (Files, Include): Add lib/strndup.h.
64290
64291 2003-08-17  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/euidaccess (Files): Add lib/euidaccess.h.
64294
64295 2003-08-17  Bruno Haible  <bruno@clisp.org>
64296
64297         * lib/strndup.h: New file.
64298
64299 2003-08-17  Bruno Haible  <bruno@clisp.org>
64300
64301         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64302         like AC_GNU_SOURCE.
64303         * modules/extensions (configure.ac): Comment out the invocation of
64304         gl_USE_SYSTEM_EXTENSIONS.
64305
64306 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64307
64308         Merges from coreutils, etc.
64309         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64310         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64311         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64312         fixing a typo.
64313         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64314         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64315
64316 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64317
64318         Document merge from coreutils.
64319         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64320         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64321         * modules/utime: Add m4/utimes-null.m4.
64322
64323 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64324
64325         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64326         space, undoing this 2003-08-12 change:
64327         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64328
64329 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64330
64331         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64332         strtoul.c from libc, undoing this 2003-08-12 change:
64333         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64334
64335 2003-08-16  Jim Meyering  <jim@meyering.net>
64336
64337         Merges from coreutils.
64338         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64339         prefix.  Adjust cache variables similarly.  Create 500 rather than
64340         just 300 files, to exercise bug on Darwin6.5, too.
64341         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64342         $missing_dir.
64343         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64344         AM_SYS_POSIX_TERMIOS.
64345         Reported by mkc@mathdogs.com.
64346         Also change use of $am_cv_sys_posix_termios
64347         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64348         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64349         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64350         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64351         in /proc/mounts until it finds one with matching device number.  This
64352         is unnecessary when the FILE argument *is* a mount point.  No stat call
64353         is necessary in that case.  So, disable the statvfs-testing code on
64354         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64355         as RedHat bug# 84846.
64356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64357         to 1MB, so as not to render systems with no stack size limit (e.g.,
64358         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64359         Include <unistd.h>.  On some systems,
64360         it is required for the definition of _SC_PAGESIZE.
64361
64362 2003-08-16  Jim Meyering  <jim@meyering.net>
64363
64364         Merge from coreutils.
64365         * lib/xstrtoimax.c: #else #if -> #elif.
64366         * lib/xstrtoumax.c: Likewise.
64367
64368 2003-08-16  Jim Meyering  <jim@meyering.net>
64369
64370         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64371         * m4/utimes.m4: Removed.
64372         * m4/utimes-null.m4: Renamed from utimes.m4.
64373
64374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64375         to 1MB, so as not to render systems with no stack size limit (e.g.,
64376         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64377         Include <unistd.h>.  On some systems,
64378         it is required for the definition of _SC_PAGESIZE.
64379
64380 2003-08-16  Jim Meyering  <jim@meyering.net>
64381         and Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         Merges from coreutils, etc.
64384
64385         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64386         using the latest version from cvs.  This avoids problems with #line
64387         directives using a vendor (Sun) compiler.
64388         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64389         Don't set GETGROUPS_LIB here; now it's
64390         done via getgroups.m4's wrapper function.
64391         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64392         rather than just in sh-util/configure.in, so that the
64393         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64394         same.
64395         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64396         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64397         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64398         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64399         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64400         Remove code that is now done by the newly-required macros.
64401         Append $(EXEEXT) to DF_PROG.
64402         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64403         Do not invoke or require the following here,
64404         since prereq.m4 or some gnulib .m4 now does this for us:
64405         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64406         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64407         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64408         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64409         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64410         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64411         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64412         AC_FUNC_OBSTACK.
64413         Do not replace the following functions, as this is now the job
64414         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64415         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64416         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64417         atexit getpass, strdup, getpagesize.
64418         Replace 'raise'.
64419         Do not check for the following functions, as this is now the job
64420         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64421         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64422         setregid.
64423         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64424         Check for sys/sysctl.h.
64425         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64426         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64427         of checking for ssize_t ourselves.
64428
64429         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64430         Require every macro that gnulib/modules/* suggests for us.
64431         (jm_PREREQ_ADDEXT): New macro.
64432         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64433         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64434
64435         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64436         (gl_PHYSMEM): Use it.
64437         Also check for `table' function.
64438         Check for new headers and functions.
64439         Add check for sys/sysmp.h.
64440         With suggestions from Kaveh Ghazi.
64441         Ignore headers that are present but cannot be compiled.  This
64442         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64443         C 5.4.
64444
64445 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64446
64447         Document merge from coreutils.
64448         * modules/userspec: Depend on posixver.
64449         * modules/strftime: Depend on tzset.
64450
64451 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64452
64453         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64454         rather than tab, after '#' in shell-script copyright notices.
64455         Suggested by Bruno Haible.
64456
64457 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64458
64459         * config/srclist-update: Use three spaces, rather than tab, after '#'
64460         in shell-script copyright notices.  Suggested by Bruno Haible.
64461         Remove unnecessary parenthesization in regular expression.
64462
64463 2003-08-15  Jim Meyering  <jim@meyering.net>
64464
64465         Merge from coreutils.
64466         * lib/xgethostname.c: Include <stdlib.h>.
64467         (xghostname): Don't exit for anything other than memory-related
64468         failure; just return NULL.
64469         * lib/userspec.c: Include "posixver.h".
64470         (parse_user_spec): Accept `.' as a separator only
64471         in pre-POSIX-200112 mode.
64472         * lib/strtoimax.c: Use #elif rather than #else #if.
64473         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64474         Remove function, now that we can rely on a working tzset function.
64475         [!_LIBC]: Ensure that the required autoconf test has been run.
64476         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64477         Use underlying_strftime for %r.
64478         * lib/sha.c: Merge in some clean-up and optimization changes from
64479         glibc.
64480         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64481         Ensure that it is a multiple of 64.
64482         Rearrange loop exit tests so as to avoid performing an
64483         additional fread after encountering an error or EOF.
64484         * lib/realloc.c: Update copyright date.
64485
64486 2003-08-15  Jim Meyering  <jim@meyering.net>
64487         and Paul Eggert  <eggert@twinsun.com>
64488
64489         Merge from coreutils.
64490         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64491         member but strut utmpx does not.  Needed for AIX 4.3.3.
64492         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64493
64494 2003-08-15  Jim Meyering  <jim@meyering.net>
64495         and Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         Merges from coreutils, etc.
64498         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64499         Require gl_FUNC_TZSET_CLOBBER.
64500         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64501         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64502         members.
64503
64504 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64505
64506         Help the merge from coreutils.
64507         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64508         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64509         * m4/tzset.m4: Use it too.
64510
64511 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64512
64513         * modules/tzset: New file.
64514
64515 2003-08-14  Jim Meyering  <jim@meyering.net>
64516
64517         Merges from coreutils.
64518         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64519         variable names, rather than @FNMATCH_H@.
64520         * modules/alloca: Likewise for $(ALLOCA_H).
64521
64522         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64523         the three copies of the literal target, `fnmatch.h'.
64524         * modules/alloca (alloca.h): Likewise.
64525
64526 2003-08-14  Jim Meyering  <jim@meyering.net>
64527
64528         Merge from coreutils.
64529         * m4/tzset.m4: New file.
64530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64531         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64532         otherwise, AIX 5.1 systems would end up using the latter.
64533         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64534         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64535         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64536         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64537
64538 2003-08-14  Jim Meyering  <jim@meyering.net>
64539
64540         Merge from coreutils.
64541         * lib/obstack.h: Whitespace changes.
64542         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64543         and xcalloc return values.
64544         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64545         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64546         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64547         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64548         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64549         error from mntctl.
64550         Use mntctl's return value to drive the entry-processing loop, since
64551         we can't rely on the value of the vmt_length member in the last
64552         entry.  On some systems doing so could result in exhausting
64553         virtual memory.  Based in part on a patch from Mike Jetzer.
64554
64555 2003-08-14  Jim Meyering  <jim@meyering.net>
64556         and Paul Eggert  <eggert@twinsun.com>
64557
64558         Merges from coreutils, plus other fixes.
64559         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64560         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64561         for credits and details.  Thanks to Kaveh Ghazi for helping
64562         to keep these files in sync.
64563         (ARRAY_SIZE): Define it.
64564         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64565         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64566         (memcasecmp): Don't assume size_t fits in unsigned int.
64567         Remove casts and duplicate code.
64568         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64569         (memcpy): Remove definition.
64570         Merge in some clean-up and optimization changes from glibc.
64571         [BLOCKSIZE]: Move definition to top of file.
64572         Ensure that it is a multiple of 64.
64573         Rearrange loop exit tests so as to avoid performing an
64574         additional fread after encountering an error or EOF.
64575         * lib/md5.h (md5_uintptr): Define.
64576         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64577         return to the initial working directory.  Preserve errno
64578         for caller.
64579         * lib/idcache.c: Include "xalloc.h".
64580         (xmalloc, xrealloc): Remove decls.
64581         (getuser): Remove casts no longer required in C89.
64582         * lib/human.c: Include stdio.h, for sprintf.
64583         * lib/group-member.c: Include "xalloc.h".
64584         (xmalloc, xrealloc): Remove decls.
64585         (get_group_info): Remove casts no longer required in C89.
64586         * lib/getusershell.c (readname): Remove casts no longer required in
64587         C89.
64588         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64589         * lib/getline.c: Whitespace fix, from coreutils.
64590
64591 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64592
64593         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64594         Check for isascii.
64595
64596         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64597         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64598         Undo previous (whitespace-only) change.
64599
64600 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64601
64602         * lib/exclude.c: Include <ctype.h>
64603         (IN_CTYPE_DOMAIN): New macro.
64604         (is_space): New fn.
64605         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64606         and empty lines.
64607
64608         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64609         Undo previous (whitespace-only) change.
64610
64611 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64612
64613         * config/srclist-update: Change update back to the old behavior,
64614         leaving whitespace alone.  Use one 'sed' command rather than a
64615         pipeline.
64616         (fixlicense): Now a variable, not a function.
64617         (remove_trailing_blanks): Remove.
64618         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64619         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64620         Undo previous (whitespace-only) change.
64621
64622 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64623
64624         Merge from coreutils.
64625         * modules/euidaccess: Add lib_SOURCES, include for new
64626         file euidaccess.h
64627
64628 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64629
64630         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64631         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64632         Normalize leading white space and remove trailing white space.
64633
64634         Merge from coreutils
64635         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64636
64637         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64638         0.12.1.  These files are now being upgraded automatically by
64639         ../config/srclist-update.
64640
64641 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64642
64643         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64644         Normalize leading white space and remove trailing white space.
64645         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64646         notice, as per ../config/srclist-update.
64647
64648         Merge from coreutils.
64649         * lib/euidaccess.h: New file.
64650         * lib/euidaccess.c: Include it.
64651         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64652         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64653         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64654
64655 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64656
64657         * config/srclist-update: Add copyright notice.
64658         (remove_id_lines, remove_trailing_blanks): New constants.
64659         (fixfile): Use them to normalize spacing a bit in copied files.
64660         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64661         Normalize leading white space and remove trailing white space.
64662
64663         * config/texinfo.tex: Sync with texinfo.
64664
64665         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64666         strtoul.c from libc, to merge coreutils whitespace changes.
64667
64668         * config/srclist.txt: Get the following m4 files from gettext:
64669         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64670         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64671         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64672         wint_t.m4.
64673
64674 2003-08-12  Karl Berry  <karl@gnu.org>
64675
64676         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64677         been made.
64678
64679 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64680
64681         * modules/gnu-source, m4/gnu-source.m4:
64682         Remove; we're assuming Autoconf 2.54 or later now.
64683         Suggested by Bruno Haible.
64684         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64685
64686 2003-08-11  Bruno Haible  <bruno@clisp.org>
64687
64688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64689
64690 2003-08-11  Bruno Haible  <bruno@clisp.org>
64691
64692         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64693         (vasnprintf): Use it instead of wcslen.
64694
64695 2003-08-11  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64698         value to ensure that _Bool promotes to int. Use #define for _Bool when
64699         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64700
64701 2003-08-10  Karl Berry  <karl@gnu.org>
64702
64703         * lib/regex.h: update from libc (whitespace fix).
64704
64705 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64706
64707         Merge some files from coreutils.  These changes were
64708         originally made by Jim Meyering.
64709         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64710         many older Unixes require this.
64711         * lib/alloca.c (alloca): Remove cast to argument of free;
64712         no longer needed in C89.
64713         * lib/alloca_.h, regex.h: Fix white space to match
64714         what GNU indent does.
64715
64716 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64717
64718         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64719         apparently Emacs's Unicode mode got confused before my 2003-08-05
64720         checkin.
64721
64722 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64723
64724         * m4/extensions.m4: New file.
64725         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64726         Require gl_USE_SYSTEM_EXTENSIONS.
64727         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64728         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64729
64730 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64731
64732         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64733         * modules/extensions, modules/gnu-source: New files.
64734         * modules/timespec, modules/unlocked-io: Depend on extensions.
64735
64736 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64737
64738         * modules/restrict: New file.
64739         * MODULES.html.sh (func_all_modules): Add restrict.
64740         * modules/regex: Depend on restrict.
64741
64742 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64743
64744         * m4/restrict.m4: New file.
64745         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64746
64747 2003-08-07  Bruno Haible  <bruno@clisp.org>
64748
64749         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64750         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64751
64752 2003-08-07  Bruno Haible  <bruno@clisp.org>
64753
64754         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64755         makes the module 'getndelim2' compatible with the module 'getline'.
64756
64757 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64758
64759         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64760         byte with "\201" to avoid glitches when editing that source file
64761         with multi-gnome-terminal.
64762
64763 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64764
64765         * lib/bumpalloc.h: Remove.
64766
64767 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64768
64769         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64770         * modules/bumpalloc: Remove.
64771
64772 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64773
64774         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64775         GNU coding style.
64776
64777         Merge from coreutils.
64778         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64779         1. From glibc.
64780         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64781         from Karl Berry, implemented by Jim Meyering.
64782         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64783         from Dmitry V. Levin.
64784         Remove anachronistic cast of xrealloc.
64785         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64786         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64787         type. Otherwise, it wouldn't compile with at least /bin/cc on
64788         ymp-cray-unicos9.0.2.X.
64789         Combine two mostly-identical uses of alloca into one.
64790         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64791
64792 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64793
64794         [From Emacs.]
64795
64796         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64797         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64798         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64799         obsolete NLIST_NAME_UNION.
64800         [__GNU__]: Undef BSD and FSCALE.
64801         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64802
64803 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64804
64805         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64806         an enum type, so that it's guaranteed to promote to int.  See:
64807         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64808
64809 2003-08-03  Karl Berry  <karl@gnu.org>
64810
64811         * config/depcomp: update from automake.
64812
64813 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64814
64815         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64816         (strerror): Don't assume that a printable int fits in 14 bytes.
64817
64818 2003-07-31  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/getpass-gnu: New file.
64821         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64822
64823 2003-07-31  Bruno Haible  <bruno@clisp.org>
64824
64825         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64826
64827 2003-07-24  Karl Berry  <karl@gnu.org>
64828
64829         * config/missing: update from automake.
64830
64831 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64832             Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64835         * lib/getline.c (getline, getdelim): Likewise.
64836         Remove _GNU_SOURCE define; now it's defined in config.h through
64837         m4/getline.m4.
64838
64839 2003-07-23  Karl Berry  <karl@gnu.org>
64840
64841         * config/config.sub: update from prep.
64842
64843 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64844
64845         * modules/xalloc (Depends-on): Add exitfail.
64846         * modules/xmemcoll: Likewise.
64847
64848 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64849
64850         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64851         over-parenthesization in macros.
64852
64853         Sync with coreutils.
64854
64855         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64856         required by C99.
64857
64858         Use `exit_failure' for xalloc and xmemcoll instead of their own
64859         private exit-failure variables.
64860         * lib/xalloc.h (xalloc_exit_failure): Remove.
64861         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64862         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64863         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64864         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64865         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64866
64867 2003-07-20  Jim Meyering  <jim@meyering.net>
64868
64869         * modules/closeout (Depends-on): Add exitfail.
64870         Suggestion from Bruno Haible.
64871
64872 2003-07-19  Karl Berry  <karl@gnu.org>
64873
64874         * config/config.sub: update from prep.
64875
64876 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64877
64878         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64879         Remove.
64880         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64881         to test that it can stand by itself.  Include "exitfail.h".
64882         Clients should set exit_failure instead.
64883         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64884
64885 2003-07-18  Bruno Haible  <bruno@clisp.org>
64886
64887         * modules/getndelim2: New file.
64888         * modules/getline: Share files with module getndelim2.
64889         * modules/getnline: Depend on getndelim2 instead of sharing files with
64890         it. Add getnline.c to lib_SOURCES.
64891         * MODULES.html.sh (func_all_modules): Add getndelim2.
64892
64893 2003-07-18  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/getndelim2.m4: New file.
64896         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64897         invoke gl_PREREQ_GETNDELIM2.
64898         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64899         gl_PREREQ_GETNDELIM2.
64900         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64901         gl_GETNDELIM2.
64902
64903 2003-07-18  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/getndelim2.h: New file.
64906         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64907         getndelim2.h.
64908         (getndelim2): Make non-static. Change return type to ssize_t.
64909         * lib/getline.h: Change argument names.
64910         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64911         * lib/getnline.c: Include getndelim2.h.
64912
64913 2003-07-18  Andreas Schwab  <schwab@suse.de>
64914
64915         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64916
64917 2003-07-17  Karl Berry  <karl@gnu.org>
64918
64919         * config/config.sub: update from prep.
64920
64921 2003-07-17  Bruno Haible  <bruno@clisp.org>
64922
64923         * modules/getnline: New file.
64924         * modules/getline: Add lib/getndelim2.c to source file list.
64925         * MODULES.html.sh (func_all_modules): Add getnline.
64926
64927 2003-07-17  Bruno Haible  <bruno@clisp.org>
64928
64929         * m4/getnline.m4: New file.
64930
64931 2003-07-17  Bruno Haible  <bruno@clisp.org>
64932
64933         * m4/Makefile.am.in: Remove file.
64934         * m4/Makefile.am: Remove file.
64935         * m4/Makefile.in: Remove file.
64936
64937 2003-07-17  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/getnline.h: New file.
64940         * lib/getnline.c: New file.
64941         * lib/getndelim2.c: New file, extracted from getline.c.
64942         (getndelim2): Renamed from getdelim2, with added nmax argument.
64943         * lib/getline.c: Include getndelim2.c.
64944         (getdelim2): Moved out to getndelim2.c.
64945         (getline, getdelim): Update.
64946
64947 2003-07-17  Bruno Haible  <bruno@clisp.org>
64948
64949         * lib/Makefile.am: Remove file.
64950         * lib/Makefile.in: Remove file.
64951
64952 2003-07-17  Bruno Haible  <bruno@clisp.org>
64953
64954         * configure.in: Remove file.
64955         * Makefile.in: Remove file.
64956
64957 2003-07-17  Bruno Haible  <bruno@clisp.org>
64958
64959         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64960
64961 2003-07-16  Karl Berry  <karl@gnu.org>
64962
64963         * config/srclist-update: was running fixlicense twice, which caused
64964                 texinfo.tex to be nullified for some reason.  Simplify,
64965                 $gplsrc is no longer needed as far as I can see?
64966
64967 2003-07-16  Jim Meyering  <jim@meyering.net>
64968
64969         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64970
64971 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64972
64973         * config/srclist.txt: Get the following files from gettext-runtime/intl
64974         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64975         ref-del.sin.  From Bruno Haible.
64976         * config/srclist-update (fixfile): Change grep pattern again, since the
64977         previous fix didn't work (there was another trailing $).  Use
64978         '[$]' to escape the $s.
64979
64980 2003-07-15  Karl Berry  <karl@gnu.org>
64981
64982         * lib/vasnprintf.c: update from gettext.
64983
64984 2003-07-15  Karl Berry  <karl@gnu.org>
64985
64986         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64987         gets expanded when surrounded by '$'.
64988
64989 2003-07-15  Jim Meyering  <jim@meyering.net>
64990
64991         * modules/save-cwd: Don't depend on error.  From Derek Price.
64992
64993 2003-07-15  Jim Meyering  <jim@meyering.net>
64994
64995         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64996
64997 2003-07-14  Simon Josefsson  <jas@extundo.com>
64998
64999         * modules/mempcpy: New file.
65000         * MODULES.html.sh (func_all_modules): Add mempcpy.
65001
65002 2003-07-14  Simon Josefsson  <jas@extundo.com>
65003
65004         * m4/mempcpy.m4: New file.
65005
65006 2003-07-14  Simon Josefsson  <jas@extundo.com>
65007
65008         * lib/mempcpy.h: New file.
65009         * lib/mempcpy.c: New file.
65010
65011 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65012
65013         * modules/getdate, modules/posixtm: Depend on mktime.
65014
65015 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65016
65017         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65018         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65019         unicodeio.c, unicodeio.h, unlocked-io.h:
65020         Switch from LGPL to GPL.
65021
65022 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65023
65024         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65025         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65026         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65027         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65028         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65029         updated automatically by ../config/srclist-update.  This changes
65030         their license from LPGL to GPL.
65031
65032 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65033
65034         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65035         assumed to refer to the root of the most recent stable gettext version.
65036         * config/srclistvars.sh: Add defaults for eggert.
65037         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65038         Match "This program" as well as "The program".  This is needed
65039         for gettext.
65040
65041 2003-07-14  Jim Meyering  <jim@meyering.net>
65042
65043         Don't emit diagnostics.  Let callers do that.
65044         * lib/save-cwd.c: Don't include "error.h".
65045         (save_cwd): Don't call error.  Ensure that errno is valid
65046         when returning nonzero.
65047
65048         * lib/save-cwd.h (restore_cwd): Update prototype.
65049         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65050         Simplify.  Don't call error upon failure.  Let callers do that.
65051         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65052         when auditing is enabled.  But don't bother updating the #if.
65053
65054 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65055
65056         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65057         it breaks C++ compilation.
65058         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65059
65060 2003-07-10  Simon Josefsson  <jas@extundo.com>
65061
65062         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65063
65064 2003-07-10  Jim Meyering  <jim@meyering.net>
65065
65066         * m4/clock_time.m4: Remove trailing blank.
65067         * m4/intmax_t.m4: Likewise.
65068
65069 2003-07-10  Jim Meyering  <jim@meyering.net>
65070
65071         * lib/vasnprintf.c: Remove trailing blanks.
65072         Make cpp indentation consistent.
65073
65074 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65075
65076         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65077         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65078         Switch from LGPL to GPL.
65079
65080 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65081
65082         * config/srclist.txt: Sort sublists.  Add
65083         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65084         that differ from gnulib for one reason or another; we'd like this list
65085         to be smaller but for now let's document what we have.
65086
65087 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65088
65089         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65090         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65091         and sweeter "eval x=$x".
65092         * config/srclist.txt: Get lib/argp* from glibc.
65093
65094 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65095
65096         * lib/mktime.c: Fix some boundary cases and remove need for floating
65097         point.
65098
65099         Issue a compile-time diagnostic if time_t is floating point, or if
65100         two's complement arithmetic is not in effect, or if arithmetic
65101         right shift does not propagate the sign.  These assumptions were
65102         all in the original code but they weren't checked.
65103
65104         (TIME_T_MIDPOINT, verify): New macros.
65105         (__isleap): Remove; it has integer overflow problems.
65106         (leapyear): New function, without those problems.
65107         (ydhms_tm_diff): Remove; splitting into two parts.
65108         (ydhms_diff): New function, containing the arithmetic part of
65109         the old ydhms_tm_diff function.  Issue a compile-time
65110         diagnostic if we are not using C99 integer division.
65111         Avoid casts when possible.
65112         (guess_time_tm): New function, containing the checking part of
65113         the old ydhms_tm_diff function.  Return the new value, rather than
65114         the difference between it and the old.  Accept a new argument T
65115         so that *T specifies the old value.  Check for overflow in the result.
65116
65117         (__mktime_internal): Use a time_t offset, not a long int offset.
65118         This undoes the 2003-06-04 change, which is no longer needed now
65119         that we have better overflow checking.
65120         (localtime_offset): Likewise.
65121
65122         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65123         and long are 64-bit but int is only 32-bit.
65124         (ydhms_diff): Use long int to store year1 and yday1.
65125         Issue a compile-time diagnostic if long int is not wide enough.
65126
65127         (__mktime_internal): Use long int to store adjusted year and yday.
65128         Use plain C rather than preprocessor commands, if that doesn't
65129         affect efficiency.
65130         Check for overflow (and try to repair) after each probe
65131         rather than checking only at the very end.  This avoids some bugs
65132         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65133         does not equal GMT offset at maximum time).
65134         Use integer to check for overflow rather than floating point; this
65135         is more portable to non-IEEE hosts, and is a tad faster.
65136         When we detect that we are oscillating between two values,
65137         don't check whether tm_isdst has the requested value, since
65138         we already know the answer.  When tm_isdst has the wrong value,
65139         use a different heuristic to find the right one, based on the
65140         extreme values actually observed in practice in tz2003a,
65141         rather than the (overly optimistic) "previous 3 calendar quarters".
65142
65143         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65144         "T const" to accommodate glibc style.
65145         (check_result): Use less-confusing report format.  "long" -> "long int.
65146         (main): Likewise.
65147         Don't loop if the iteration overflows time_t.
65148         Allow a negative step in the iteration.
65149
65150 2003-07-06  Karl Berry  <karl@gnu.org>
65151
65152         * config/depcomp: update from automake.
65153         * config/config.sub: update from prep.
65154
65155 2003-07-03  Karl Berry  <karl@gnu.org>
65156
65157         * config/config.guess: update from prep.
65158
65159 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65160
65161         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65162         xreadlink.c now includes it unconditionally.
65163
65164 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65165
65166         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65167         having it depend on HAVE_SYS_TYPES_H.
65168
65169 2003-07-01  Bruno Haible  <bruno@clisp.org>
65170
65171         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65172         <sys/types.h> should be sufficient.
65173         Reported by Paul Eggert.
65174
65175 2003-06-26  Karl Berry  <karl@gnu.org>
65176
65177         * config/depcomp: update from automake.
65178
65179 2003-06-26  Bruno Haible  <bruno@clisp.org>
65180
65181         * modules/human: Depend on module stdbool.
65182
65183 2003-06-25  Bruno Haible  <bruno@clisp.org>
65184
65185         * modules/readlink: New file.
65186         * modules/xreadlink: Depend on it.
65187         * MODULES.html.sh (func_all_modules): Add readlink.
65188
65189 2003-06-25  Bruno Haible  <bruno@clisp.org>
65190
65191         * m4/readlink.m4: New file.
65192
65193 2003-06-25  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/readlink.c: New file.
65196
65197 2003-06-22  Karl Berry  <karl@gnu.org>
65198
65199         * config/srclist.txt: update mkinstalldirs from automake.
65200         * config/mkinstalldirs: update.
65201
65202 2003-06-22  Bruno Haible  <bruno@clisp.org>
65203
65204         Portability to mingw32.
65205         * m4/ssize_t.m4: New file, from GNU gettext.
65206         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65207         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65208
65209 2003-06-22  Bruno Haible  <bruno@clisp.org>
65210
65211         * modules/safe-read: Add m4/ssize_t.m4.
65212         * modules/xreadlink: Add m4/ssize_t.m4.
65213
65214 2003-06-20  Bruno Haible  <bruno@clisp.org>
65215
65216         Assume C89, so PARAMS isn't needed.
65217         * lib/unicodeio.h (PARAMS): Remove.
65218         * lib/unicodeio.c: Don't use PARAMS.
65219
65220 2003-06-18  Karl Berry  <karl@gnu.org>
65221
65222         * config/config.{guess,sub}: update from prep.
65223
65224 2003-06-18  Jim Meyering  <jim@meyering.net>
65225
65226         Merge changes from coreutils.
65227         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65228         Remove explicit declarations of xmalloc and realloc.
65229         Include xalloc.h.
65230         (read_utmp): Remove anachronistic cast of xmalloc.
65231
65232 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65233
65234         Assume C89, so PARAMS isn't needed.
65235         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65236         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65237         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65238         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65239         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65240         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65241         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65242         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65243         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65244         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65245         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65246         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65247         no longer needed. Anyway, config.h should always be included before any
65248         other file.
65249
65250 2003-06-11  Simon Josefsson  <jas@extundo.com>
65251
65252         * modules/sysexits: New file.
65253         * MODULES.html.sh (func_all_modules): Add sysexits.
65254
65255 2003-06-11  Simon Josefsson  <jas@extundo.com>
65256
65257         * lib/sysexit_.h: New file.
65258
65259 2003-06-11  Derek Price  <derek@ximbiot.com>
65260
65261         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65262         necessary.
65263
65264 2003-06-11  Bruno Haible  <bruno@clisp.org>
65265
65266         * m4/sysexits.m4: New file.
65267
65268 2003-06-10  Simon Josefsson  <jas@extundo.com>
65269
65270         * lib/argp.h: New file, from glibc.
65271         * lib/argp-ba.c: New file, from glibc.
65272         * lib/argp-eexst.c: New file, from glibc.
65273         * lib/argp-fmtstream.c: New file, from glibc.
65274         * lib/argp-fmtstream.h: New file, from glibc.
65275         * lib/argp-fs-xinl.c: New file, from glibc.
65276         * lib/argp-help.c: New file, from glibc.
65277         * lib/argp-namefrob.h: New file, from glibc.
65278         * lib/argp-parse.c: New file, from glibc.
65279         * lib/argp-pv.c: New file, from glibc.
65280         * lib/argp-pvh.c: New file, from glibc.
65281         * lib/argp-xinl.c: New file, from glibc.
65282
65283 2003-06-10  Simon Josefsson  <jas@extundo.com>
65284
65285         * modules/strchrnul: New file.
65286
65287 2003-06-10  Simon Josefsson  <jas@extundo.com>
65288
65289         * modules/argp: New file.
65290
65291 2003-06-10  Simon Josefsson  <jas@extundo.com>
65292
65293         * m4/strchrnul.m4: New file.
65294
65295 2003-06-10  Simon Josefsson  <jas@extundo.com>
65296
65297         * lib/strchrnul.h: New file.
65298         * lib/strchrnul.c: New file.
65299
65300 2003-06-10  Bruno Haible  <bruno@clisp.org>
65301
65302         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65303
65304 2003-06-07  Karl Berry  <karl@gnu.org>
65305
65306         * config/config.{guess,sub}: update from prep.
65307
65308 2003-06-07  Jim Meyering  <jim@meyering.net>
65309
65310         * modules/strtod: Use $(...) notation, not @...@ for
65311         AC_REPLACE'd variables.
65312         * modules/localcharset: Likewise.
65313
65314 2003-06-07  Jim Meyering  <jim@meyering.net>
65315
65316         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65317         in place of my name in the copyright comment.
65318         Remove definition and uses of __P.
65319
65320         From coreutils.
65321         * lib/stat.c: Don't declare xmalloc explicitly.
65322         Instead, include "xalloc.h".
65323         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65324         xrealloc, and xcalloc return values.
65325         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65326         Improve comment.
65327         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65328
65329 2003-06-07  Bruno Haible  <bruno@clisp.org>
65330
65331         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65332         avoid AC_CONFIG_LINKS.
65333         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65334         fnmatch.h, to avoid AC_CONFIG_LINKS.
65335         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65336
65337 2003-06-07  Bruno Haible  <bruno@clisp.org>
65338
65339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65340         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65341         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65342         directory.
65343         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65344         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65345         directory.
65346
65347 2003-06-06  Jim Meyering  <jim@meyering.net>
65348
65349         Merge from coreutils.
65350         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65351         Consolidate declarations and initializations of *_base* locals.
65352
65353         Merge from coreutils.
65354         This avoids a core dump on systems without GNU putenv,
65355         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65356         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65357         (unsetenv): New static function, from GNU libc.
65358         (rpl_putenv): Use it.
65359
65360         * lib/modechange.c: Remove trailing blanks.
65361
65362         Merge from coreutils.
65363         * lib/fsusage.c: Remove declaration of statfs.
65364         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65365
65366         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65367
65368 2003-06-06  Jim Meyering  <jim@meyering.net>
65369
65370         * lib/stdbool_.h: Renamed from stdbool.h.in.
65371
65372 2003-06-06  Jim Meyering  <jim@meyering.net>
65373             Bruno Haible  <bruno@clisp.org>
65374
65375         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65376         Adjust Makefile.am snippet not to redirect directly to target.
65377         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65378
65379 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65380
65381         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65382         mismatch, look in future quarters as well as past.  This fixes a
65383         bug when processing fall-backwards gaps immediately after a long
65384         period of daylight-saving time.
65385
65386         * lib/mktime.c: Assume freestanding C89 or better.
65387         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65388         (__P): Remove; not used.
65389         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65390         (mktime, not_equal_tm, print_tm, check_result,
65391         main): Use prototypes.  Use const * where appropriate.
65392         (main): Fix typo in testing code that uncovered by above changes.
65393         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65394
65395 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65396
65397         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65398         locale.h, localeconv.  This merges changes from coreutils.
65399
65400         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65401         It can be removed after the next Autoconf is released.
65402         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65403         needed.
65404
65405 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65406
65407         * lib/mktime.c: Fix Debian bug 177940
65408         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65409         (localtime_offset): Now long int, not time_t, because we want it
65410         to be guaranteed to be signed.  All uses changed.
65411         (__mktime_internal): If overflow would occur when adding offset,
65412         don't add it.
65413
65414         Merge 'human' changes from coreutils.  Rewrite to support
65415         locale-specific notations like thousands separators.
65416         * lib/human.c: Simplify authorship notice.
65417         Include human.h immediately after config.h.
65418         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65419         <limits.h>: Do not include, since human.h does.
65420         (SIZE_MAX, UINTMAX_MAX): New macros.
65421         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65422         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65423         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65424         (power_letter): Renamed from suffixes.
65425         (generate_suffix_backwards): Remove.
65426         (adjust_value): Now takes int style (because of human.h changes)
65427         and long double value (for greater precision on some platforms).
65428         (group_number): New function.
65429         (human_readable): Use it.  Use integer options, not enum.
65430         Put the options before the sizes in the arg list.
65431         Support all the new options.
65432         The old human_readable function has been removed;
65433         use inttostr.h instead.
65434         (human_readable, default_block_size, humblock):
65435         Use uintmax_t, not int, for block sizes.
65436         (human_readable_inexact, block_size_types): Remove.
65437         (block_size_opts): New constant.
65438         (human_options): Renamed from human_block_size, with new signature
65439         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65440         * lib/human.h: Add copyright and authorship notice.
65441         Include <limits.h> and <stdbool.h> unconditionally.
65442         (PARAMS): Remove.  All uses removed.
65443         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65444         (enum human_inexact_style): Remove tag; now a nameless enum.
65445         (human_floor, human_ceiling, human_round_to_even): Now have
65446         values 2, 0, 1 rather than -1, 1, 0.
65447         (human_group_digits, human_suppress_point_zero, human_autoscale,
65448         human_base_1024, human_SI, human_B): New constants.
65449         (human_readable_inexact, human_block_size): Remove.
65450         (human_readable): Size args are now uintmax_t, not int.
65451         (human_options): New decl.
65452
65453         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65454         unnecessary now that we assume C89 or better.  This change
65455         imported from coreutils.
65456
65457         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65458         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65459         in the 2003-05-30 sync from glibc.
65460
65461         .h files should stand alone, but we shouldn't include <sys/types.h>
65462         if we can get away with just <stddef.h>.
65463
65464         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65465         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65466         rather than <sys/types.h>, as we merely need size_t.
65467         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65468         to get size_t.
65469         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65470         Include <stdio.h>, to get FILE.
65471         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65472         memcasecmp.h has included <stddef.h> and all we need is size_t.
65473         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65474         our interface, instead of including <sys/types.h>
65475
65476 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65477
65478         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65479         now, as glibc mktime is buggy on non-glibc systems.
65480
65481 2003-06-03  Karl Berry  <karl@gnu.org>
65482
65483         * config/config.sub: update from prep.
65484
65485 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65486
65487         [from coreutils]
65488         Fix some minor time-related bugs with POSIX time arguments.
65489         Some valid time stamps were being rejected (notably -1, and
65490         time stamps before 1900 on 64-bit hosts).  And some invalid
65491         time stamps were being accepted, e.g. September 31.
65492
65493         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65494         that we can return (time_t) -1 successfully.
65495         * lib/posixtm.c: Likewise.
65496         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65497         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65498         (t): Remove static var.
65499         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65500         of static var.  All uses changed.
65501         (year): Do not reject years before 1900; they can occur with
65502         64-bit time_t.
65503         (posix_time_parse): Do not check for out-of-range components;
65504         that is now the caller's responsibility, since our checks were
65505         only approximations.
65506         (posixtime): Use mktime to check for out-of-range components,
65507         since it knows them exactly.
65508         If mktime returns (time_t) -1, check whether an error actually occurred
65509         by invoking localtime on -1.
65510         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65511         posixtime failures better.
65512         Improve the test data (in comments only).
65513
65514 2003-06-02  Karl Berry  <karl@gnu.org>
65515
65516         * config/mkinstalldirs (version): new variable.
65517         (--version): new option.
65518         (usage): improve message.
65519
65520 2003-05-30  Karl Berry  <karl@gnu.org>
65521
65522         * lib/mktime.c: update from libc.
65523
65524 2003-05-30  Bruno Haible  <bruno@clisp.org>
65525
65526         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65527         * config/config.rpath: Upgrade to gettext-0.12.1.
65528
65529 2003-05-30  Bruno Haible  <bruno@clisp.org>
65530
65531         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65532         * m4/nls.m4: New file, from gettext-0.12.1.
65533         * m4/po.m4: New file, from gettext-0.12.1.
65534         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65535
65536 2003-05-30  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65539         * lib/localcharset.h: Likewise.
65540         * lib/localcharset.c: Likewise.
65541
65542 2003-05-29  Karl Berry  <karl@gnu.org>
65543
65544         * config/config.rpath: update from gettext.
65545
65546 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65547
65548         Assume the headers required for C89 freestanding compilers.
65549         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65550         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65551         * m4/human.m4 (gl_HUMAN): Likewise.
65552         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65553         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65554         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65555         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65556         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65557         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65558
65559 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65560
65561         Assume the headers required for C89 freestanding compilers.
65562         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65563         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65564         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65565         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65566         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65567         define, since <limits.h> is guaranteed to do that.
65568         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65569         * lib/exclude.c: Include <stdbool.h> unconditionally.
65570         * lib/tempname.c: Include <stddef.h> unconditionally.
65571         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65572         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65573         <stddef.h> does that.
65574         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65575         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65576         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65577         needed.
65578         * lib/xstrtol.c: Likewise.
65579         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65580         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65581
65582         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65583         warnings on some platforms.
65584
65585         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65586         arbitrarily.
65587
65588 2003-05-26  Jim Meyering  <jim@meyering.net>
65589
65590         Merge in a change from coreutils:
65591         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65592         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65593         that condition, rather than `-1' which is slightly misleading.
65594         Change the name of the cache variable to have the gl_ prefix.
65595         Prompted by a patch from Richard Dawe for DJGPP.
65596
65597 2003-05-24  Karl Berry  <karl@gnu.org>
65598
65599         * config/config.guess: update from prep.
65600
65601 2003-05-22  Karl Berry  <karl@gnu.org>
65602
65603         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65604
65605 2003-05-20  Karl Berry  <karl@gnu.org>
65606
65607         * config/config.guess: update from prep.
65608
65609 2003-05-18  Karl Berry  <karl@gnu.org>
65610
65611         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65612         might actually be set by the user.
65613
65614         * config/depcomp, install-sh, mdate-sh: update from automake.
65615
65616 2003-05-17  Bruno Haible  <bruno@clisp.org>
65617
65618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65619         invalid expansion for AC_EGREP_CPP.
65620         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65621         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65622         Suggested by Akim Demaille <akim@epita.fr> in
65623         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65624
65625 2003-05-12  Jim Meyering  <jim@meyering.net>
65626
65627         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65628         the space-padded-by-default conversion specifiers, %e, %k, %l.
65629
65630 2003-05-12  Bruno Haible  <bruno@clisp.org>
65631
65632         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65633         the string is longer than 4 KB.
65634
65635 2003-05-11  Karl Berry  <karl@gnu.org>
65636
65637         * config/config.{guess,sub}: update from prep.
65638
65639 2003-05-09  Bruno Haible  <bruno@clisp.org>
65640
65641         * modules/error: Add m4/strerror_r.m4 to file list.
65642
65643 2003-05-03  Bruno Haible  <bruno@clisp.org>
65644
65645         Upgrade to Unicode-4.0.
65646         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65647         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65648         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65649         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65650         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65651         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65652         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65653         Change width of U+E0100..U+E01EF from 1 to 0.
65654
65655 2003-04-25  Jim Meyering  <jim@meyering.net>
65656
65657         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65658         of type size_t, not int.
65659
65660 2003-04-25  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/copy-file.c: Include <stddef.h>, for size_t.
65663
65664 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65665
65666         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65667         code which expansion is under static control.  Patch imported from
65668         Akim Demaille's patch to Bison; see
65669         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65670
65671 2003-04-14  Bruno Haible  <bruno@clisp.org>
65672
65673         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65674
65675 2003-04-11  Jim Meyering  <jim@meyering.net>
65676
65677         Merge changes from Coreutils.
65678
65679         2003-03-22  Jim Meyering  <jim@meyering.net>
65680
65681         * lib/strftime.c (widen): Cast alloca return value to proper type.
65682
65683         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65684
65685         From GNU libc.
65686         * lib/strftime.c (my_strftime): Handle very large width
65687         specifications for numeric values correctly.  Improve checks for
65688         overflow.
65689
65690         2003-01-19  Jim Meyering  <jim@meyering.net>
65691
65692         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65693         definitions.
65694         (nl_get_alt_digit) [! defined my_strftime]: Define.
65695         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65696         _nl_get_alt_digit and _nl_get_walt_digit.
65697
65698         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65699         libc. These changes have no effect outside of _LIBC.
65700
65701 2003-04-10  Bruno Haible  <bruno@clisp.org>
65702
65703         * modules/findprog: New file.
65704         * MODULES.html.sh (func_all_modules): Add it.
65705
65706 2003-04-10  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/findprog.m4: New file.
65709         * m4/eaccess.m4: New file.
65710
65711 2003-04-10  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/findprog.h: New file, from GNU gettext.
65714         * lib/findprog.c: New file, from GNU gettext.
65715
65716 2003-04-05  Jim Meyering  <jim@meyering.net>
65717
65718         Merge changes from Coreutils.
65719
65720         * lib/exclude.h (PARAMS): Remove definition and uses.
65721         * lib/exclude.c: Remove uses of `PARAMS'.
65722
65723         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65724         Add test-cases for DOS filenames. Declare program_name.
65725         (main): Set up program_name.  Patch by Rich Dawe.
65726
65727         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65728         error from mntctl.
65729         Use mntctl's return value to drive the entry-processing loop, since
65730         we can't rely on the value of the vmt_length member in the last
65731         entry.  On some systems doing so could result in exhausting
65732         virtual memory.  Based in part on a patch from Mike Jetzer.
65733
65734 2003-04-04  Bruno Haible  <bruno@clisp.org>
65735
65736         * modules/linebreak: New file.
65737         * MODULES.html.sh (func_all_modules): Add it.
65738
65739 2003-04-04  Bruno Haible  <bruno@clisp.org>
65740
65741         * m4/linebreak.m4: New file.
65742
65743 2003-04-04  Bruno Haible  <bruno@clisp.org>
65744
65745         * lib/linebreak.h: New file, from GNU gettext.
65746         * lib/linebreak.c: New file, from GNU gettext with slight
65747         modifications.
65748         * lib/lbrkprop.h: New file, from GNU gettext.
65749
65750 2003-04-03  Bruno Haible  <bruno@clisp.org>
65751
65752         * modules/utf8-ucs4: New file.
65753         * modules/utf16-ucs4: New file.
65754         * modules/ucs4-utf8: New file.
65755         * modules/ucs4-utf16: New file.
65756         * MODULES.html.sh (func_all_modules): Add them.
65757
65758 2003-04-03  Bruno Haible  <bruno@clisp.org>
65759
65760         * m4/utf-ucs4.m4: New file.
65761         * m4/ucs4-utf.m4: New file.
65762
65763 2003-04-03  Bruno Haible  <bruno@clisp.org>
65764
65765         * lib/utf8-ucs4.h: New file, from GNU gettext.
65766         * lib/utf16-ucs4.h: New file, from GNU gettext.
65767         * lib/ucs4-utf8.h: New file, from GNU gettext.
65768         * lib/ucs4-utf16.h: New file, from GNU gettext.
65769
65770 2003-04-02  Bruno Haible  <bruno@clisp.org>
65771
65772         * modules/binary-io: New file.
65773         * MODULES.html.sh (func_all_modules): Add it.
65774
65775 2003-04-02  Bruno Haible  <bruno@clisp.org>
65776
65777         * lib/binary-io.h: New file, from GNU gettext.
65778
65779 2003-04-01  Bruno Haible  <bruno@clisp.org>
65780
65781         * modules/pathname: New file.
65782         * MODULES.html.sh (func_all_modules): Add it.
65783
65784 2003-04-01  Bruno Haible  <bruno@clisp.org>
65785
65786         * lib/pathname.h: New file, from GNU gettext.
65787         * lib/concatpath.c: New file, from GNU gettext.
65788
65789 2003-03-30  Bruno Haible  <bruno@clisp.org>
65790
65791         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65792
65793 2003-03-30  Bruno Haible  <bruno@clisp.org>
65794
65795         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65796         function chown() doesn't exist.
65797
65798 2003-03-28  Bruno Haible  <bruno@clisp.org>
65799
65800         * modules/copy-file: New file.
65801         * MODULES.html.sh (func_all_modules): Add it.
65802
65803 2003-03-28  Bruno Haible  <bruno@clisp.org>
65804
65805         * m4/copy-file.m4: New file.
65806
65807 2003-03-28  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/copy-file.h: New file, from GNU gettext.
65810         * lib/copy-file.c: New file, from GNU gettext.
65811
65812 2003-03-18  Jim Meyering  <jim@meyering.net>
65813
65814         * lib/quote.c (quote_n): Fix typo in comment.
65815
65816 2003-03-18  Bruno Haible  <bruno@clisp.org>
65817
65818         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65819         checking.
65820         * m4/onceonly_2_57.m4: Likewise.
65821
65822 2003-03-17  Bruno Haible  <bruno@clisp.org>
65823
65824         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65825         (m4_quote): Remove macro.
65826         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65827
65828 2003-03-14  Jim Meyering  <jim@meyering.net>
65829
65830         Merge changes from Coreutils.
65831         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65832         to be const, in order to avoid warnings.
65833         (obstack_room): Likewise.
65834         (obstack_empty_p): Likewise.
65835
65836 2003-03-14  Bruno Haible  <bruno@clisp.org>
65837
65838         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65839         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65840
65841 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65842
65843         Merge changes from Bison.
65844         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65845         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65846         when compiling Bison 1.875's `bitset bset = obstack_alloc
65847         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65848         * lib/hash.c: Include <stdbool.h> unconditionally.
65849
65850 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65851
65852         * m4/onceonly.m4 (m4_quote): New macro.
65853         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65854         Quote AC_FOREACH variable-expansions properly.
65855
65856 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65857
65858         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65859
65860 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65861
65862         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65863         Reported by Bruce Becker; see:
65864         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65865
65866 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65867             Bruno Haible  <bruno@clisp.org>
65868
65869         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65870         Reported by John Hughes, see
65871         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65872
65873 2003-02-20  Bruno Haible  <bruno@clisp.org>
65874
65875         * MODULES.html.sh (func_all_modules): Add poll.
65876
65877 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65878
65879         * modules/poll: New file.
65880
65881 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65882
65883         * lib/poll_.h: New file.
65884         * lib/poll.c: New file.
65885
65886 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65887
65888         * m4/poll.m4: New file.
65889
65890 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65891
65892         * modules/mathl: New file.
65893
65894 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65895
65896         * lib/mathl.h: New file.
65897         * lib/acosl.c: New file.
65898         * lib/asinl.c: New file.
65899         * lib/atanl.c: New file.
65900         * lib/ceill.c: New file.
65901         * lib/cosl.c: New file.
65902         * lib/expl.c: New file.
65903         * lib/floorl.c: New file.
65904         * lib/frexpl.c: New file.
65905         * lib/ldexpl.c: New file.
65906         * lib/logl.c: New file.
65907         * lib/sincosl.c: New file.
65908         * lib/sinl.c: New file.
65909         * lib/sqrtl.c: New file.
65910         * lib/tanl.c: New file.
65911         * lib/trigl.c: New file.
65912         * lib/trigl.h: New file.
65913
65914 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65915
65916         * m4/mathl.m4: New file.
65917
65918 2003-02-18  Bruno Haible  <bruno@clisp.org>
65919
65920         * MODULES.html.sh (func_all_modules): Add mathl.
65921
65922 2003-02-17  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/mkdtemp: New module.
65925         * MODULES.html.sh (func_all_modules): Add it.
65926
65927 2003-02-17  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65930
65931 2003-02-17  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/mkdtemp.h: New file, from GNU gettext.
65934         * lib/mkdtemp.c: New file, from GNU gettext.
65935
65936 2003-02-02  Jim Meyering  <jim@meyering.net>
65937
65938         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65939         e.g. glibc-2.2.93.
65940
65941 2003-01-31  Bruno Haible  <bruno@clisp.org>
65942
65943         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65944         'rpl_rename'.
65945         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65946         'rpl_strnlen'.
65947         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65948         'rpl_strtod'.
65949         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65950         'rpl_utime'.
65951
65952 2003-01-31  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/rename.c: #undef rename before defining rpl_rename.
65955         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65956
65957 2003-01-30  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/vasnprintf, modules/vasprintf: New modules.
65960         * MODULES.html.sh (func_all_modules): Add them.
65961
65962 2003-01-30  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/signed.m4: New file, from GNU gettext.
65965         * m4/longdouble.m4: New file, from GNU gettext.
65966         * m4/wchar_t.m4: New file, from GNU gettext.
65967         * m4/wint_t.m4: New file, from GNU gettext.
65968         * m4/vasnprintf.m4: New file.
65969         * m4/vasprintf.m4: New file.
65970
65971 2003-01-30  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/printf-args.h: New file, from GNU gettext.
65974         * lib/printf-args.c: New file, from GNU gettext.
65975         * lib/printf-parse.h: New file, from GNU gettext.
65976         * lib/printf-parse.c: New file, from GNU gettext.
65977         * lib/vasnprintf.h: New file, from GNU gettext.
65978         * lib/vasnprintf.c: New file, from GNU gettext.
65979         * lib/asnprintf.c: New file, from GNU gettext.
65980         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65981         * lib/vasprintf.c: New file, from GNU gettext.
65982         * lib/asprintf.c: New file, from GNU gettext.
65983
65984 2003-01-29  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/stpncpy: New module.
65987         * MODULES.html.sh (func_all_modules): Add it.
65988
65989 2003-01-29  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/stpncpy.m4: New file.
65992
65993 2003-01-29  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65996         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65997
65998 2003-01-28  Bruno Haible  <bruno@clisp.org>
65999
66000         * modules/c-ctype: New module.
66001         * MODULES.html.sh (func_all_modules): Add it.
66002
66003 2003-01-28  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66006         Paul Eggert.
66007         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66008         Paul Eggert.
66009
66010 2003-01-27  Bruno Haible  <bruno@clisp.org>
66011
66012         * modules/xsetenv: New module.
66013         * MODULES.html.sh (func_all_modules): Add it.
66014
66015 2003-01-27  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/xsetenv.h: New file, from GNU gettext.
66018         * lib/xsetenv.c: New file, from GNU gettext.
66019
66020 2003-01-23  Jim Meyering  <jim@meyering.net>
66021
66022         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66023         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66024
66025 2003-01-23  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/minmax: New module.
66028         * MODULES.html.sh (func_all_modules): Add it.
66029
66030 2003-01-23  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66033         Eggert.
66034
66035 2003-01-22  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/exit: New module.
66038         * MODULES.html.sh (func_all_modules): Add it.
66039
66040 2003-01-22  Bruno Haible  <bruno@clisp.org>
66041
66042         * lib/exit.h: New file, from GNU gettext.
66043
66044 2003-01-19  Bruno Haible  <bruno@clisp.org>
66045
66046         * gnulib-tool: Recognize option --extract-maintainer.
66047         (func_get_maintainer): New function.
66048         * modules/*: Add Maintainer entry.
66049
66050 2003-01-16  Jim Meyering  <jim@meyering.net>
66051
66052         * m4/regex.m4: The `regex' struct is both input and output.
66053         Initialize it before each use.  Patch by Tim Waugh.
66054
66055 2003-01-16  Bruno Haible  <bruno@clisp.org>
66056
66057         * MODULES.html.sh: Add a table of contents. Add the module name as
66058         leftmost column. Add hyperlinks.
66059
66060 2003-01-15  Bruno Haible  <bruno@clisp.org>
66061
66062         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66063
66064 2003-01-15  Bruno Haible  <bruno@clisp.org>
66065
66066         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66067         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66068         suffix.
66069
66070 2003-01-15  Bruno Haible  <bruno@clisp.org>
66071
66072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66073
66074 2003-01-15  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66077         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66078
66079 2003-01-14  Jim Meyering  <jim@meyering.net>
66080
66081         * lib/same.c (same_name): Tweak a comment.
66082
66083 2003-01-14  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66086         when a string comparison is sufficient.
66087
66088 2003-01-14  Bruno Haible  <bruno@clisp.org>
66089
66090         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66091         'unsigned int'.
66092
66093 2003-01-14  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/hash-pjw.c: Add comment about low quality of this function.
66096
66097 2003-01-13  Bruno Haible  <bruno@clisp.org>
66098
66099         * modules/stpcpy: Distribute lib/stpcpy.h.
66100         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66101
66102 2003-01-13  Bruno Haible  <bruno@clisp.org>
66103
66104         * modules/*: Add a description.
66105         * modules/strpbrk: Fix Makefile.am snippet.
66106         * modules/strtoimax: Fix dependencies.
66107         * modules/strtoumax: Likewise.
66108
66109 2003-01-13  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66112         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66113         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66114
66115 2003-01-13  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool (func_create_testdir): Store config/* files in the main
66118         directory.
66119         * config.rpath: Move to ...
66120         * config/config.rpath: ... here.
66121         * modules/gettext: Contains config/config.rpath, not config.rpath.
66122         * modules/iconv: Likewise.
66123
66124 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66125
66126         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66127         to avoid collisions with libcurses and libreadline.
66128
66129         * m4/getstr.m4: Remove.
66130         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66131
66132 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66133
66134         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66135         to avoid collisions with libcurses and libreadline.
66136
66137         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66138         * lib/getstr.h, getstr.c: Remove.
66139         * lib/getline.c: Include "getline.h", to check interface.
66140         Move body of old getstr.c here: this defines MIN_CHUNK and
66141         declares getdelim2, which is renamed from getstr.
66142         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66143
66144         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66145         All uses changed.
66146         * lib/linebuffer.h: Likewise.
66147         (readline): Remove backward-compatibility macro.
66148
66149 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66150
66151         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66152         to avoid collisions with libcurses and libreadline.
66153         * getstr: Remove.
66154         * MODULES.html.sh: Remove getstr.
66155         * modules/getline: Depend on unlocked-io, not getstr.
66156
66157 2003-01-12  Jim Meyering  <jim@meyering.net>
66158
66159         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66160
66161 2003-01-10  Bruno Haible  <bruno@clisp.org>
66162
66163         * modules/alloca: Change Makefile.am requirements. Simplify Include
66164         requirements. Add lib/alloca_.h to file list.
66165
66166 2003-01-10  Bruno Haible  <bruno@clisp.org>
66167
66168         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66169
66170 2003-01-10  Bruno Haible  <bruno@clisp.org>
66171
66172         * lib/alloca_.h: New file.
66173         * lib/getdate.y: Unconditionally include alloca.h.
66174         * lib/makepath.c: Likewise.
66175         * lib/setenv.c: Likewise.
66176         * lib/userspec.c: Likewise.
66177
66178 2003-01-09  Karl Berry  <karl@gnu.org>
66179
66180         * MODULES.html.sh: include `dirname $0` in PATH, to find
66181         gnulib-tool.
66182
66183 2003-01-09  Bruno Haible  <bruno@clisp.org>
66184
66185         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66186         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66187
66188 2003-01-09  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66191
66192 2003-01-09  Bruno Haible  <bruno@clisp.org>
66193
66194         * lib/stdbool.h.in: New file.
66195
66196 2003-01-09  Bruno Haible  <bruno@clisp.org>
66197
66198         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66199         * MODULES.html.sh: Likewise.
66200
66201 2003-01-08  Jim Meyering  <jim@meyering.net>
66202
66203         * lib/full-write.c: Undefine and define-away `const' after inclusion
66204         of errno.h, not before.  Suggestion from Bruno Haible.
66205
66206 2003-01-08  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/full-read: Depend on full-write.
66209
66210 2003-01-08  Bruno Haible  <bruno@clisp.org>
66211
66212         * lib/safe-read.c: Include specification header first, to ensure its
66213         selfcontainedness.
66214         * lib/full-write.c: Likewise.
66215
66216 2003-01-07  Jim Meyering  <jim@meyering.net>
66217
66218         * lib/full-write.c: Rework so that it may serve to define full_read,
66219         too.
66220         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66221
66222 2003-01-07  Bruno Haible  <bruno@clisp.org>
66223
66224         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66225         <inttypes.h>.
66226         * lib/xstrtol.h: Likewise.
66227         * lib/xstrtoimax.c: Likewise.
66228         * lib/xstrtoumax.c: Likewise.
66229         * lib/human.h: Likewise.
66230
66231         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66232         on systems that have <inttypes.h> but not <stdint.h>.
66233
66234 2003-01-07  Bruno Haible  <bruno@clisp.org>
66235
66236         * MODULES.html.sh: Add copyright notice.
66237         (missed_files): Omit CVS directory entries.
66238         (func_module): Make it work with sed-3.02.
66239         * MODULES.txt: Remove file.
66240
66241 2003-01-06  Jim Meyering  <jim@meyering.net>
66242
66243         * lib/version-etc.c: Update year in translatable copyright string.
66244
66245 2003-01-03  Karl Berry  <karl@gnu.org>
66246
66247         * config/config.{guess,sub}: update from prep.
66248
66249 2003-01-02  Karl Berry  <karl@gnu.org>
66250
66251         * doc/COPYING.DOC: belatedly updated to 1.2.
66252
66253 2003-01-01  Karl Berry  <karl@gnu.org>
66254
66255         * gnulib-tool (func_verify_module): report module name $module in
66256         error message, not $1.
66257         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66258         be created, only if it doesn't exist.
66259         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66260
66261 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66262
66263         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66264
66265 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66266
66267         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66268         memcmp if strcoll doesn't work.
66269
66270 2002-12-31  Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66273         nonempty.
66274
66275 2002-12-31  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/memcoll.c (STRCOLL): New macro.
66278         (memcoll): Use it.
66279
66280 2002-12-31  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/localcharset.h: New file.
66283         * lib/localcharset.c: Include it.
66284         * lib/unicodeio.c: Likewise.
66285
66286 2002-12-31  Bruno Haible  <bruno@clisp.org>
66287
66288         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66289         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66290
66291 2002-12-31  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/getline.h: Include <stddef.h>, for size_t.
66294
66295         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66296         * lib/unicodeio.c: Don't include <stddef.h>.
66297
66298 2002-12-31  Bruno Haible  <bruno@clisp.org>
66299
66300         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66301         HAVE_TM_ZONE.
66302
66303 2002-12-24  Karl Berry  <karl@gnu.org>
66304
66305         * config/config.guess: update from prep.
66306
66307 2002-12-24  Bruno Haible  <bruno@clisp.org>
66308
66309         General infrasructure.
66310         * m4/README: Rewritten.
66311         * m4/onceonly.m4: New file.
66312         * m4/onceonly_2_57.m4: New file.
66313
66314         Module atexit.
66315         * m4/atexit.m4: New file.
66316
66317         Module strtod.
66318         * m4/strtod.m4: New file.
66319
66320         Module strtol.
66321         * m4/strtol.m4: New file.
66322
66323         Module strtoul.
66324         * m4/strtoul.m4: New file.
66325
66326         Module memchr.
66327         * m4/memchr.m4: New file.
66328
66329         Module memcmp.
66330         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66331         (jm_FUNC_MEMCMP): Invoke it.
66332
66333         Module memcpy.
66334         * m4/memcpy.m4: New file.
66335
66336         Module memmove.
66337         * m4/memmove.m4: New file.
66338
66339         Module memset.
66340         * m4/memset.m4: New file.
66341
66342         Module strcspn.
66343         * m4/strcspn.m4: New file.
66344
66345         Module strpbrk.
66346         * m4/strpbrk.m4: New file.
66347
66348         Module strstr.
66349         * m4/strstr.m4: New file.
66350
66351         Module strerror.
66352         * m4/strerror.m4: New file.
66353
66354         Module mktime.
66355         * m4/mktime.m4: Renamed from jm-mktime.m4.
66356         (gl_PREREQ_MKTIME): New macro.
66357         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66358
66359         Module malloc.
66360         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66361         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66362         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66363
66364         Module realloc.
66365         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66366         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66367         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66368
66369         Module strftime.
66370         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66371         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66372         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66373         gl_TM_GMTOFF.
66374         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66375
66376         Module xalloc.
66377         * m4/xalloc.m4: New file.
66378
66379         Module alloca.
66380         * m4/alloca.m4: New file.
66381
66382         Module putenv.
66383         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66384         (jm_FUNC_PUTENV): Invoke it.
66385
66386         Module setenv.
66387         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66388         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66389         when invoked twice.
66390         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66391         gt_FUNC_SETENV.
66392
66393         Module memrchr.
66394         * m4/memrchr.m4: New file.
66395
66396         Module stpcpy.
66397         * m4/stpcpy.m4: New file.
66398
66399         Module strcase.
66400         * m4/strcase.m4: New file.
66401
66402         Module strdup.
66403         * m4/strdup.m4: New file.
66404
66405         Module strnlen.
66406         * m4/strnlen.m4: New file.
66407
66408         Module strndup.
66409         * m4/strndup.m4: New file.
66410
66411         Module xstrtod.
66412         * m4/xstrtod.m4: New file.
66413
66414         Module xstrtol.
66415         * m4/xstrtol.m4: New file.
66416
66417         Module getdate.
66418         * m4/getdate.m4: New file.
66419
66420         Module unlocked-io.
66421         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66422         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66423         * m4/jm-glibc-io.m4n: Remove file.
66424
66425         Module long-options.
66426         * m4/long-options.m4: New file.
66427
66428         Module md5.
66429         * m4/md5.m4: New file.
66430
66431         Module sha.
66432         * m4/sha.m4: New file.
66433
66434         Module getstr.
66435         * m4/getstr.m4: New file.
66436
66437         Module getline.
66438         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66439         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66440         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66441         simply getline. Infoke gl_PREREQ_GETLINE.
66442
66443         Module obstack.
66444         * m4/obstack.m4: New file.
66445
66446         Module hash.
66447         * m4/hash.m4: New file.
66448
66449         Module readtokens.
66450         * m4/readtokens.m4: New file.
66451
66452         Module strverscmp.
66453         * m4/strverscmp.m4: New file.
66454
66455         Module stdbool.
66456         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66457         OSF/1.
66458
66459         Module strtoll.
66460         * m4/strtoll.m4: New file.
66461
66462         Module strtoull.
66463         * m4/strtoull.m4: New file.
66464
66465         Module strtoimax.
66466         * m4/strtoimax.m4: New file.
66467
66468         Module strtoumax.
66469         * m4/strtoumax.m4: New file.
66470
66471         Module xstrtoimax.
66472         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66473         jm_AC_PREREQ_XSTRTOIMAX.
66474         Moved the strtol prerequisites to strtol.m4.
66475         Moved the strtoll prerequisites to strtoll.m4.
66476         Moved the strtoimax prerequisites to strtoimax.m4.
66477
66478         Module xstrtoumax.
66479         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66480         jm_AC_PREREQ_XSTRTOUMAX.
66481         Moved the strtoul prerequisites to strtoul.m4.
66482         Moved the strtoull prerequisites to strtoull.m4.
66483         Moved the strtoumax prerequisites to strtoumax.m4.
66484
66485         Module chown.
66486         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66487         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66488
66489         Module dup2.
66490         * m4/dup2.m4: New file.
66491
66492         Module ftruncate.
66493         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66494         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66495
66496         Module getgroups.
66497         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66498         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66499
66500         Module gettimeofday.
66501         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66502         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66503         gl_PREREQ_GETTIMEOFDAY.
66504
66505         Module mkdir.
66506         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66507         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66508
66509         Module mkstemp.
66510         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66511         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66512         jm_AC_TYPE_UINTMAX_T.
66513         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66514
66515         Module stat.
66516         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66517         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66518
66519         Module lstat.
66520         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66521         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66522
66523         Module timespec.
66524         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66525         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66526         * m4/st_mtim.m4: Indentation.
66527
66528         Module nanosleep.
66529         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66530         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66531         gl_PREREQ_NANOSLEEP.
66532
66533         Module regex.
66534         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66535         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66536         (gl_REGEX): New macro.
66537
66538         Module rename.
66539         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66540         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66541
66542         Module rmdir.
66543         * m4/rmdir.m4: New file.
66544
66545         Module utime.
66546         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66547         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66548         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66549
66550         Module dirname.
66551         * m4/dirname.m4: New file.
66552
66553         Module getopt.
66554         * m4/getopt.m4: New file.
66555
66556         Module unistd-safer.
66557         * m4/unistd-safer.m4: New file.
66558
66559         Module fnmatch.
66560         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66561         declaration.
66562         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66563         (gl_FUNC_FNMATCH_POSIX): New macro.
66564         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66565         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66566         simply fnmatch.
66567
66568         Module exclude.
66569         * m4/exclude.m4: New file.
66570
66571         Module human.
66572         * m4/human.m4: New file.
66573
66574         Module acl.
66575         * m4/acl.m4: Nop.
66576
66577         Module backupfile.
66578         * m4/backupfile.m4: New file.
66579         * m4/d-ino.m4: Indentation.
66580
66581         Module fsusage.
66582         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66583         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66584         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66585
66586         Module dirfd.
66587         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66588         requirements.
66589
66590         Module euidaccess.
66591         * m4/euidaccess.m4: New file.
66592
66593         Module file-type.
66594         * m4/file-type.m4: New file.
66595
66596         Module fileblocks.
66597         * m4/fileblocks.m4: New file.
66598
66599         Module filemode.
66600         * m4/filemode.m4: New file.
66601
66602         Module isdir.
66603         * m4/isdir.m4: New file.
66604
66605         Module lchown.
66606         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66607         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66608
66609         Module makepath.
66610         * m4/makepath.m4: New file.
66611
66612         Module modechange.
66613         * m4/modechange.m4: New file.
66614
66615         Module mountlist.
66616         * m4/mountlist.m4: New file.
66617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66618         Indentation.
66619
66620         Module path-concat.
66621         * m4/path-concat.m4: New file.
66622
66623         Module pathmax.
66624         * m4/pathmax.m4: New file.
66625
66626         Module same.
66627         * m4/same.m4: New file.
66628
66629         Module save-cwd.
66630         * m4/save-cwd.m4: New file.
66631
66632         Module savedir.
66633         * m4/savedir.m4: New file.
66634
66635         Module xgetcwd.
66636         * m4/xgetcwd.m4: New file.
66637         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66638
66639         Module xreadlink.
66640         * m4/xreadlink.m4: New file.
66641
66642         Module safe-read.
66643         * m4/safe-read.m4: New file.
66644
66645         Module safe-write.
66646         * m4/safe-write.m4: New file.
66647
66648         Module closeout.
66649         * m4/closeout.m4: New file.
66650
66651         Module stdio-safer.
66652         * m4/stdio-safer.m4: New file.
66653
66654         Module getpass.
66655         * m4/getpass.m4: New file.
66656
66657         Module getugroups.
66658         * m4/getugroups.m4: New file.
66659
66660         Module group-member.
66661         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66662         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66663
66664         Module idcache.
66665         * m4/idcache.m4: New file.
66666
66667         Module userspec.
66668         * m4/userspec.m4: New file.
66669
66670         Module gettime.
66671         * m4/clock_time.m4: New file.
66672         * m4/gettime.m4: New file.
66673
66674         Module settime.
66675         * m4/settime.m4: New file.
66676
66677         Module posixtm.
66678         * m4/posixtm.m4: New file.
66679
66680         Module gethostname.
66681         * m4/gethostname.m4: New file.
66682
66683         Module canon-host.
66684         * m4/canon-host.m4: New file.
66685
66686         Module gettext.
66687         * m4/codeset.m4: New file, from gettext-0.11.5.
66688         * m4/gettext.m4: New file, from gettext-0.11.5.
66689         * m4/glibc21.m4: New file, from gettext-0.11.5.
66690         * m4/iconv.m4: New file, from gettext-0.11.5.
66691         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66692         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66693         * m4/inttypes.m4: New file, from gettext-0.11.5.
66694         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66695         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66696         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66697         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66698         * m4/lib-link.m4: New file, from gettext-0.11.5.
66699         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66700         * m4/progtest.m4: New file, from gettext-0.11.5.
66701         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66702         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66703         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66704
66705         Module localcharset.
66706         * m4/localcharset.m4: New file.
66707
66708         Module hard-locale.
66709         * m4/hard-locale.m4: New file.
66710
66711         Module mbswidth.
66712         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66713         onceonly macros.
66714         * m4/mbrtowc.m4: Add comment.
66715
66716         Module memcasecmp.
66717         * m4/memcasecmp.m4: New file.
66718
66719         Module memcoll.
66720         * m4/memcoll.m4: New file.
66721
66722         Module unicodeio.
66723         * m4/unicodeio.m4: New file.
66724
66725         Module rpmatch.
66726         * m4/rpmatch.m4: New file.
66727
66728         Module yesno.
66729         * m4/yesno.m4: New file.
66730
66731         Module exitfail.
66732         * m4/exitfail.m4: New file.
66733
66734         Module c-stack.
66735         * m4/c-stack.m4 (gl_C_STACK): New macro.
66736         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66737
66738         Module error.
66739         * m4/error.m4 (gl_ERROR): New macro.
66740         (jm_PREREQ_ERROR): Use onceonly macros.
66741
66742         Module fatal.
66743         * m4/fatal.m4: New file.
66744
66745         Module getloadavg.
66746         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66747         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66748
66749         Module getpagesize.
66750         * m4/getpagesize.m4: New file.
66751
66752         Module getusershell.
66753         * m4/getusershell.m4: New file.
66754
66755         Module physmem.
66756         * m4/physmem.m4: New file.
66757
66758         Module posixver.
66759         * m4/posixver.m4: New file.
66760
66761         Module quotearg.
66762         * m4/quotearg.m4: New file.
66763
66764         Module quote.
66765         * m4/quote.m4: New file.
66766
66767         Module readutmp.
66768         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66769
66770         Module sig2str.
66771         * m4/sig2str.m4: New file.
66772
66773         Other.
66774         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66775         ulonglong.m4.
66776         * m4/intmax_t.m4: New file.
66777         * m4/d-type.m4: Indentation.
66778         * m4/jm-macros.m4: Update.
66779         * m4/prereq.m4 (jm_PREREQ): Update.
66780         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66781         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66782         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66783         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66784         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66785         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66786         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66787         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66788         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66789         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66790         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66791         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66792         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66793         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66794         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66795         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66796         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66797         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66798         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66799
66800 2002-12-24  Bruno Haible  <bruno@clisp.org>
66801
66802         * MODULES.txt: Update according to m4/ changes.
66803
66804         Module gettext.
66805         * config.rpath: New file, from gettext-0.11.5.
66806
66807         * modules/*: New module descriptions.
66808         * gnulib-tool: New file.
66809         * MODULES.html.sh: New file.
66810
66811 2002-12-21  Karl Berry  <karl@gnu.org>
66812
66813         * doc/fdl.texi: update to version 1.2.
66814
66815 2002-12-19  Karl Berry  <karl@gnu.org>
66816
66817         * config/config.guess: update from prep.
66818
66819 2002-12-18  Bruno Haible  <bruno@clisp.org>
66820
66821         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66822         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66823
66824 2002-12-17  Bruno Haible  <bruno@clisp.org>
66825
66826         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66827         stdlib.h, string.h.
66828
66829 2002-12-17  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/canon-host.c (strdup): Remove unused declaration.
66832
66833         * lib/fsusage.c: Include full_read.h.
66834         (get_fs_usage): Use full_read instead of safe_read.
66835
66836         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66837
66838 2002-12-12  Karl Berry  <karl@gnu.org>
66839
66840         * config/config.guess: update from prep.
66841
66842 2002-12-11  Bruno Haible  <bruno@clisp.org>
66843
66844         * m4/setenv.m4: New file, from gettext-0.11.5.
66845
66846 2002-12-11  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66849         not unsetenv().
66850         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66851         modifications:
66852
66853         2002-12-11  Bruno Haible  <bruno@clisp.org>
66854
66855                 * setenv.c (alloca): Fall back to malloc.
66856                 (freea): New macro.
66857                 (setenv): Use freea() to free memory allocated with alloca().
66858
66859         2002-11-13  Bruno Haible  <bruno@clisp.org>
66860
66861                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66862                 function declarations.
66863                 * unsetenv.c (unsetenv): Likewise.
66864
66865         2002-03-04  Bruno Haible  <bruno@clisp.org>
66866
66867                 Portability to AIX 4.3.3.
66868                 * unsetenv.c: New file, extracted from setenv.c.
66869                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66870
66871         2001-12-20  Bruno Haible  <bruno@clisp.org>
66872
66873                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66874                 use malloc instead. For SunOS 4.
66875
66876         2001-12-11  Bruno Haible  <bruno@clisp.org>
66877
66878                 * setenv.c: Declare alloca.
66879                 (compar_fn_t): New typedef.
66880                 (KNOWN_VALUE, STORE_VALUE): Use it.
66881
66882         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66883         setenv.h.
66884
66885 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66886
66887         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66888         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66889         Choose values that are less likely to collide with system fnmatch
66890         options.
66891         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66892         defined (e.g., a pure POSIX system).
66893         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66894         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66895
66896 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66897
66898         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66899         a pain in practice to deal with generated m4 files.  This change
66900         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66901
66902         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66903         and jm-glibc-io.m4, as they are no longer a special case.
66904         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66905         kludge and the auto-generation stuff.  Check only whether the
66906         functions are declared, not whether they exist, since older hosts
66907         that don't declare the functions can't use the optimization anyway.
66908
66909 2002-12-06  Jim Meyering  <jim@meyering.net>
66910
66911         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66912
66913         Merge in changes from libc's misc/error.c, in preparation
66914         for the merge of gnulib's changes back into libc.
66915
66916         * lib/error.c (_): Define only if not already defined.
66917         Move definition to follow all #include directives.
66918         Include unlocked-io.h only if !_LIBC.
66919         [_LIBC]: Include <libio/libioP.h>.
66920         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66921         (fflush): Tweak definition to use INTUSE.
66922         (putc): Define.
66923
66924 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66925
66926         * lib/alloca.c [defined emacs]: Include "lisp.h".
66927         (xalloc_die) [defined emacs]: New macro.
66928         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66929         [! defined emacs]: Include <xalloc.h>.
66930         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66931         (pointer): Typedef to POINTER_TYPE *.
66932         (malloc): Remove decl; we now always use xmalloc.
66933         (alloca): Use old-style definition, since Emacs needs this.
66934         Check for arithmetic overflow when computing combined size.
66935
66936 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66937
66938         Do not generate unlocked-io.h automatically, since it's easier to
66939         maintain it by hand.
66940
66941         * lib/unlocked-io.h: New file, from GNU diffutils,
66942         but with proper copyright notice and attribution.
66943         * lib/gen-uio: Remove.
66944         * lib/Makefile.am: Add copyright notice.
66945         (libfetish_a_SOURCES): Add unlocked-io.h.
66946         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66947         (DISTCLEANFILES, io_functions): Remove macros.
66948         (EXTRA_DIST): Remove gen_uio.
66949         (unlocked-io.h): Remove rule.
66950
66951 2002-12-04  Jim Meyering  <jim@meyering.net>
66952
66953         Reflect the fact that stat.c and lstat.c are no longer generated.
66954         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66955         (DISTCLEANFILES): Likewise.
66956         (EXTRA_DIST): Likewise.
66957         (all_local): Don't depend on stat.c or lstat.c.
66958         (stat.c, lstat.c): Remove rules.
66959         (EXTRA_DIST): Remove xstat.in.
66960
66961         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66962         * lib/stat.c: New file.  Contents mostly from xstat.in.
66963         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66964         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66965
66966         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66967         too.
66968         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66969
66970 2002-12-03  Jim Meyering  <jim@meyering.net>
66971
66972         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66973         but not semantics, to minimize the differences between these two files.
66974         (safe_read): Change comment to mention SAFE_READ_ERROR.
66975
66976         * lib/safe-read.c (IS_EINTR): Define.
66977         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66978
66979 2002-12-02  Jim Meyering  <jim@meyering.net>
66980
66981         * lib/safe-read.c (EINTR): Define.
66982         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66983         (INT_MAX): Provide fallback.
66984         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66985
66986         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66987
66988 2002-12-02  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66991         Define, taken from safe-read.c.
66992         (INT_MAX): Provide fallback.
66993         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66994         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66995
66996         * lib/safe-read.c (EINTR): Remove definition.
66997         (safe_read): Don't use EINTR if it is absent.
66998
66999 2002-12-01  Jim Meyering  <jim@meyering.net>
67000
67001         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67002         zero.
67003         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67004
67005 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67006
67007         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67008         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67009         with `if (! (value < limit)) abort ();', for readability.
67010
67011 2002-11-26  Karl Berry  <karl@gnu.org>
67012
67013         * lib/strdup.c: copy from libc again, with jim's ok.
67014         * lib/.cppi-disable: re-add strdup.c
67015
67016 2002-11-25  Karl Berry  <karl@gnu.org>
67017
67018         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67019         instead of "strtol.c".
67020
67021 2002-11-25  Karl Berry  <karl@gnu.org>
67022
67023         * config/install-sh: update from automake for variable quoting, $0 in
67024         error msgs, etc.
67025
67026         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67027         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67028         entry.
67029
67030 2002-11-25  Jim Meyering  <jim@meyering.net>
67031
67032         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67033
67034 2002-11-24  Karl Berry  <karl@gnu.org>
67035
67036         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67037         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67038
67039 2002-11-24  Jim Meyering  <jim@meyering.net>
67040
67041         Update from coreutils:
67042
67043         * lib/mktime.c: Merge in changes from libc.
67044
67045         Avoid a link-time failure on some Linux systems.
67046         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67047         (otherwise).
67048         (__mon_yday): Declare with the STATIC attribute.
67049         (__mktime_internal): Likewise.
67050         Based on a report from Greg Schafer.
67051
67052 2002-11-23  Jim Meyering  <jim@meyering.net>
67053
67054         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67055         Use `unsigned', not `int', as type of index.
67056
67057         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67058
67059         * lib/fsusage.c: Remove unneeded parentheses around operands of
67060         `defined'.
67061
67062 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67063
67064         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67065         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67066         so that we can be included first.
67067         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67068         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67069         No need to include stddef.h or sys/types.h any more.
67070         Surround local include files with "", not "<>".
67071         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67072         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67073         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67074         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67075         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67076         (ISPRINT): Remove; no longer needed now that we assume C89.
67077
67078         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67079         Preserve errno.
67080
67081         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67082         quotearg_char): Use SIZE_MAX rather than
67083         (size_t) -1 when we are talking about "infinity".
67084
67085         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67086
67087 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67088
67089         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67090         hint that one should use `if (! x) abort ();' rather than `assert
67091         (x);', and anyway it's one less thing to worry about configuring.
67092         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67093         hash_rehash, hash_insert): Use abort rather than assert.
67094
67095 2002-11-22  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/safe-read.h: Assume C89. Add comments.
67098         (safe_read): Change return type to size_t.
67099         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67100         byte counts > SSIZE_MAX correctly.
67101         * lib/safe-write.h: New file.
67102         * lib/safe-write.c: New file.
67103         * lib/full-read.h: New file.
67104         * lib/full-read.c: New file.
67105         * lib/full-write.h: Assume C89. Add comments.
67106         * lib/full-write.c: Include safe-write.h.
67107         (full_write): Rewritten to use safe_write.
67108         Suggested by Jim Meyering and Paul Eggert.
67109
67110 2002-11-21  Jim Meyering  <jim@meyering.net>
67111
67112         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67113
67114         Merge in changes from the coreutils.
67115
67116         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67117         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67118         <stdint.h>.
67119         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67120         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67121         int.  Work more efficiently if X is the same width as uintmax_t.
67122         Do not compare X to -1, to avoid bogus compiler warning.
67123         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67124         Don't assume that f_frsize and f_bsize are the same type.
67125
67126         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67127         warning on FreeBSD.
67128
67129         * lib/makepath.c (make_path): Restore umask *before* creating the final
67130         component.
67131         (make_path): Minor reformatting.
67132
67133         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67134         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67135         HAVE_MALLOC/HAVE_REALLOC.
67136
67137         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67138         dummy ones.  At least on GNU/Linux systems, `auto' means something
67139         else.
67140         From Michael Stone.
67141
67142 2002-11-21  Bruno Haible  <bruno@clisp.org>
67143
67144         Remove case insensitive option matching.
67145         * lib/argmatch.h (argcasematch): Remove declaration.
67146         (ARGCASEMATCH): Remove macro.
67147         (__xargmatch_internal): Remove case_sensitive argument.
67148         (XARGMATCH): Update.
67149         (XARGCASEMATCH): Remove macro.
67150         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67151         case_sensitive argument.
67152         (argcasematch): Remove function.
67153         (__xargmatch_internal): Remove case_sensitive argument.
67154         (main): Use XARGMATCH instead of XARGCASEMATCH.
67155
67156         * lib/xmalloc.c: Change compile-time error message. Add comment about
67157         required autoconf version.
67158
67159 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67160
67161         Merge argmatch cleanups from Bison.  Assume C89.
67162
67163         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67164         Include stdlib.h, for EXIT_FAILURE.
67165         Always include <string.h>, since we assume C89.
67166         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67167         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67168         Include <stddef.h> instead, since it's all we need for size_t.
67169         (PARAMS): Remove.  All uses removed.
67170         (ARRAY_CARDINALITY): Do not bother to #undef.
67171         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67172         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67173         Remove unnecessary parentheses.
67174         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67175         Insert necessary parentheses.
67176         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67177         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67178
67179 2002-11-19  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67182         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67183
67184         * lib/mbswidth.h (PARAMS): Remove macro.
67185         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67186         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67187
67188         * lib/gcd.h (PARAMS): Remove macro.
67189         (gcd): Use ANSI C function declarations.
67190         * lib/gcd.c (gcd): Likewise.
67191
67192 2002-11-15  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/strcspn.c: Include <stddef.h>.
67195         (strcspn): Use ANSI C function declaration. Change return type to
67196         size_t. Use NULL.
67197         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67198         (strpbrk): Use NULL.
67199         * lib/strpbrk.h (PARAMS): Remove macro.
67200         (strpbrk): Use ANSI C function declaration.
67201         * lib/strstr.c: Don't include <sys/types.h>.
67202         * lib/strstr.h (PARAMS): Remove macro.
67203         (strstr): Use ANSI C function declarations.
67204
67205 2002-11-14  Karl Berry  <karl@gnu.org>
67206
67207         * config/mkinstalldirs: `do' on separate line, instead of
67208         `for var; do'.
67209
67210 2002-11-06  Bruno Haible  <bruno@clisp.org>
67211
67212         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67213         * lib/gcd.c (gcd): Likewise.
67214
67215 2002-11-05  Bruno Haible  <bruno@clisp.org>
67216
67217         * lib/gcd.h: New file, from gettext-0.11.5.
67218         * lib/gcd.c: New file, from gettext-0.11.5.
67219
67220 2002-11-05  Bruno Haible  <bruno@clisp.org>
67221
67222         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67223         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67224         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67225         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67226
67227         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67228         <libintl.h>.
67229         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67230         <libintl.h>.
67231
67232         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67233         * lib/human.c: Include gettext.h instead of <libintl.h>.
67234         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67235         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67236         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67237         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67238         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67239         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67240         (textdomain): Remove definition.
67241         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67242
67243         * lib/long-options.c: Remove include of <libintl.h> and definition of
67244         _.
67245         * lib/same.c: Remove include of <libintl.h> and definition of _.
67246
67247 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67248
67249         * lib/config.charset: A few additions for Solaris.
67250
67251 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67252
67253         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67254         * lib/localcharset.c (locale_charset): Declare as extern "C".
67255
67256 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67257
67258         * lib/config.charset: msdos in uk_UA uses CP1125.
67259
67260 2002-11-04  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67263         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67264         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67265         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67266         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67267
67268 2002-11-04  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/localcharset.c (locale_charset): Don't return an empty string.
67271
67272 2002-11-04  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67275         aliases.
67276
67277 2002-11-04  Bruno Haible  <bruno@clisp.org>
67278
67279         * lib/config.charset: Update for newest glibc. Add canonical names
67280         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67281
67282 2002-11-04  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/config.charset: Add support for NetBSD.
67285
67286 2002-11-04  Bruno Haible  <bruno@clisp.org>
67287
67288         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67289
67290 2002-11-01  Bruno Haible  <bruno@clisp.org>
67291
67292         * configure.in: Add AC_CONFIG_AUX_DIR call.
67293         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67294         test/Makefile.
67295         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67296
67297 2002-09-28  Karl Berry  <karl@gnu.org>
67298
67299         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67300         installed automake until the next release, since changes have been
67301         made.
67302
67303 2002-09-25  Karl Berry  <karl@gnu.org>
67304
67305         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67306         * lib/getopt*: copy from libc/posix.
67307         * lib/gettext.h: copy from gettext.
67308         * lib/.cppi-disable: add strdup.c, gettext.h.
67309
67310 2002-09-25  Karl Berry  <karl@gnu.org>
67311
67312         * config/srclist.txt: enable gettext.h check.
67313         * config/config.{guess,sub}: update from prep.
67314         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67315                 from automake 1.6.3.
67316         See srclist*.
67317
67318 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67319
67320         * regex.c (PATFETCH): Remove the translating fetch.
67321         (PATFETCH_RAW): Rename to PATFETCH.
67322         (set_image_of_range): New fun.
67323         (SET_RANGE_TABLE_WORK_AREA): Use it.
67324         (regex_compile): Don't translate the pattern chars so eagerly.
67325         Only do it when inserting an `exactn' bytecode or when handling
67326         a char-range.
67327         (mutually_exclusive_p): Avoid empty statement.
67328
67329 2002-07-06  Jim Meyering  <meyering@lucent.com>
67330
67331         * m4/README: Don't mention Makefile.am.in.
67332         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67333
67334 2002-07-01  Jim Meyering  <meyering@lucent.com>
67335
67336         * lib/c-stack.c: Include sys/time.h.
67337         From Volker Borchert.
67338
67339 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67340
67341         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67342
67343 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67344
67345         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67346         New macro.  Use it uniformly instead of
67347         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67348         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67349         reported by Vin Shelton.
67350
67351 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67352
67353         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67354         Do not assume SA_SIGINFO behavior.
67355         Bug reported by Jim Meyering on NetBSD 1.5.2.
67356
67357 2002-06-22  Jim Meyering  <meyering@lucent.com>
67358
67359         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67360         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67361
67362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67363         now that configure.ac uses AC_GNU_SOURCE.
67364         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67365         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67366
67367         Update to latest tools.  Suggestions from Paul Eggert.
67368         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67369         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67370         * m4/fnmatch.m4: Likewise.
67371         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67372         to AC_HEADER_STDBOOL
67373
67374 2002-06-22  Jim Meyering  <meyering@lucent.com>
67375
67376         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67377         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67378
67379 2002-06-22  Jim Meyering  <meyering@lucent.com>
67380
67381         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67382
67383         * lib/exitfail.c, exitfail.h: Likewise.
67384         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67385
67386         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67387         of fnmatch.h.
67388         (EXTRA_DIST): Add fnmatch_loop.c.
67389         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67390
67391         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67392         * lib/fnmatch.c: Update from diffutils-2.8.2.
67393         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67394         * lib/fnmatch.h: Remove file.
67395
67396 2002-06-21  Jim Meyering  <meyering@lucent.com>
67397
67398         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67399         * m4/mbrtowc.m4: Likewise.
67400
67401         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67402         * m4/mbswidth.m4: Reflect name change:
67403         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67405
67406         * m4/lib-link.m4: Update from gettext-0.11.2.
67407         * m4/gettext.m4: Likewise.
67408
67409         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67410         From Alfred M. Szmidt.
67411
67412 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67413
67414         * lib/file-type.h: Report an error if neither S_ISREG nor
67415         S_IFREG is defined, instead of using a test specific to glibc
67416         2.2.  This should be safe, since POSIX requires S_ISREG and
67417         Unix Version 7 had S_IFREG.  We don't need to check for
67418         <sys/types.h> since we don't use any symbols that it defines.
67419
67420 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67421
67422         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67423         $@-t, so that each temporary file name is unique and valid in the first
67424         8 characters, for operation under DOS.
67425
67426 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67427
67428         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67429
67430 2002-06-15  Jim Meyering  <meyering@lucent.com>
67431
67432         Work even with DJGPP 2.03, which lacks support for symlinks.
67433         From Richard Dawe.
67434         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67435         is defined.
67436         * lib/lchown.c (S_ISLNK): Likewise.
67437
67438 2002-06-15  Jim Meyering  <meyering@lucent.com>
67439
67440         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67441         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67442         have been included before this file.
67443
67444 2002-06-14  Jim Meyering  <meyering@lucent.com>
67445
67446         * lib/file-type.h: Use the version from diffutils-2.8.2.
67447         * lib/file-type.c: Likewise.
67448
67449 2002-06-07  Jim Meyering  <meyering@lucent.com>
67450
67451         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67452         They're needed at least for NetBSD 1.5.2.
67453         ($statxfs_includes): Include those same headers.
67454         ($statxfs_includes): Include sys/vfs.h if available.
67455         ($statxfs_includes): Likewise for sys/statvfs.h.
67456         Check for the following members in both structs statfs and statvfs:
67457         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67458
67459 2002-06-01  Jim Meyering  <meyering@lucent.com>
67460
67461         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67462         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67463
67464 2002-05-28  Jim Meyering  <meyering@lucent.com>
67465
67466         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67467         Reported by Volker Borchert.
67468
67469 2002-05-27  Jim Meyering  <meyering@lucent.com>
67470
67471         Fix a problem seen only on nonconforming systems whereby ls.c's
67472         use of localtime, and then of gettimeofday would cause trouble:
67473         the localtime call used to initialize rpl_gettimeofday's save
67474         mechanism would clobber ls's current local time information so
67475         that in any long listing the first file would always be listed
67476         with date 1970-01-01.  Analysis by Volker Borchert.
67477
67478         * lib/gettimeofday.c (localtime): Undefine.
67479         (rpl_localtime): New function.
67480
67481 2002-05-27  Jim Meyering  <meyering@lucent.com>
67482
67483         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67484         localtime.
67485
67486         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67487         use the replacement function; it wouldn't resolve at link time.
67488         Reported by Volker Borchert.
67489
67490 2002-05-22  Jim Meyering  <meyering@lucent.com>
67491
67492         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67493         file-type.h.
67494         * lib/file-type.h: New file.
67495         * lib/file-type.c (file_type): New file/function.  Extracted from
67496         diffutils.
67497
67498 2002-04-30  Jim Meyering  <meyering@lucent.com>
67499
67500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67501
67502 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67503
67504         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67505
67506 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67507
67508         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67509         Do not check for alloca.h (no longer used) or stdbool.h (was never
67510         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67511
67512 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67513
67514         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67515
67516 2002-04-29  Jim Meyering  <meyering@lucent.com>
67517
67518         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67519         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67520         Use AC_FUNC_STRNLEN here instead.
67521
67522         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67523         With autoconf-2.53a, it's part of AC_PROG_CC.
67524
67525 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67526
67527         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67529
67530 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67531
67532         * lib/sig2str.h, lib/sig2str.c: New files.
67533         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67534
67535 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67536
67537         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67538         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67539         of 127, since 64 is the largest conceivable number for ancient
67540         nonstandard hosts.
67541         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67542
67543 2002-04-28  Jim Meyering  <meyering@lucent.com>
67544
67545         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67546
67547 2002-04-24  Jim Meyering  <meyering@lucent.com>
67548
67549         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67550         (jm_PREREQ): Use it.
67551
67552         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67553         mach/mach.h fcntl.h.
67554         Check for this function: setlocale.
67555
67556 2002-04-24  Jim Meyering  <meyering@lucent.com>
67557
67558         * lib/gettext.h: New file, from Gettext.
67559         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67560         (libfetish_a_SOURCES): Add gettext.h.
67561
67562 2002-04-16  Jim Meyering  <meyering@lucent.com>
67563
67564         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67565         ut_pid, ut_id, ut_exit.
67566
67567 2002-04-16  Jim Meyering  <meyering@lucent.com>
67568
67569         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67570         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67571         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67572
67573 2002-04-12  Jim Meyering  <meyering@lucent.com>
67574
67575         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67576         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67577         existence of the getmntinfo function.  Needed for Darwin 5.3.
67578
67579         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67580         This is necessary at least on Darwin 5.3.
67581
67582         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67583         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67584         strnlen.o in the library, and that makes some versions of ranlib
67585         object.
67586
67587 2002-04-12  Jim Meyering  <meyering@lucent.com>
67588
67589         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67590
67591 2002-04-09  Jim Meyering  <meyering@lucent.com>
67592
67593         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67594         to be more precise.  Rather than saying we're checking whether the
67595         function `works', say what we're testing.
67596         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67597         Reported by Bruno Haible.
67598
67599 2002-03-10  Jim Meyering  <meyering@lucent.com>
67600
67601         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67602         Suggestion from Santiago Vila.
67603
67604 2002-03-08  Jim Meyering  <meyering@lucent.com>
67605
67606         * lib/rename.c: Mention that this wrapper is needed also on
67607         mips-dec-ultrix4.4 systems.
67608
67609 2002-03-02  Jim Meyering  <meyering@lucent.com>
67610
67611         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67612         not HAVE_CLOCK_SETTIME.
67613
67614 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67615
67616         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67617         Check for clock_settime.
67618
67619 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67620
67621         * lib/nanosleep.h: Rename to....
67622         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67623
67624         * lib/gettime.c: New file.
67625         * lib/settime.c: New file.
67626         * lib/stime.c: Remove.
67627
67628         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67629         timespec.h.  Remove nanosleep.h.
67630
67631 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67632
67633         * m4/acl.m4: New file.
67634         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67635         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67636
67637 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67638
67639         * lib/acl.c, lib/acl.h: New files.
67640         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67641
67642 2002-02-24  Jim Meyering  <meyering@lucent.com>
67643
67644         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67645         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67646         cause trouble.  Reported by Nelson Beebe.
67647
67648 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67649
67650         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67651         compilers that don't know that xalloc_die never returns.
67652
67653 2002-02-20  Jim Meyering  <meyering@lucent.com>
67654
67655         * lib/getdate.c: Regenerate using bison-1.33.
67656
67657 2002-02-17  Jim Meyering  <meyering@lucent.com>
67658
67659         * config/config.guess (main): Don't use `head -1'; it's no longer
67660         portable. Use `sed 1q' instead.
67661
67662 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67663
67664         * m4/codeset.m4: Upgrade to gettext-0.11.
67665         * m4/gettext.m4: Upgrade to gettext-0.11.
67666         * m4/glibc21.m4: Upgrade to gettext-0.11.
67667         * m4/iconv.m4: Upgrade to gettext-0.11.
67668         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67669         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67670         * m4/lib-ld.m4: New file, from gettext-0.11.
67671         * m4/lib-link.m4: New file, from gettext-0.11.
67672         * m4/lib-prefix.m4: New file, from gettext-0.11.
67673         * m4/progtest.m4: Upgrade to gettext-0.11.
67674
67675 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67676
67677         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67678         (jm_PREREQ): Use it.
67679
67680 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67681
67682         * lib/posixver.c, lib/posixver.h: New files.
67683         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67684
67685 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67686             Bruno Haible  <bruno@clisp.org>
67687
67688         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67689         (fwrite_success_callback): New declaration.
67690         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67691         print_unicode_char. Call failure callback instead of error.
67692         (fwrite_success_callback): New function.
67693         (exit_failure_callback): New function.
67694         (fallback_failure_callback): New function.
67695         (print_unicode_char): Call unicode_to_mb.
67696
67697 2002-01-26  Jim Meyering  <meyering@lucent.com>
67698
67699         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67700         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67701
67702 2002-01-26  Jim Meyering  <meyering@lucent.com>
67703
67704         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67705
67706 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67707
67708         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67709
67710 2002-01-22  Jim Meyering  <meyering@lucent.com>
67711
67712         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67713         Otherwise, some versions of automake would omit the rule that makes
67714         Makefile from Makefile.in.
67715
67716 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67717
67718         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67719         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67720         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67721         (memcoll): Set errno to zero if there is no error.
67722
67723         * lib/quotearg.c (quotearg_buffer_restyled):
67724         Fix bug with quoting buffers containing NUL when backslashing escapes.
67725         This bug was exposed by the other changes in this patch.
67726         (quotearg_n_options): New arg ARGSIZE.
67727         All callers changed.
67728         (quoting_options_from_style): New function.
67729         (quotearg_n_style): Use it.
67730         (quotearg_n_style_mem): New function.
67731
67732         * lib/quotearg.h (quotearg_n_style_mem): New function.
67733
67734 2002-01-19  Jim Meyering  <meyering@lucent.com>
67735
67736         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67737         Remove useless quotes: DF_PROG="df".
67738         * m4/strnlen.m4: New file.
67739
67740 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67741
67742         * lib/backupfile.c (ISDIGIT): Comment fix.
67743         * lib/getdate.y (ISDIGIT): Likewise.
67744         * lib/posixtm.c (ISDIGIT, year): Likewise.
67745         * lib/strverscmp.c (ISDIGIT): Likewise.
67746         * lib/userspec.c (ISDIGIT): Likewise.
67747
67748 2002-01-16  Jim Meyering  <meyering@lucent.com>
67749
67750         * lib/getdate.y: Add three semicolons, each just before a closing
67751         brace. Bison (as of version 1.31) no longer papers over that mistake.
67752
67753 2002-01-05  Jim Meyering  <meyering@lucent.com>
67754
67755         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67756
67757 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67758
67759         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67760         not silently exit merely because the output buffer happens to
67761         have nothing pending.
67762
67763 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67764
67765         See the big note in ../ChangeLog.
67766         * lib/human.c (suffixes): Prefer K to k for 1024.
67767         (generate_suffix_backwards): New function.
67768         (human_readable_inexact): Use it.
67769         * lib/xstrtol.c (__xstrtol): If there is no number but there
67770         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67771         Accept 'K' as well as 'k'.
67772
67773 2001-12-15  Jim Meyering  <meyering@lucent.com>
67774
67775         * lib/regex.h (__restrict_arr): Update from libc.
67776
67777         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67778         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67779         (STREQ): Define.
67780
67781 2001-12-14  Jim Meyering  <meyering@lucent.com>
67782
67783         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67784         Suggestion from Bruno Haible.
67785
67786 2001-12-10  Jim Meyering  <meyering@lucent.com>
67787
67788         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67789         xrealloc, Instead, include "xalloc.h".
67790         (initbuffer): Don't cast xmalloc return value to char*.
67791         (readline): Reword comment.
67792         Don't cast xrealloc return value to char*
67793         Return NULL, not 0.
67794
67795 2001-12-09  Jim Meyering  <meyering@lucent.com>
67796
67797         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67798         about `signed and unsigned type in conditional expression'.
67799         * lib/posixtm.c (posix_time_parse): Likewise.
67800
67801         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67802
67803         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67804         to avoid a pedantic warning.
67805
67806         * lib/getstr.c: Don't include assert.h.
67807         (getstr): Remove warning-evoking assertions.
67808         Return -1 if offset parameter is out of bounds.
67809         Change the type of a local from int to size_t.
67810
67811         * lib/strftime.c (my_strftime_localtime_r): Include this function
67812         definition in the `#if ! HAVE_TM_GMTOFF' block.
67813
67814         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67815         Include xalloc.h instead.
67816
67817 2001-12-02  Jim Meyering  <meyering@lucent.com>
67818
67819         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67820         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67821         included.
67822
67823         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67824         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67825
67826 2001-11-30  Akim Demaille  <akim@epita.fr>
67827
67828         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67829         before being defined.
67830
67831 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67832
67833         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67834         First arg is int, not unsigned.
67835         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67836         (SIZE_MAX, UINT_MAX): New macros.
67837         (quotearg_n_options): Abort if N is negative.
67838         Avoid overflow check on hosts where size_t is 64 bits and int
67839         is 32 bits, as overflow is impossible there.
67840         Fix off-by-one typo that caused unnecessary reallocation.
67841
67842 2001-11-27  Jim Meyering  <meyering@lucent.com>
67843
67844         * lib/tempname.c: Merge with version from libc.
67845         * lib/regex.c: Likewise.
67846
67847         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67848         systems for which STDC_HEADERS is 0, it was not included, resulting in
67849         a warning about an integer-to-pointer conversion problem with getenv.
67850         Reported by Volker Borchert.
67851
67852 2001-11-26  Jim Meyering  <meyering@lucent.com>
67853
67854         * lib/gtod.h: Remove file.
67855         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67856         * lib/gettimeofday.c: Don't include gtod.h.
67857         (GTOD_init): Remove function.
67858         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67859         Suggestion from Volker Borchert.
67860
67861 2001-11-23  Jim Meyering  <meyering@lucent.com>
67862
67863         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67864         it.
67865         * lib/hash.c (struct hash_table): Define it here instead.
67866
67867 2001-11-22  Jim Meyering  <meyering@lucent.com>
67868
67869         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67870
67871 2001-11-20  Jim Meyering  <meyering@lucent.com>
67872
67873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67874         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67875
67876 2001-11-19  Jim Meyering  <meyering@lucent.com>
67877
67878         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67879         directory.  Use "conftestXXXXXX" as the template.
67880         Suggestion from Paul Eggert.
67881
67882         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67883         immediately, so the test doesn't mistakenly hit the max-open-files
67884         limit.
67885
67886 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67887
67888         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67889         (TEMPORARIES): New macro.
67890         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67891         removes an artificial limitation (e.g. HP-UX 10.20, where
67892         TMP_MAX is 17576).
67893
67894 2001-11-18  Jim Meyering  <meyering@lucent.com>
67895
67896         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67897
67898 2001-11-18  Jim Meyering  <meyering@lucent.com>
67899
67900         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67901         on SunOS 4.
67902
67903         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67904         files will be created before anything else.
67905
67906 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67907
67908         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67909         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67910
67911 2001-11-17  Jim Meyering  <meyering@lucent.com>
67912
67913         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67914         Prompted by a report from Bob Proulx.
67915
67916         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67917         Instead, require UTILS_FUNC_MKSTEMP.
67918
67919 2001-11-17  Jim Meyering  <meyering@lucent.com>
67920
67921         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67922         Now, that's done as part of AC_FUNC_STRTOD.
67923
67924 2001-11-17  Jim Meyering  <meyering@lucent.com>
67925
67926         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67927         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67928         rather than group writable.  Patch by Juan F. Codagnone.
67929
67930         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67931         xrealloc, Instead, include "xalloc.h".
67932
67933         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67934         Remove explicit declarations of xmalloc, xrealloc,
67935         and xstrdup.  Instead, include "xalloc.h".
67936
67937         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67938         unlocked-io.h.
67939         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67940         Likewise.
67941         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67942
67943         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67944         Reported by Padraig Brady.
67945
67946         * lib/mkstemp.c: #undef mkstemp.
67947         Include config.h.
67948         (rpl_mkstemp): Rename from mkstemp.
67949         Protoize.
67950
67951 2001-11-16  Jim Meyering  <meyering@lucent.com>
67952
67953         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67954         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67955         determine the amount of total physical memory, use pstat_getstatic.
67956         HPUX-11 doesn't define _SC_PHYS_PAGES.
67957         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67958         If sysconf couldn't be used to determine the amount of available
67959         physical memory, use both pstat_getstatic and pstat_getdynamic.
67960         Based on a patch from Bob Proulx.
67961
67962 2001-11-10  Jim Meyering  <meyering@lucent.com>
67963
67964         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67965         (jm_PREREQ): Use it.
67966
67967 2001-11-09  Jim Meyering  <meyering@lucent.com>
67968
67969         * m4/jm-macros.m4: Require autoconf-2.52f.
67970         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67971         Use these AC_-prefixed names, not the AM_-prefixed ones.
67972
67973         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67974
67975 2001-11-05  Jim Meyering  <meyering@lucent.com>
67976
67977         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67978
67979 2001-11-04  Jim Meyering  <meyering@lucent.com>
67980
67981         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67982         $DEFS.
67983
67984 2001-11-03  Jim Meyering  <meyering@lucent.com>
67985
67986         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67987         of AC_DEFUN.
67988
67989         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67990         know the name of the variable in the macro definition.
67991
67992 2001-11-03  Jim Meyering  <meyering@lucent.com>
67993
67994         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67995         in argmatch_to_argument call.
67996
67997         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67998         argument.
67999
68000         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68001         e.g., a fault due to an attempt to free a NULL pointer.
68002
68003 2001-11-01  Jim Meyering  <meyering@lucent.com>
68004
68005         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68006         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68007
68008 2001-11-01  Jim Meyering  <meyering@lucent.com>
68009
68010         * lib/dirfd.c, lib/dirfd.h: New files.
68011         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68012
68013         * lib/hash.c (hash_print) [TESTING]: Clean up.
68014
68015 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68016
68017         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68018         to avoid a warning if -Wall.
68019
68020 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68021
68022         * README: New file
68023         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68024         (per RMS's instructions, this is now the canonical source)
68025         * lgpl/, gpl/: New directories.
68026
68027 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68028
68029         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68030
68031 2001-10-21  Jim Meyering  <meyering@lucent.com>
68032
68033         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68034         this code would end up calling gettext even in packages built
68035         with --disable-nls.
68036         * lib/getopt.c (_): Likewise.
68037         * lib/regex.c (_): Likewise.
68038
68039 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68040
68041         * m4/error.m4 (jm_PREREQ_ERROR):
68042         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68043         AC_FUNC_STRERROR_R does that.
68044         Check for strerror declaration.
68045
68046         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68047         are supposed to have them these days.
68048         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68049         Merge changes from latest Autoconf CVS.
68050         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68051         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68052         POSIX decided to standardize on the int flavor of strerror_r.
68053
68054 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68055
68056         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68057         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68058         Use strerror_r that is only a macro, even if it is not a function.
68059         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68060         (private_strerror): Use prototypes, not old-style function definition.
68061         (print_errno_message): New function.
68062         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68063         char*-flavored one.
68064         (error_tail, error, error_at_line): Use it.
68065
68066 2001-10-11  Jim Meyering  <meyering@lucent.com>
68067
68068         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68069         and quote_n (1, ... to avoid clobbering a buffer.
68070
68071 2001-10-05  Jim Meyering  <meyering@lucent.com>
68072
68073         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68074         hash-pjw.h.
68075         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68076         * lib/hash-pjw.h: New file.
68077
68078 2001-09-30  Jim Meyering  <meyering@lucent.com>
68079
68080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68081         `struct fsstat' has the `f_fstypename' member.
68082         Use that to define FS_TYPE, which is now used to make
68083         the getfsstat link test tighter.
68084
68085 2001-09-30  Jim Meyering  <meyering@lucent.com>
68086
68087         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68088         Include <sys/ucred.h>, for Apple Darwin.
68089         Include sys/mount.h and sys/fs_types.h only if available.
68090         (FS_TYPE): Define.
68091         (read_filesystem_list): Use FS_TYPE.
68092
68093 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68094
68095         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68096         a boolean context.
68097
68098 2001-09-29  Jim Meyering  <meyering@lucent.com>
68099
68100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68101         [one-argument getmntent function]): Include stdio.h before mntent.h.
68102         SunOS 4.1.x needs it for the declaration of `FILE'.
68103         Patch by Volker Borchert.
68104
68105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68106         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68107         sys/fs_types.h, and make the link-test for getfsstat guard #include
68108         directives with appropriate #if HAVE_*_H tests so that we can
68109         detect getfsstat on Apple Darwin1.3.7 systems.
68110         Reported by Nelson Beebe.
68111         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68112
68113 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68114
68115         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68116         #defines strtoimax.  Also treat the other strto* functions
68117         like strtoimax.
68118
68119         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68120         Check for strtoul and strtoumax,
68121         as those declarations are made even in the signed case.
68122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68123         Likewise, for strtol and strtoimax.
68124
68125 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68126
68127         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68128         #defines strtoimax.  Also treat the other strto* functions
68129         like strtoimax.
68130
68131         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68132         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68133         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68134
68135 2001-09-26  Jim Meyering  <meyering@lucent.com>
68136
68137         Most macros in unlocked-io.h had the wrong number of arguments.
68138         * lib/gen-uio: New script.
68139         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68140         * lib/unlocked-io.hin: Remove file.
68141         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68142         rather than trying to embed it here.
68143         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68144         Reported by Padraig Brady.
68145
68146 2001-09-25  Volker Borchert  <bt@teknon.de>
68147
68148         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68149         `result'.
68150
68151 2001-09-24  Jim Meyering  <meyering@lucent.com>
68152
68153         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68154
68155 2001-09-23  Jim Meyering  <meyering@lucent.com>
68156
68157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68158         instead of the mere test for existence of mntent.h.  The latter
68159         would get a false-positive on AIX 3.4 systems.
68160         In the outer getmntent if-block, don't die if neither of the getmntent
68161         tests succeeds.  Instead, just fall through and continue with the
68162         remaining tests.
68163
68164 2001-09-23  Jim Meyering  <meyering@lucent.com>
68165
68166         * lib/mountlist.c: Remove useless parentheses in #if directives.
68167         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68168         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68169
68170 2001-09-22  Jim Meyering  <meyering@lucent.com>
68171
68172         * m4/gettext.m4: New file.  From gettext.
68173         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68174         * m4/progtest.m4: Likewise
68175         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68176         * m4/glibc21.m4: Likewise.
68177
68178         * m4/libintl.m4: Remove.  No longer used.
68179
68180 2001-09-22  Jim Meyering  <meyering@lucent.com>
68181
68182         * lib/localcharset.c: Update from latest gettext.
68183         * lib/config.charset: Likewise.
68184
68185 2001-09-20  Jim Meyering  <meyering@lucent.com>
68186
68187         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68188         strtoimax.
68189         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68190         strtoumax.
68191
68192 2001-09-20  Jim Meyering  <meyering@lucent.com>
68193
68194         * lib/xstrtol.c (strtoimax): Guard declaration with
68195         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68196         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68197         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68198         (strtoumax): Likewise, for completeness (it wasn't necessary).
68199
68200 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68201
68202         * lib/strtoimax.c (HAVE_LONG_LONG):
68203         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68204         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68205         to work around bug in IBM C compiler.
68206
68207 2001-09-17  Jim Meyering  <meyering@lucent.com>
68208
68209         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68210         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68211         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68212         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68213         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68214         whenever the right hand side need not be expanded by the shell.
68215
68216 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68217
68218         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68219         library.  It's not correct, as some older glibcs are buggy.
68220         fnmatch wasn't fixed until glibc 2.2.
68221
68222         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68223         special shell magic here.
68224
68225 2001-09-16  Jim Meyering  <meyering@lucent.com>
68226
68227         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68228         * m4/jm-macros.m4: Require it.
68229
68230 2001-09-16  Jim Meyering  <meyering@lucent.com>
68231
68232         * lib/mkdir.c: New file.
68233
68234 2001-09-15  Jim Meyering  <meyering@lucent.com>
68235
68236         * m4/jm-macros.m4: Check for help2man.
68237
68238 2001-09-11  Jim Meyering  <meyering@lucent.com>
68239
68240         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68241         The body, by Paul Eggert, was moved here from configure.in.
68242         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68243
68244 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68245
68246         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68247         (jm_PREREQ): Use it.
68248
68249 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68250
68251         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68252         Use ssize_t, not int, to store result of readlink.
68253         Check for ssize_t overflow as well as size_t overflow,
68254         as POSIX says the result of readlink is implementation-defined
68255         when ssize_t overflows.
68256         Remove unnecessary cast to char*.
68257         Use free+malloc instead of realloc, as the storage doesn't need
68258         to be preserved and it's clearer and can be more efficient that way.
68259         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68260         * lib/xreadlink.h (xreadlink): Update prototype.
68261
68262 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68263
68264         * lib/xgetcwd.c: Revert some of the previous change; intead,
68265         fix the HAVE_GETCWD_NULL code to behave more like the
68266         !HAVE_GETCWD_NULL code used to.
68267
68268         Include "xalloc.h".
68269         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68270         invoke xalloc_die.
68271
68272 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68273
68274         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68275         sys/param.h, as pathmax.h includes them.
68276
68277 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68278
68279         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68280         (jm_PREREQ_XGETCWD): New macro.
68281
68282         * m4/getcwd.m4: New file.
68283
68284 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68285
68286         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68287         like the HAVE_GETCWD_NULL code.
68288         Include pathmax.h if not HAVE_GETCWD.
68289         Do not include xalloc.h.
68290         (INITIAL_BUFFER_SIZE): New symbol.
68291         Do not use xmalloc / xrealloc, since the caller is responsible for
68292         handling errors.  Preserve errno around `free' during failure.
68293         Do not overrun buffer when using getwd.
68294
68295 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68296
68297         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68298         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68299         getcwd (NULL, 0).
68300
68301 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68302
68303         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68304         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68305         spotted by Jim Meyering.
68306
68307 2001-09-03  Jim Meyering  <meyering@lucent.com>
68308
68309         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68310         failure.
68311
68312 2001-09-02  Jim Meyering  <meyering@lucent.com>
68313
68314         * lib/error.c: Update from GNU libc.
68315
68316 2001-09-01  Jim Meyering  <meyering@lucent.com>
68317
68318         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68319         Used by df.
68320
68321 2001-09-01  Jim Meyering  <meyering@lucent.com>
68322
68323         * lib/xreadlink.c: New file.
68324         * lib/xreadlink.h: New file.
68325         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68326         xreadlink.h.
68327
68328         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68329         doesn't conflict with sparc Solaris 7's definition in
68330         /usr/include/sys/int_types.h.
68331
68332         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68333         files.
68334         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68335         and strncasecmp as r-values.  Unixware didn't have declarations.
68336
68337 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68338
68339         * lib/xstrtol.h: Add copyright notice.
68340         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68341         LONGINT_INVALID_SUFFIX_CHAR.
68342
68343 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68344
68345         * lib/xstrtol.c (strtoimax): New decl.
68346
68347 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68348
68349         * lib/xgetcwd.c: Don't include pathmax.h.
68350         Include stdlib.h and unistd.h if available.
68351         Include xalloc.h.
68352         (xmalloc, xstrdup, free): Remove decls.
68353         (xgetcwd): Don't assume sizes fit in unsigned.
68354         Check for overflow when computing sizes.
68355         Simplify reallocation code.
68356
68357 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68358
68359         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68360         a directory's st_size can have an arbitrary value, so the old
68361         usage could waste an arbitrary amount of memory.  All uses
68362         changed.
68363         * lib/savedir.h: Update prototype.
68364
68365 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68366
68367         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68368
68369         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68370         old strtoimax.c.
68371
68372         Also, make the following further changes to make this file's
68373         configuration more similar to that of strtol.c:
68374         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68375         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68376         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68377         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68378         changed to signed values.
68379
68380         And make the following changes as well:
68381         Fix copyright notice, as 1999 was missing.
68382         (verify): New macro.
68383         (strtoimax): Check sizes at compile-time, not run-time.
68384         Prefer strtol to strtoll if both work.
68385         (main): Remove; it was not that useful and was a pain to maintain.
68386
68387         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68388
68389 2001-08-31  Jim Meyering  <meyering@lucent.com>
68390
68391         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68392         Use an initial, malloc'd, buffer of length 128 rather than
68393         a statically allocated one of length 1024.
68394
68395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68396
68397         Simplify code, partly by assuming autoconf 2.52 semantics.
68398
68399         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68400
68401         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68402         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68403         All uses removed.
68404         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68405         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68406         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68407         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68408         jm_AC_HEADER_INTTYPES_H.
68409         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68410
68411         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68412
68413         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68414         Quote first arg of AC_DEFUN.
68415         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68416         since they are needed to parse the include file even if we need
68417         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68419         but with opposite signedness.
68420
68421 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68422
68423         Merge 'exclude' changes from tar 1.13.22.
68424         This fixes one or two unlikely storage allocation overflow bugs,
68425         but doesn't change user-visible behavior otherwise.
68426
68427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68428
68429         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68430         (jm_PREREQ_EXCLUDE): New macro.
68431
68432 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68433
68434         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68435         tm to be declared.
68436
68437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68438
68439         * lib/hash.c: Remove '2001' from copyright notice.
68440
68441 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68442
68443         * lib/full-write.h: New file.
68444         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68445         * lib/full-write.c: Correct credits, as cccp.c no longer
68446         exists and anyway it was so heavily changed from the old cccp
68447         code as to be unrecognizable.  Include full-write.h.
68448         (full_write) Return size_t, with short writes meaning failure.
68449         All callers changed.  This fixes a bug with large buffers
68450         on 64-bit hosts.
68451         * lib/utime.c: Include full-write.h.
68452
68453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68454
68455         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68456         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68457         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68458         Include if available.
68459         (<xalloc.h>): Include
68460         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68461         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68462         collide with FNM macros.
68463         (struct patopts): New struct.
68464         (struct exclude): Use it, as exclude patterns now come with options.
68465         (new_exclude): Support above changes.
68466         (new_exclude, add_exclude_file):
68467         Initial size must now be a power of two to simplify overflow checking.
68468         (free_exclude, fnmatch_no_wildcards): New function.
68469         (excluded_filename): No longer requires options arg, as the options
68470         are determined by add_exclude.  Now returns bool, not int.
68471         (excluded_filename, add_exclude):
68472         Add support for the fancy new exclusion options.
68473         (add_exclude, add_exclude_file): Now takes int options arg.
68474         Check for arithmetic overflow when computing sizes.
68475         (add_exclude_file): xrealloc might modify errno, so don't
68476         realloc until after errno might be used.
68477
68478         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68479         New macros.
68480         (free_exclude): New decl.
68481         (add_exclude, add_exclude_file): Now takes int options arg.
68482         (excluded_filename): No longer requires options arg, as the options
68483         are determined by add_exclude.  Now returns bool, not int.
68484
68485 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68486
68487         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68488
68489 2001-08-27  Jim Meyering  <meyering@lucent.com>
68490
68491         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68492
68493         * lib/version-etc.c (N_): Remove definition.
68494         Revert most of last change.
68495         Instead, simply don't mark the `Copyright...' string for translation.
68496         Based on advice from Paul Eggert.
68497
68498         * lib/strtoxmax.c: Tweak comment.
68499
68500 2001-08-26  Jim Meyering  <meyering@lucent.com>
68501
68502         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68503
68504         * m4/xstrtoimax.m4: New file.
68505         * m4/xstrtoumax.m4: Add comments explaining why we
68506         AC_REPLACE_FUNCS(strtol).
68507
68508 2001-08-26  Jim Meyering  <meyering@lucent.com>
68509
68510         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68511         of copyright with `%s' so translators don't get an untranslated
68512         message in 2002.
68513         (COPYRIGHT_YEAR): Define.
68514         (version_etc): Use fprintf rather than fputs.
68515         Suggestion from Ulrich Drepper.
68516
68517         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68518
68519         * lib/strtoll.c: New file, from GNU libc.
68520         * lib/xstrtoimax.c: New file.
68521
68522         * lib/xstrtol.h: Add xstrtoimax.
68523         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68524         * lib/strtoimax.c: New file.  Likewise, but first define
68525         STRTOUXMAX_SIGNED.
68526
68527         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68528         ...
68529         * lib/strtoxmax.c: ... then renamed to this.
68530
68531 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68532
68533         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68534         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68535         (jm_AC_TYPE_INTMAX_T): New macro.
68536         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68537
68538         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68539
68540         * m4/longlong.m4: Renamed from ulonglong.m4.
68541         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68542         * m4/uintmax_t.m4: Removed.
68543
68544 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68545
68546         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68547         Port to Solaris 8, where 'sed' requires a space after the 'r'
68548         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68549         Redirect output to $tmp just once.
68550
68551 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68552
68553         * lib/addext.c (<errno.h>): Include.
68554         (errno): Declare if not defined.
68555         (addext): Work correctly when pathconf returns -1 and leaves
68556         errno alone because there is no limit.  Also, work even if
68557         pathconf returns a value greater than SIZE_MAX.
68558
68559 2001-08-12  Jim Meyering  <meyering@lucent.com>
68560
68561         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68562         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68563         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68564         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68565         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68566         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68567         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68568         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68569         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68570         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68571         utime.m4, utimes.m4, xstrtoumax.m4:
68572         Quote the first argument in each use of AC_DEFUN.
68573
68574 2001-08-12  Jim Meyering  <meyering@lucent.com>
68575
68576         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68577         Simply `return getcwd (NULL, 0);'.
68578         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68579         Use 1300 as initial value for length, not PATH_MAX.
68580
68581         * lib/pathmax.h: Clean up cpp syntax.
68582
68583 2001-08-12  Jim Meyering  <meyering@lucent.com>
68584
68585         * lib/gettimeofday.c: New file.
68586         * lib/gtod.h: New file.
68587         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68588
68589 2001-08-05  Jim Meyering  <meyering@lucent.com>
68590
68591         * m4/jm-macros.m4: Require autoconf-2.52.
68592
68593 2001-08-04  Jim Meyering  <meyering@lucent.com>
68594
68595         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68596         stmt, to get in sync with glibc.
68597
68598 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68599
68600         The following changes are from gettext 0.10.39 as maintained by
68601         Bruno Haible.
68602
68603         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68604         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68605         with inverted sense.  All uses changed.
68606
68607         * lib/mbswidth.c: Don't include <limits.h>.
68608         Include <stdlib.h> and <string.h> unconditionally.
68609         (iswcntrl, mbsinit, ISCNTRL): New macros.
68610         (mbsnwidth): Use K&R style function declarations.
68611         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68612         can optimize it when MB_CUR_MAX == 1.
68613         The width of control characters is zero, not 1.
68614
68615 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68616
68617         The following changes are from gettext 0.10.39 as maintained by
68618         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68619
68620         * m4/codeset.m4: Upgrade to serial AM1.
68621         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68622         all uses changed.  Quote first arg of AC_DEFUN.
68623         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68624
68625         * m4/iconv.m4: Upgrade to serial AM2.
68626         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68627         Add --with-libconv-prefix.
68628         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68629         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68630         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68631         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68632         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68633
68634         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68635         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68636         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68637         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68638         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68639         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68640         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68641         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68642         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68643
68644         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68645         string.h any more.
68646
68647         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68648         not the default value.
68649
68650         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68651         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68652         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68653         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68654         Also check for iswcntrl, used for wcwidth fallback.
68655         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68656         to Autoconf 2.13.
68657
68658 2001-08-03  Jim Meyering  <meyering@lucent.com>
68659
68660         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68661         as it was in the original.  Reported by Paul Eggert.
68662
68663 2001-07-16  Jim Meyering  <meyering@lucent.com>
68664
68665         * m4/gettimeofday.m4: New file.
68666         Prompted by a report from Bernhard Baehr.
68667
68668 2001-07-15  Jim Meyering  <meyering@lucent.com>
68669
68670         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68671         stuff. Now it's in ../Makefile.cfg.
68672
68673 2001-07-15  Jim Meyering  <meyering@lucent.com>
68674
68675         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68676         (BUILT_SOURCES): Add unlocked-io.h.
68677         (io_functions): Define.
68678         (unlocked-io.h): New rule.
68679         (DISTCLEANFILES): Add unlocked-io.h.
68680         (all-local): Depend on unlocked-io.h, to ensure it is created.
68681
68682         * lib/unlocked-io.hin: New file
68683
68684         * lib/regex.c: Update from glibc.
68685
68686 2001-07-05  Jim Meyering  <meyering@lucent.com>
68687
68688         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68689         recommendation.
68690         (libfetish_a_SOURCES): Put all .h files here instead.
68691         Remove a thus-exposed (better checks in automake) duplicate and
68692         two unnecessary .h files.
68693
68694 2001-07-04  Jim Meyering  <meyering@lucent.com>
68695
68696         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68697         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68698         distcheck failure.
68699
68700 2001-07-02  Jim Meyering  <meyering@lucent.com>
68701
68702         The following changes were prompted by suggestions from Bruno Haible.
68703
68704         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68705         is now generated.
68706         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68707         definition of EXTRA_DIST.
68708         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68709         ensure that the generated file is created/updated whenever the list
68710         of $(unlocked_functions) is changed.
68711         (jm-glibc-io.m4): New rule.
68712         (unlocked-io.h): New rule -- currently unused.
68713
68714 2001-06-24  Jim Meyering  <meyering@lucent.com>
68715
68716         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68717         unmatched right bracket, rather than kludging it with an extra,
68718         falsely-matching quote in a comment.  Patch by Akim Demaille.
68719
68720 2001-06-11  Jim Meyering  <meyering@lucent.com>
68721
68722         * lib/regex.c: Update from GNU libc.
68723
68724 2001-05-27  Jim Meyering  <meyering@lucent.com>
68725
68726         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68727         Check for ut_type in struct utmp.
68728
68729 2001-05-27  Jim Meyering  <meyering@lucent.com>
68730
68731         * lib/readutmp.h (UT_TYPE): Define.
68732
68733 2001-05-24  Jim Meyering  <meyering@lucent.com>
68734
68735         * lib/argmatch.c: Include "quote.h".
68736         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68737         quote function.  Reported by Göran Uddeborg.
68738
68739 2001-05-22  Jim Meyering  <meyering@lucent.com>
68740
68741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68742         now that we use the package-supplied version unconditionally.
68743         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68744
68745 2001-05-21  Jim Meyering  <meyering@lucent.com>
68746
68747         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68748         shell syntax errors.
68749
68750 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68751
68752         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68753
68754 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68755
68756         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68757         Don't bother to check library strftime, since
68758         we'll be using our own my_strftime function anyway.
68759         Define my_strftime instead of strftime.
68760
68761 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68762
68763         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68764         which is not yet declared.
68765
68766 2001-05-15  Jim Meyering  <meyering@lucent.com>
68767
68768         * m4/regex.m4: Use proper quoting so brackets appear in the test
68769         program.
68770         Reported by, and with help from, Bruno Haible.
68771
68772 2001-05-13  Jim Meyering  <meyering@lucent.com>
68773
68774         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68775         undefined.
68776
68777 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68778
68779         dirname code cleanup.  base_name now behaves more compatibly
68780         with POSIX basename when given file names that have trailing
68781         slashes, and similarly for dir_name.  Add new primitives
68782         base_len and dir_len.  Put the directory-name-related decls
68783         into dirname.h.
68784
68785         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68786         * lib/backupfile.c (base_name): Likewise.
68787         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68788         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68789         * lib/makepath.c (strip_trailing_slashes): Likewise.
68790         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68791         ISSLASH): Likewise.
68792         * lib/rename.c (strip_trailing_slashes): Likewise.
68793         * lib/same.c (base_name): Likewise.
68794         * lib/stripslash.c (ISSLASH): Likewise.
68795
68796         * lib/addext.c: Include <dirname.h> after size_t is defined.
68797         * lib/backupfile.c: Likewise.
68798
68799         * lib/addext.c (addext): Use base_len to trim redundant
68800         trailing slashes instead of doing it ourselves.
68801         But do not trim the last slash if it is not redundant.
68802
68803         * lib/backupfile.c (find_backup_file_name,
68804         max_backup_version): Use base_len instead of rolling it ourselves.
68805         Handle the case of "" and (on DOS) "C:" correctly.
68806
68807         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68808         needed. Include <string.h>, <dirname.h>.
68809         (base_name): Allow file names ending in slashes, other than names
68810         that are all slashes.  In this case, return the basename followed
68811         by the slashes.  This is more general, and can be used in places
68812         where the original base_name purposely had an assertion failure.
68813         (base_len): New function.
68814
68815         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68816         Do not include <assert.h>; no longer needed.
68817         Include xalloc.h.
68818         (memrchr): Remove decl.
68819         (dir_name_r): Remove.
68820         (dir_len): Renamed from dirlen.  All callers changed.
68821         Rewrite in terms of base_name, for simplicity and consistency.
68822         (dir_name): Never return NULL.  All callers changed.
68823         Do not include <stdlib.h> in test program; no longer needed.
68824         return 0; is fine for test program.
68825
68826         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68827         New macros.
68828         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68829
68830         * lib/path-concat.c (path_concat): Use base_len to compute
68831         base length, not strlen; this means we cannot rely on memcpy
68832         to null-terminate.
68833
68834         * lib/same.c (STREQ): Remove.
68835         (same_name): Handle the case where the basename ends in trailing '/'.
68836
68837         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68838         a slash was stripped.  Do not strip the last slash after a
68839         file system prefix.
68840
68841 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68842
68843         * lib/Makefile.am (libfetish_a_SOURCES):
68844         Add strftime.c, since we now compile it on all hosts.
68845
68846         * lib/strftime.c (my_strftime):
68847         Define to nstrftime if emacs, but only if my_strftime is not defined.
68848         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68849         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68850         Add one more extra argument: a nanoseconds value.
68851         All uses changed.
68852         (ns): New macro.
68853         (my_strftime function): Add %N format.
68854         (emacs_strftimeu): Renamed from emacs_strftime,
68855         with extra ut argument.
68856
68857 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68858
68859         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68860
68861 2001-04-21  Jim Meyering  <meyering@lucent.com>
68862
68863         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68864         doesn't interfere.
68865
68866 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68867
68868         * m4/ftruncate.m4: Check for chsize.
68869         Link with ftruncate.o unconditionally if ftruncate is missing.
68870         This was required when cross-compiling to i586-mingw32msvc.
68871
68872 2001-04-08  Jim Meyering  <meyering@lucent.com>
68873
68874         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68875         recomputed; that's necessary when the offset spans a DST transition.
68876         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68877
68878 2001-04-02  Jim Meyering  <meyering@lucent.com>
68879
68880         * lib/regex.h, regex.c: Update from GNU libc.
68881
68882 2001-03-24  Jim Meyering  <meyering@lucent.com>
68883
68884         * m4/jm-macros.m4: Require autoconf-2.49d.
68885
68886 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68887
68888         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68889
68890 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68891
68892         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68893
68894 2001-03-17  Jim Meyering  <meyering@lucent.com>
68895
68896         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68897         now that the version in autoconf is equivalent.
68898         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68899
68900         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68901         Suggestion from Akim Demaille.
68902
68903         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68904         (jm_PREREQ_TEMPNAME): New function.
68905
68906 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68907
68908         * lib/tempname.c (uint64_t): Define to uintmax_t if
68909         not defined, and if UINT64_MAX is not defined.
68910         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68911         Reported by John David Anglin.
68912
68913 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68914
68915         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68916         resolve alias if codeset is empty.
68917         * lib/config.charset (BeOS): Use wildcard syntax.
68918
68919 2001-03-13  Jim Meyering  <meyering@lucent.com>
68920
68921         * lib/path-concat.c (path_concat)
68922         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68923         concatenating e.g., `C:' and `foo'.
68924         From Bruno Haible.
68925
68926 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68927
68928         * lib/localcharset.c (locale_charset): Don't use
68929         setlocale(LC_CTYPE,NULL). Don't return NULL.
68930         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68931
68932 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68933
68934         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68935         support for DOS/DJGPP.
68936
68937 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68938
68939         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68940         lacks mkstemp.  Compile our own tempname.c if we compile our own
68941         mkstemp.c, as mkstemp relies on tempname.
68942
68943 2001-03-01  Jim Meyering  <meyering@lucent.com>
68944
68945         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68946         AH_VERBATIM really does output its argument verbatim.
68947
68948 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68949
68950         * lib/Makefile.am (libfetish_a_SOURCES):
68951         Add dup-safer.c, fopen-safer.c.
68952         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68953
68954         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68955         * lib/unistd-safer.h: New files.
68956
68957 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68958
68959         The mkstemp replacement is taken from glibc 2.2.2, with some
68960         portability fixes for use outside glibc, as follows:
68961
68962         * lib/tempname.c (struct_stat64): New macro.
68963         (direxists, __gen_tempname): Use it.
68964         This avoids a portability problem with Solaris 8.
68965
68966         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68967         (<stddef.h>, <stdint.h>, <string.h>):
68968         Include only if STDC_HEADERS || _LIBC.
68969         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68970         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68971         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68972         (__set_errno): Define this macro if <errno.h> doesn't.
68973         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68974         Define these macros if <stdio.h> doesn't.
68975         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68976         Define these macros if <sys/stat.h>
68977         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68978         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68979         __xstat64): Define if not _LIBC.
68980         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68981         (__gen_tempname): Invoke gettimeofday only if
68982         HAVE_GETTIMEOFDAY || _LIBC;
68983         otherwise, fall back on plain "time".
68984         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68985
68986         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68987
68988         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68989
68990 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68991
68992         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68993
68994 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68995
68996         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68997         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68998         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68999         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69000
69001 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69002
69003         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69004         Remove workaround macros for hosts that have mbrtowc but not
69005         mbstate_t, as we now insist on proper declarations for both
69006         before using mbrtowc.
69007
69008 2001-02-17  Jim Meyering  <meyering@lucent.com>
69009
69010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69011         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69012         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69013         UnixWare 7.1.1.
69014
69015         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69016         rather than AC_CACHE_VAL.
69017
69018 2001-02-17  Jim Meyering  <meyering@lucent.com>
69019
69020         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69021         around included file name.
69022
69023         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69024
69025         * lib/strftime.c: Update from GNU libc (the only changes were to
69026         comments).
69027
69028 2001-02-17  Jim Meyering  <meyering@lucent.com>
69029
69030         * lib/regex.c: Update from libc.
69031
69032 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69033
69034         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69035         clash.
69036
69037 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69038
69039         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69040         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69041         Reported by Mark Hounschell via Paul Eggert.
69042
69043 2001-02-07  Jim Meyering  <meyering@lucent.com>
69044
69045         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69046
69047 2001-02-05  Jim Meyering  <meyering@lucent.com>
69048
69049         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69050         it includes the patch required for `large file' support with at least
69051         HP-UX's 10.20 /bin/cc.
69052
69053 2001-02-03  Jim Meyering  <meyering@lucent.com>
69054
69055         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69056         AS_IF, now that it works once again (mysteriously).
69057         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69058
69059 2001-01-30  Jim Meyering  <meyering@lucent.com>
69060
69061         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69062         * m4/chown.m4: Rename conftestchown to conftest.chown.
69063         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69064         s/conftestdir2/conftest.d2/.
69065         * m4/utimes.m4: s/conftestdata/conftest.data/
69066         Inspired by Pavel Roskin's change in autoconf.
69067
69068 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69069
69070         * lib/config.charset: Update for FreeBSD 4.2.
69071
69072 2001-01-27  Jim Meyering  <meyering@lucent.com>
69073
69074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69075         a use of AS_IF.
69076         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69077
69078 2001-01-26  Jim Meyering  <meyering@lucent.com>
69079
69080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69081         quotearg.c includes it.
69082
69083 2001-01-26  Jim Meyering  <meyering@lucent.com>
69084
69085         * lib/quotearg.c: Include stddef.h.
69086         * lib/quote.c: Include stddef.h.
69087         Reported by Axel Kittenberger.
69088
69089         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69090         line in double quotes so that it evokes a better diagnostic.
69091         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69092         Reported by Axel Kittenberger.
69093
69094 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69095
69096         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69097         as if it was a `charset'.
69098
69099 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69100
69101         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69102         has const.
69103
69104 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69105
69106         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69107         to avoid a warning.  Add back 'const' to inptr.
69108
69109 2001-01-20  Jim Meyering  <meyering@lucent.com>
69110
69111         Be sure that headers are checked before used in code compiled
69112         for the type checks.
69113         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69114         In place of that, invoke jm_CHECK_ALL_TYPES.
69115         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69116         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69117         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69118         The check for ssize_t was mistakenly run before the test for unistd.h.
69119
69120         The configure-time check for stdbool.h was missing.
69121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69122         (jm_PREREQ_HASH): New function.
69123
69124 2001-01-17  Jim Meyering  <meyering@lucent.com>
69125
69126         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69127         for autoconf-2.49c.
69128         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69129
69130 2001-01-16  Jim Meyering  <meyering@lucent.com>
69131
69132         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69133         From Bruno Haible.
69134
69135 2001-01-14  Jim Meyering  <meyering@lucent.com>
69136
69137         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69138         foo and bar.  Create conftestdir/ in the script, not in the C code.
69139         Remove directories in the script, not in the C code.
69140         Remove conftestdir{,2} before trying to create the directory.
69141         Make the entire configure script fail if the mkdir fails.
69142
69143 2001-01-14  Jim Meyering  <meyering@lucent.com>
69144
69145         * lib/rename.c: New file.  From Volker Borchert.
69146         Include stdlib.h, string.h or strings.h, and xalloc.h.
69147         Use strip_trailing_slashes rather than open-coding it.
69148
69149 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69150
69151         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69152
69153 2001-01-03  Jim Meyering  <meyering@lucent.com>
69154
69155         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69156         of local `inptr' to avoid warning with some system declarations of
69157         iconv.
69158
69159 2001-01-02  Volker Borchert  <bt@teknon.de>
69160
69161         * m4/rename.m4: New file.
69162         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69163
69164 2001-01-01  Jim Meyering  <meyering@lucent.com>
69165
69166         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69167         even on systems with utmpx.h.  It's necessary for the declaration of
69168         utmp's ut_user member.  Reported by Andreas Jaeger.
69169
69170         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69171         available. They are required for the declarations of getgrgid and
69172         getpwuid resp.
69173         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69174         Reported by Andreas Jaeger.
69175
69176 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69177
69178         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69179         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69180         so `make install' also works in VPATH builds.
69181
69182 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69183
69184         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69185         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69186         can be used in subdirectories.
69187
69188 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69189
69190         * lib/modechange.c: Do not assume that mode_t uses the
69191         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69192         the other-execute bit of FOO even if S_IXOTH != 1.
69193
69194         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69195         WOTH, XOTH, ALLM): New macros.
69196         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69197          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69198         Use them.
69199         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69200         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69201         (mode_compile):
69202         No need to use uintmax_t; unsigned long is long enough.
69203         Don't bother to get suffix since we don't use it.
69204
69205 2000-12-26  Jim Meyering  <meyering@lucent.com>
69206
69207         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69208         better with autoheader.
69209
69210 2000-12-24  Jim Meyering  <meyering@lucent.com>
69211
69212         * lib/hash.c (is_prime): Return explicit boolean values.
69213         (hash_get_first): Return NULL to appease Irix5.6's 89.
69214         Reported by Nelson Beebe.
69215
69216 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69217
69218         * lib/localcharset.c (locale_charset): Add support for Win32.
69219
69220 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69221
69222         * lib/physmem.h, lib/physmem.c: New files.
69223
69224         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69225         (noinst_HEADERS): Add physmem.h.
69226
69227         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69228         't' for compatibility with Solaris 8 sort.
69229
69230 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69231
69232         * lib/config.charset: Add support for BeOS.
69233
69234 2000-12-17  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69237         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69238
69239 2000-12-16  Jim Meyering  <meyering@lucent.com>
69240
69241         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69242         N and M) would have treated it like `chown N:N FILE'.
69243
69244         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69245
69246 2000-12-16  Jim Meyering  <meyering@lucent.com>
69247
69248         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69249         SHELLS_FILE to a file name that's useful on djgpp systems.
69250         Include stdlib.h.
69251         (ADDITIONAL_DEFAULT_SHELLS): Define.
69252         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69253         Based mostly on a patch from Prashant TR.
69254
69255 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69256
69257         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69258         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69259         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69260
69261 2000-12-08  Andreas Schwab  <schwab@suse.de>
69262
69263         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69264         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69265
69266 2000-12-07  Jim Meyering  <meyering@lucent.com>
69267
69268         * lib/stripslash.c (ISSLASH): Define.
69269         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69270         `/'.
69271         From Prashant TR.
69272
69273         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69274         (dir_name_r): Declare this function as static.
69275         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69276         manifest itself on a name containing a mix of slashes and
69277         backslashes.
69278         Make this function work with names starting with a DOS-style
69279         drive letter and colon prefix.
69280         (dir_name): Append `.' if necessary.
69281         Based mostly on patches from Prashant TR and Eli Zaretskii.
69282
69283         * lib/dirname.h (dir_name_r): Remove prototype.
69284
69285 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69286
69287         * m4/off_t-format.m4: Remove this file.
69288         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69289
69290 2000-12-06  Jim Meyering  <meyering@lucent.com>
69291
69292         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69293         replacement strtoull, we may well need the replacement strtoul, too.
69294         Check for declarations of strtoul and strtoull.
69295         Check for strtol.  Mainly as a cue to cause automake to include
69296         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69297         Check for limits.h -- strtol.c needs it.
69298
69299 2000-12-05  Jim Meyering  <meyering@lucent.com>
69300
69301         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69302
69303 2000-12-04  Jim Meyering  <meyering@lucent.com>
69304
69305         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69306         Also include memory.h, stdlib.h, unistd.h if appropriate.
69307         Reported by Andreas Jaeger (conflicting declaration of malloc).
69308
69309 2000-12-02  Jim Meyering  <meyering@lucent.com>
69310
69311         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69312         * m4/jm-macros.m4 (jm_MACROS): require it.
69313
69314 2000-12-02  Jim Meyering  <meyering@lucent.com>
69315
69316         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69317
69318 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69319
69320         * lib/memrchr.c: Include <config.h> before any system include file.
69321
69322 2000-11-30  Jim Meyering  <meyering@lucent.com>
69323
69324         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69325
69326 2000-11-30  Jim Meyering  <meyering@lucent.com>
69327
69328         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69329
69330 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69331
69332         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69333
69334 2000-11-26  Jim Meyering  <meyering@lucent.com>
69335
69336         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69337
69338 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69339
69340         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69341         size of (size_t) -1; it's not portable.
69342
69343 2000-11-17  Jim Meyering  <meyering@lucent.com>
69344
69345         * lib/strstr.c: Update from GNU libc.
69346
69347 2000-11-17  Akim Demaille  <akim@epita.fr>
69348
69349         * lib/obstack.h: Formatting changes.
69350         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69351         prevent type checking.
69352         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69353         cast the value to (void *): assigning a `foo *' to a `void *'
69354         variable is valid.
69355         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69356
69357 2000-11-16  Jim Meyering  <meyering@lucent.com>
69358
69359         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69360
69361 2000-11-11  Jim Meyering  <meyering@lucent.com>
69362
69363         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69364
69365 2000-11-10  Jim Meyering  <meyering@lucent.com>
69366
69367         * lib/obstack.h: Update from GNU libc.
69368         * lib/obstack.c: Likewise.
69369
69370 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69371
69372         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69373
69374 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69375
69376         * lib/getusershell.c (setusershell): Use rewind rather than
69377         fseek/fseeko, to avoid configuration hassles with fseeko.
69378         Don't bother opening SHELLS_FILE if shellstream is NULL;
69379         it's not necessary.
69380
69381 2000-11-05  Jim Meyering  <meyering@lucent.com>
69382
69383         * lib/makepath.h (make_dir): Declare.
69384         * lib/makepath.c (make_dir): Remove `static' attribute.
69385         Tweak a comment.
69386
69387 2000-11-04  Jim Meyering  <meyering@lucent.com>
69388
69389         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69390
69391 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69392
69393         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69394         last one in a bucket, advance to the next bucket.
69395
69396 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69397
69398         * lib/fnmatch.c: Do not comment out all the code if we are using
69399         the GNU C library, because in some cases we are replacing buggy
69400         code in the GNU C library itself.
69401
69402 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69403
69404         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69405         (regex_compile): Catch bogus \(\1\).
69406
69407 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69408
69409         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69410         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69411         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69412
69413 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69414
69415         * lib/error.h, getline.h, modechange.h:
69416         Remove "2000" from Copyright line, as the file hasn't been
69417         changed this year other than in the copyright notice.
69418
69419         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69420         was changed this year.
69421
69422 2000-10-29  Jim Meyering  <meyering@lucent.com>
69423
69424         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69425         renaming.
69426         * m4/ls-mntd-fs.m4: Likewise
69427
69428 2000-10-29  Jim Meyering  <meyering@lucent.com>
69429
69430         * lib/xstat.in: Fix grammar in comment.
69431
69432 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69433
69434         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69435         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69436         doesn't define __restrict_arr.
69437
69438 2000-10-28  Jim Meyering  <meyering@lucent.com>
69439
69440         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69441         (jm_PREREQ_MEMCHR): New function.
69442
69443 2000-10-28  Jim Meyering  <meyering@lucent.com>
69444
69445         * lib/memchr.c: Update from libc.
69446         Adjust for portability:
69447         [HAVE_STDLIB_H]: Include stdlib.h.
69448         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69449         Undef __memchr, too.
69450         [!weak_alias]: Define __memchr to memchr.
69451
69452         * lib/regex.c: Update from libc.
69453         * lib/regex.h: Likewise.
69454         * lib/getopt1.c: Likewise.
69455         * lib/memcmp.c: Likewise.
69456
69457         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69458         Avoid using fseek, when possible -- it's broken by design.
69459         Patch by Ulrich Drepper.
69460
69461 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69462
69463         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69464         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69465         Giving in to popular pressure to shut up the compiler with casts.
69466
69467 2000-10-26  Jim Meyering  <meyering@lucent.com>
69468
69469         * lib/strftime.c: Update from libc.
69470
69471 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69472
69473         * regex.c: More `unsigned char' -> `re_char' changes.
69474         Also change several `int' into `re_wchar_t'.
69475         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69476         (PUSH_FAILURE_POINTER): Don't cast any more.
69477         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69478         We want GCC to complain, since this piece of code makes
69479         re_match non-reentrant, which *should* be fixed.
69480         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69481         (EXTEND_BUFFER): Use RETALLOC.
69482         (SET_LIST_BIT): Don't cast.
69483         (re_wchar_t): New type.
69484         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69485         that those two functions will always properly return.
69486         (IMMEDIATE_QUIT_CHECK): Cast to void.
69487         (analyse_first): Use recursion rather than an explicit stack.
69488         (re_compile_fastmap): Can't fail anymore.
69489         (re_search_2): Don't check re_compile_fastmap for failure.
69490         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69491         Now also sets the new value (passed in a new argument).
69492         (re_match_2_internal): Use it.
69493         Also, use a new var `reg' of type size_t when looping through regs
69494         rather than reuse the inappropriate `mcnt'.
69495
69496 2000-10-25  Jim Meyering  <meyering@lucent.com>
69497
69498         * lib/obstack.c: Update from libc.
69499
69500 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69501
69502         * regex.c (regex_compile): Change the way of handling a range from
69503         a char less than 256 to a char not less than 256.
69504
69505 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69506
69507         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69508         NT-Emacs only.
69509         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69510         so that re_search functions only quit when callers expect them to.
69511
69512 2000-10-23  Jim Meyering  <meyering@lucent.com>
69513
69514         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69515         wrong.  That set_locale call must not have any side effects.
69516         From Paul Eggert.
69517
69518 2000-10-22  Jim Meyering  <meyering@lucent.com>
69519
69520         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69521         [CYCLIC]: Remove now-unused definition.
69522
69523         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69524         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69525         Suggestion from Ulrich Drepper.
69526
69527 2000-10-21  Jim Meyering  <meyering@lucent.com>
69528
69529         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69530         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69532
69533 2000-10-21  Jim Meyering  <meyering@lucent.com>
69534
69535         * lib/dirname.c (memrchr): Declare if necessary.
69536         (dir_name): Remove the restriction that there be no
69537         trailing slashes.  Now, this code skips past them, effectively
69538         ignoring them.
69539         [TEST_DIRNAME] (main): New unit tests.
69540
69541         * lib/memrchr.c: New file from GNU libc.
69542         Undef __memrchr, too.
69543         [!weak_alias]: Define __memrchr to memrchr.
69544         Guard weak_alias use with `#ifdef weak_alias'.
69545
69546 2000-10-21  Jim Meyering  <meyering@lucent.com>
69547
69548         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69549         (dir_name): Use dir_name_r.
69550         * lib/dirname.h (dir_name_r): Declare it.
69551
69552 2000-10-17  Jim Meyering  <meyering@lucent.com>
69553
69554         * lib/quote.h (PARAMS): Define and use.
69555         Reported by Akim Demaille.
69556
69557         * lib/getopt.c: Update from libc.
69558
69559 2000-10-16  Jim Meyering  <meyering@lucent.com>
69560
69561         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69562         setlocale.
69563         From Jan Fedak.
69564
69565 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69566
69567         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69568
69569 2000-09-25  Jim Meyering  <meyering@lucent.com>
69570
69571         * lib/md5.h (rol): Define (from GnuPG).
69572
69573         * lib/sha.c: Give credit (GnuPG) where due.
69574         (M): Use rol rather than open-coding it.
69575         Add a FIXME comment.
69576
69577 2000-09-21  Jim Meyering  <meyering@lucent.com>
69578
69579         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69580         Reported by Michael Stone.
69581
69582 2000-09-20  Jim Meyering  <meyering@lucent.com>
69583
69584         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69585         (noinst_HEADERS): Add sha.h.
69586         Based on code from Scott G. Miller and from GnuPG.
69587
69588 2000-09-18  Jim Meyering  <meyering@lucent.com>
69589
69590         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69591         LIBS. Otherwise, everyone ends up linking with -lelf for some
69592         configurations.
69593         Reported by Mike Stone.
69594
69595 2000-09-15  Jim Meyering  <meyering@lucent.com>
69596
69597         * lib/regex.c: Update from libc.
69598
69599 2000-09-10  Jim Meyering  <meyering@lucent.com>
69600
69601         * lib/getopt.c (_getopt_internal): Update from glibc.
69602
69603 2000-09-09  Jim Meyering  <meyering@lucent.com>
69604
69605         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69606         think it should be used as a general replacement for isascii.
69607         * lib/fnmatch.c: Likewise.
69608         * lib/mbswidth.c: Likewise
69609         * lib/regex.c: Likewise.
69610
69611         Don't use atoi.
69612         * lib/userspec.c: Include sys/param.h and limits.h.
69613         Include xstrtol.h.
69614         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69615         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69616         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69617         UID, GID.  Check range.
69618
69619 2000-09-06  Jim Meyering  <meyering@lucent.com>
69620
69621         * lib/getopt.c (_getopt_internal): Update from glibc.
69622
69623 2000-08-30  Jim Meyering  <meyering@lucent.com>
69624
69625         * lib/strftime.c: Merge in changes from GNU libc.
69626
69627 2000-08-26  Jim Meyering  <meyering@lucent.com>
69628
69629         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69630         * m4/fpending.m4: New file.
69631
69632 2000-08-26  Jim Meyering  <meyering@lucent.com>
69633
69634         * lib/closeout.c: Include "__fpending.h".
69635         (close_stdout_status): Return right away if there's nothing to flush.
69636
69637         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69638         * lib/__fpending.c: New file.
69639         * lib/__fpending.h: New file.
69640
69641 2000-08-20  Jim Meyering  <meyering@lucent.com>
69642
69643         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69644         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69645         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69646
69647 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69648
69649         Improve fileutils installation on systems where running
69650         programs (like install) can't be unlinked.
69651         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69652         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69653
69654 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69655
69656         Standardize on "memory exhausted" instead of "Memory exhausted"
69657         or "virtual memory exhausted".
69658         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69659         "virtual memory exhausted".
69660         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69661         our own message.
69662         * lib/userspec.c (parse_user_spec): Likewise.
69663         * lib/bumpalloc.h: comment fix
69664         * lib/same.c, userspec.c: Include xalloc.h.
69665
69666         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69667         not char *const and pointing to a constant array.
69668         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69669         (xrealloc): Comment fix.
69670
69671         * lib/userspec.c (parse_user_spec):
69672         Don't translate a message until just before returning,
69673         to avoid unnecessary translation.
69674
69675 2000-08-07  Jim Meyering  <meyering@lucent.com>
69676
69677         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69678         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69679         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69680         getgroups.c, gethostname.c, getopt.h, group-member.c,
69681         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69682         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69683         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69684         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69685         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69686         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69687         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69688         yesno.c: Back out Copyright date changes for each file with no change
69689         this year.  This eases coordination with other programs using the same
69690         source code modules.  From Paul Eggert.
69691
69692 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69693
69694         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69695         not char, for compatibility with glibc 2.1.3 strftime.c.
69696
69697 2000-08-03  Greg McGary  <greg@mcgary.org>
69698
69699         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69700         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69701         (EXTEND_BUFFER): Use them.
69702
69703 2000-08-01  Jim Meyering  <meyering@lucent.com>
69704
69705         * lib/dirname.c (ISSLASH): Define.
69706         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69707         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69708         both `\' and `/' may be use as path separators.
69709         Based on a patch from Prashant TR.
69710
69711 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69712
69713         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69714         slot vector a constant, since it might get modified.
69715
69716 2000-07-31  Jim Meyering  <meyering@lucent.com>
69717
69718         * lib/xmalloc.c: Use `virtual memory exhausted', not
69719         `Memory exhausted'.
69720         * lib/obstack.c (print_and_abort): Likewise.
69721
69722 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69723
69724         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69725         buffer, so that the caller can always quote one small
69726         component of a "memory exhausted" message in slot 0.
69727         From a suggestion by Jim Meyering.
69728
69729 2000-07-30  Jim Meyering  <meyering@lucent.com>
69730
69731         * lib/makepath.c (make_path): Quote the other instance, too.
69732
69733         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69734         (STATIC_BUF_SIZE): Define.
69735         (quotearg_n_options): Use only statically allocated storage when
69736         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69737         than STATIC_BUF_SIZE.
69738
69739 2000-07-29  Jim Meyering  <meyering@lucent.com>
69740
69741         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69742         * lib/dirname.c (dir_name): Likewise.
69743
69744         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69745         `/'.
69746
69747         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69748         (dir_name): Assert that there are no trailing slashes.
69749
69750 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69751
69752         * lib/mbswidth.h (mbswidth): Add a flags argument.
69753         (mbswidth): New declaration.
69754         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69755         * lib/mbswidth.c (mbswidth): Add a flags argument.
69756         (mbsnwidth): New function.
69757
69758 2000-07-24  Jim Meyering  <meyering@lucent.com>
69759
69760         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69761
69762 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69763
69764         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69765
69766 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69767
69768         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69769         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69770         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69771         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69772         invoke multibyte primitives.
69773
69774 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69775
69776         * lib/quotearg.c:
69777         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69778         so that mbstate_t is always defined.
69779
69780         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69781         be 1 in at least one GCC installation, and this configuration
69782         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69783         performance on hosts that have mbrtowc but have only unibyte
69784         locales, but I assume these hosts are rare.
69785
69786 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69787
69788         * lib/mbswidth.c (_XOPEN_SOURCE):
69789         Don't define; this causes problems on Solaris 7.
69790         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69791
69792 2000-07-23  Jim Meyering  <meyering@lucent.com>
69793
69794         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69795         too: getgrgid, getpwuid, getuid.
69796
69797 2000-07-23  Jim Meyering  <meyering@lucent.com>
69798
69799         * lib/basename.c (base_name): Add an assertion.
69800
69801 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69802
69803         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69804         shadow its mbsinit function.
69805
69806 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69807
69808         * lib/mbswidth.h: New file.
69809         * lib/mbswidth.c: New file.
69810         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69811         (noinst_HEADERS): Add mbswidth.h.
69812
69813 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69814
69815         * lib/config.charset: Add support for FreeBSD. Improve support for
69816         HP-UX and IRIX 6.
69817
69818 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69819
69820         * m4/mbswidth.m4: New file.
69821         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69822
69823 2000-07-15  Jim Meyering  <meyering@lucent.com>
69824
69825         * lib/makepath.c: Include quote.h.
69826         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69827         corresponding argument in a `quote (...)' call.
69828         Give better diagnostics.
69829
69830         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69831         (noinst_HEADERS): Add quote.h.
69832
69833         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69834         from tar's src/misc.c.
69835         * lib/quote.h: New file.  Prototypes for same.
69836
69837 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69838
69839         From a suggestion by Bruno Haible.
69840         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69841         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69842         to decide whether to define the BeOS workaround macro;
69843         this adjusts to the change to AC_MBSTATE_T.
69844
69845 2000-07-14  Jim Meyering  <meyering@lucent.com>
69846
69847         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69848         jm_AC_TYPE_UINTMAX_T.
69849
69850 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69851
69852         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69853
69854         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69855         quotearg_buffer_restyled): Add support for
69856         clocale_quoting_style.  Undo previous change to
69857         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69858         and "{RIGHT QUOTATION MARK}" msgids.
69859
69860 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69861
69862         From a suggestion by Bruno Haible.
69863         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69864         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69865         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69866         and mbstate_t, to a single-part test that simply defines mbstate_t.
69867         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69868         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69869
69870 2000-07-10  Jim Meyering  <meyering@lucent.com>
69871
69872         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69873
69874         * m4/gnu-source.m4: Output to confdefs.h directly.
69875         Suggestion from Akim Demaille.
69876
69877 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69878
69879         The old behavior of quoting `like this' doesn't look good with
69880         newer, ISO-style fonts.  See:
69881         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69882
69883         Instead, quote "like this" by default.  Let the translator
69884         tailor the locale-specific quoting behavior by providing
69885         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69886
69887         * lib/quotearg.c (N_): New macro.
69888         (gettext_default): New function.
69889         (quotearg_buffer_restyled): Use
69890         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69891         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69892
69893 2000-07-09  Jim Meyering  <meyering@lucent.com>
69894
69895         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69896         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69897
69898         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69900
69901 2000-07-09  Jim Meyering  <meyering@lucent.com>
69902
69903         * lib/Most files: Update copyright dates to include 2000.
69904
69905 2000-07-08  Jim Meyering  <meyering@lucent.com>
69906
69907         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69908         if not defined.
69909         (xgethostname): Remove now-unnecessary #ifdef.
69910         Move declaration of `err' into loop where it's used.
69911
69912 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69913         and Bruno Haible  <haible@clisp.cons.org>
69914
69915         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69916         only if the test for an object-type mbstate_t fails.  This
69917         prevents us from mistakenly reporting that mbstate_t is a
69918         system object type after we "#define mbstate_t int" to work
69919         around its lack.
69920
69921 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69922         and Bruno Haible  <haible@clisp.cons.org>
69923
69924         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69925
69926 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69927
69928         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69929         to strerror_r.
69930         Include <ctype.h> for use of isalpha.
69931
69932 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69933
69934         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69935         by allocating a larger buffer. Test the gethostname return value for
69936         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69937         returns an error and ENAMETOOLONG isn't defined.
69938
69939 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69940
69941         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69942         dimension.
69943
69944 2000-07-04  Jim Meyering  <meyering@lucent.com>
69945
69946         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69947         of the deprecated AC_CHECKING.
69948
69949 2000-07-04  Jim Meyering  <meyering@lucent.com>
69950
69951         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69952         Reported by Bruno Haible.
69953
69954 2000-07-04  Jim Meyering  <meyering@lucent.com>
69955
69956         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69957         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69958         lacks mbrtowc.
69959
69960 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69961
69962         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69963         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69964
69965 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69966         and Bruno Haible  <haible@clisp.cons.org>
69967
69968         * lib/quotearg.c (mbrtowc):
69969         Assign to *pwc, and return 1 only if result is nonzero.
69970         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69971
69972 2000-07-03  Jim Meyering  <meyering@lucent.com>
69973
69974         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69975
69976 2000-07-03  Jim Meyering  <meyering@lucent.com>
69977
69978         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69979         This is necessary to get a definition of e.g., UTMP_FILE on
69980         HP-UX 10.20.
69981         From Bob Proulx.
69982
69983 2000-07-02  Jim Meyering  <meyering@lucent.com>
69984
69985         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69986
69987         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69988         AC_LIBOBJ(function_name).
69989         * m4/chown.m4: Likewise.
69990         * m4/fnmatch.m4: Likewise.
69991         * m4/ftruncate.m4: Likewise.
69992         * m4/getgroups.m4: Likewise.
69993         * m4/getline.m4: Likewise.
69994         * m4/group-member.m4: Likewise.
69995         * m4/jm-macros.m4: Likewise.
69996         * m4/lstat.m4: Likewise.
69997         * m4/malloc.m4: Likewise.
69998         * m4/memcmp.m4: Likewise.
69999         * m4/nanosleep.m4: Likewise.
70000         * m4/putenv.m4: Likewise.
70001         * m4/realloc.m4: Likewise.
70002         * m4/regex.m4: Likewise.
70003         * m4/stat.m4: Likewise.
70004         * m4/strftime.m4: Likewise.
70005
70006 2000-07-02  Jim Meyering  <meyering@lucent.com>
70007
70008         * lib/quotearg.c (mbstate_t): Don't define here.
70009
70010 2000-07-02  Jim Meyering  <meyering@lucent.com>
70011
70012         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70013
70014 2000-07-01  Jim Meyering  <meyering@lucent.com>
70015
70016         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70017
70018 2000-07-01  Jim Meyering  <meyering@lucent.com>
70019
70020         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70021         problem.
70022
70023 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70024
70025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70026         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70027
70028 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70029
70030         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70031         per change in ../m4/ls-mntd-fs.m4.
70032         (read_filesystem_list): Ignore symbolic links.
70033
70034 2000-06-29  Jim Meyering  <meyering@lucent.com>
70035
70036         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70037         for declaration of strcmp.
70038
70039         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70040
70041         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70042         Avoid warning by casting result to `char *' to remove `const'.
70043
70044 2000-06-28  Jim Meyering  <meyering@lucent.com>
70045
70046         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70047         included by quotearg.c, for which we perform this test.  From
70048         Bruno Haible.
70049
70050 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70051
70052         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70053         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70054         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70055
70056 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70057
70058         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70059
70060 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70061
70062         savedir now sets errno on failure and invokes xmalloc to get memory.
70063         Fix a couple of other minor bugs while we're at it.
70064
70065         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70066         (NAMLEN): Remove macro.
70067         (malloc, realloc): Remove decls.
70068         (stpcpy): Likewise.
70069         ("xalloc.h"): Include.
70070         (NAME_SIZE_DEFAULT): New macro.
70071         (savedir): Use xmalloc / xrealloc to allocate memory.
70072         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70073         Skip "" directory entries.
70074         Use strlen to calculate directory entry length, since the old method
70075         is rarely used these days and isn't worth supporting.
70076         Don't use a pointer after freeing it.
70077         Check for integer overflow when calculating allocation size.
70078         Use memcpy to copy entries, instead of stpcpy.
70079         Set errno properly when returning NULL.
70080         Check for readdir error.
70081
70082 2000-06-26  Jim Meyering  <meyering@lucent.com>
70083
70084         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70085
70086 2000-06-25  Jim Meyering  <meyering@lucent.com>
70087
70088         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70089         Linux header bug when _XOPEN_SOURCE is defined to 500.
70090
70091 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70092
70093         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70094         deficiency.
70095
70096 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70097
70098         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70099         Include xalloc.h.
70100         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70101
70102 2000-06-24  Jim Meyering  <meyering@lucent.com>
70103
70104         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70105         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70106         for which strerror does return char*, but which lacks a conveniently
70107         accessible declaration of the function.  If the compile-test says
70108         strerror_r doesn't work, then resort to a `run'-test that works on
70109         BeOS and segfaults on DEC Unix.
70110
70111 2000-06-24  Jim Meyering  <meyering@lucent.com>
70112
70113         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70114
70115 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70116
70117         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70118         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70119
70120 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70121
70122         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70123         (mbrtowc, mbstate_t): Define substitutes if
70124         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70125         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70126         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70127
70128 2000-06-23  Jim Meyering  <meyering@lucent.com>
70129
70130         * m4/afs.m4: Add missing AC_MSG_RESULT.
70131         Reported by Bruno Haible.
70132
70133         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70134         Suggestion from Bruno Haible.
70135
70136 2000-06-23  Jim Meyering  <meyering@lucent.com>
70137
70138         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70139
70140 2000-06-21  Jim Meyering  <meyering@lucent.com>
70141
70142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70143
70144 2000-06-21  Jim Meyering  <meyering@lucent.com>
70145
70146         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70147         (noinst_HEADERS): Add getstr.h.
70148
70149         * lib/getline.c (getstr): Move into a separate file.
70150         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70151         the following changes: new parameter, delim2; both delim[12]
70152         parameters have type `int', not `char'.  The latter would lose
70153         with 8-bit delimiters.
70154         * lib/getstr.h: New file.
70155
70156 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70157
70158         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70159         than 1024, return a memory chunk of least possible size, instead
70160         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70161         Use free/xmalloc instead of xrealloc to avoid copying for very long
70162         paths.
70163
70164 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70165
70166         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70167         the empty string.
70168
70169 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70170
70171         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70172         address, not strdup.  Include <stdlib.h> and don't declare free().
70173
70174 2000-06-19  Jim Meyering  <meyering@lucent.com>
70175
70176         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70177
70178 2000-06-18  Jim Meyering  <meyering@lucent.com>
70179
70180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70181
70182         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70183         `checking whether...' message to be consistent with that of the
70184         lstat test.
70185
70186 2000-06-18  Jim Meyering  <meyering@lucent.com>
70187
70188         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70189         Besides, these days every porting target provides a mkdir function.
70190
70191         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70192         needed. (this snippet comes from src/system.h).
70193
70194 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70195
70196         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70197
70198 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70199
70200         * lib/human.c (adjust_value): New function.
70201         (human_readable_inexact): Apply rounding style even when
70202         printing approximate values.
70203
70204 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70205
70206         * lib/human.c (human_readable_inexact): Allow an input block
70207         size that is not a multiple of the output block size, and vice versa.
70208         Reported by Piergiorgio Sartor.
70209
70210 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70211
70212         * lib/getdate.y (get_date): Apply relative times after time
70213         zone indicator, not before.  Reported by Todd A. Jacobs.
70214
70215 2000-06-13  Jim Meyering  <meyering@lucent.com>
70216
70217         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70218
70219         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70220
70221 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70222
70223         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70224
70225 2000-06-12  Jim Meyering  <meyering@lucent.com>
70226
70227         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70228         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70229         optional argument.
70230         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70231         the optional argument, `lib'.
70232
70233 2000-06-08  Jim Meyering  <meyering@lucent.com>
70234
70235         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70236
70237 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70238
70239         Rewrite largefile configuration so that we don't need to run
70240         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70241         AC_CANONICAL_HOST in configure.in -- jmm]
70242
70243         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70244         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70245         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70246         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70247         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70248         All uses changed.
70249         Instead of inspecting the output of getconf, try to compile the
70250         test program without and with the macro definition.
70251         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70252         for getconf.  Instead, check for the needed flags by compiling
70253         test programs.
70254
70255 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70256
70257         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70258
70259 2000-06-04  Jim Meyering  <meyering@lucent.com>
70260
70261         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70262         SunOS 4.1.4 for which gid_t is an unsigned type.
70263
70264 2000-06-03  Jim Meyering  <meyering@lucent.com>
70265
70266         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70267         now that autoconf requires that.
70268
70269         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70270         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70271         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70272
70273 2000-06-03  Jim Meyering  <meyering@lucent.com>
70274
70275         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70276
70277 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70278
70279         * m4/glibc21.m4: New file.
70280         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70281
70282 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70283
70284         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70285         newer, don't install charset.alias.
70286         * lib/config.charset: Change the Linux/glibc rules so they become empty
70287         on glibc-2.1 or newer.
70288
70289 2000-06-02  Jim Meyering  <meyering@lucent.com>
70290
70291         * lib/mountlist.c: Back out last change.  Instead, do this...
70292         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70293         me_dummy member using the same `ignore'-testing code.
70294         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70295         fs_type strings.
70296         From Mark D. Roth.
70297
70298 2000-05-29  Jim Meyering  <meyering@lucent.com>
70299
70300         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70301         mounts with the `ignore' attribute.  Based on a patch from
70302         Mark D. Roth.
70303
70304 2000-05-28  Jim Meyering  <meyering@lucent.com>
70305
70306         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70307         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70308         * m4/stat.m4: Likewise.
70309         * m4/lstat.m4: Likewise.
70310         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70311
70312         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70313         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70314
70315 2000-05-26  Jim Meyering  <meyering@lucent.com>
70316
70317         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70318
70319 2000-05-24  Jim Meyering  <meyering@lucent.com>
70320
70321         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70322         autoconf requires that.
70323         * m4/lib-check.m4: Likewise.
70324         * m4/jm-macros.m4: Likewise.
70325         * m4/strftime.m4: Likewise.
70326
70327         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70328         AC_CHECK_DECLS, now that autoconf requires that.
70329
70330 2000-05-22  Jim Meyering  <meyering@lucent.com>
70331
70332         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70333         * m4/lstat.m4: Likewise.
70334
70335 2000-05-22  Jim Meyering  <meyering@lucent.com>
70336
70337         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70338
70339 2000-05-20  Jim Meyering  <meyering@lucent.com>
70340
70341         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70342         (jm_PREREQ): Use it.
70343
70344 2000-05-18  Jim Meyering  <meyering@lucent.com>
70345
70346         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70347         back, too, since it may have been modified by allocate_entry.
70348         (hash_delete): Rewrite to use neither the assignment operator
70349         nor the comma operator in an if-expression.
70350
70351 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70352
70353         * lib/closeout.c:
70354         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70355         Remove; no longer needed.
70356         "quotearg.h": Add include.
70357         (file_name): Do not bother to explicitly initialize to NULL; it's less
70358         efficient on some hosts.
70359         (close_stdout_status): Remove test as to whether stdout was already
70360         closed; it breaks for the case "echo x | sort >&-".
70361         Quote file name colons.
70362         Do not assume that _("write error") lacks format strings.
70363
70364 2000-05-15  Jim Meyering  <meyering@lucent.com>
70365
70366         * lib/version-etc.c (version_etc_copyright): Update the copyright
70367         string used in all --version output.
70368
70369 2000-05-14  Jim Meyering  <meyering@lucent.com>
70370
70371         * lib/closeout.c (close_stdout_set_file_name): New function.
70372         (close_stdout_status): Use new file-scoped global.
70373         Return right away if fstat says the stdout file descriptor is invalid.
70374         * lib/closeout.h (close_stdout_set_file_name): Declare.
70375
70376 2000-05-10  Jim Meyering  <meyering@lucent.com>
70377
70378         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70379         (close_stdout_set_status): New function.
70380         * lib/closeout.h (close_stdout_set_status): Declare.
70381
70382 2000-05-09  Jim Meyering  <meyering@lucent.com>
70383
70384         * m4/gettext.m4: Rename this...
70385         * m4/libintl.m4: ...to this.
70386
70387 2000-05-08  Jim Meyering  <meyering@lucent.com>
70388
70389         * lib/long-options.c: Don't include closeout.h.
70390         (parse_long_options): Don't call close_stdout for --version.
70391
70392 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70393
70394         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70395         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70396         2.1.3 bug.  This avoids a clash when files like regex.c define
70397         _GNU_SOURCE.
70398
70399 2000-05-06  Jim Meyering  <meyering@lucent.com>
70400
70401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70402         (AC_REPLACE_FUNCS): Add strnlen.
70403
70404         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70405         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70406
70407         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70408         AC_SEARCH_LIBS call for nanosleep.
70409         (LIB_NANOSLEEP): Set and AC_SUBST.
70410
70411 2000-05-06  Jim Meyering  <meyering@lucent.com>
70412
70413         * lib/strnlen.c: Undefine __strnlen and strnlen.
70414         [!weak_alias]: Define __strnlen to strnlen.
70415
70416         * lib/atexit.c: New file, from libiberty.
70417
70418 2000-05-06  Jim Meyering  <meyering@lucent.com>
70419
70420         * lib/closeout.c (close_stdout_status): Also check for errors on the
70421         stderr stream.
70422
70423 2000-05-05  Jim Meyering  <meyering@lucent.com>
70424
70425         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70426         AC_SEARCH_LIBS call for clock_gettime.
70427         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70428
70429         * m4/search-libs.m4: Update from autoconf.
70430
70431         su doesn't work on Solaris 2.6.
70432         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70433         <shadow.h>.  Reported by Dragos Harabor.
70434
70435 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70436
70437         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70438         memcpy instead of xmalloc, xrealloc, path_concat.
70439         (locale_charset): Treat empty environment variables as absent.
70440         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70441
70442 2000-05-04  Jim Meyering  <meyering@lucent.com>
70443
70444         * lib/getopt.c: Update from glibc.
70445         * lib/obstack.c: Likewise.
70446         * lib/obstack.h: Likewise.
70447         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70448         file
70449
70450         * lib/regex.h: Likewise.
70451         * lib/strndup.c: Likewise.
70452         * lib/strnlen.c: New file, from glibc.
70453
70454 2000-05-03  Jim Meyering  <meyering@lucent.com>
70455
70456         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70457
70458 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70459
70460         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70461         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70462         compile-time test, rather than inspecting host and OS, to
70463         decide whether to define _LARGEFILE_SOURCE.
70464
70465 2000-05-01  Jim Meyering  <meyering@lucent.com>
70466
70467         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70468
70469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70470         Based on a patch from Bruno Haible.
70471
70472 2000-05-01  Jim Meyering  <meyering@lucent.com>
70473
70474         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70475
70476 2000-04-29  Jim Meyering  <meyering@lucent.com>
70477
70478         * lib/path-concat.c: Declare strdup only if it's not defined.
70479         * lib/canon-host.c: Likewise.
70480
70481 2000-04-28  Jim Meyering  <meyering@lucent.com>
70482
70483         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70484         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70485         is included first, then limits.h is included by locale.h by libintl.h.
70486         From John David Anglin.
70487
70488 2000-04-25  Jim Meyering  <meyering@lucent.com>
70489
70490         * lib/makepath.c (S_IRWXUGO): Define.
70491         (make_path): Always perform explicit chmod if MODE specifies any
70492         of the `special' permission bits.  Prompted by a bug report against
70493         install from Mate Wierdl and Joost van Baal.
70494
70495 2000-04-18  Jim Meyering  <meyering@lucent.com>
70496
70497         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70498         (jm_PREREQ): Use it.
70499
70500 2000-04-18  Jim Meyering  <meyering@lucent.com>
70501
70502         * lib/README: New file.
70503
70504         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70505         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70506
70507 2000-04-17  Jim Meyering  <meyering@lucent.com>
70508
70509         Get it right :-)
70510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70511         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70512         Suggestion from Akim Demaille.
70513
70514 2000-04-17  Jim Meyering  <meyering@lucent.com>
70515
70516         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70517         the definition of it to rpl_strftime also defined-away the system's
70518         declaration.
70519
70520 2000-04-15  Jim Meyering  <meyering@lucent.com>
70521
70522         Use `C' to denote so-called `contiguous' files, the same way
70523         that tar does.
70524         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70525         (ftypelet): Use S_ISCTG.
70526         From Michael Deutschmann.
70527
70528 2000-04-14  Jim Meyering  <meyering@lucent.com>
70529
70530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70531         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70532         clobbered.
70533
70534 2000-04-14  Jim Meyering  <meyering@lucent.com>
70535
70536         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70537
70538 2000-04-13  Jim Meyering  <meyering@lucent.com>
70539
70540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70541         AH_VERBATIM to insert required #ifndef into config.h.in.
70542         Suggestion from Akim Demaille.
70543
70544 2000-04-12  Jim Meyering  <meyering@lucent.com>
70545
70546         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70547         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70548         Christian Krackowizer.
70549
70550         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70551         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70552         (AC_SYS_LARGEFILE): Require.
70553         (AM_C_PROTOTYPES): Require.
70554
70555 2000-04-08  Jim Meyering  <meyering@lucent.com>
70556
70557         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70558         names don't conflict.  Reported by Eli Zaretskii.
70559
70560 2000-04-07  Jim Meyering  <meyering@lucent.com>
70561
70562         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70563         sys/types.h, to work around system header problems on AIX 3.2.5.
70564         From Bruno Haible.
70565
70566 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70567
70568         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70569         bug.  Deal with the different error behavior of Irix iconv.
70570
70571 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70572
70573         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70574         IRIX if the installer said otherwise.
70575
70576 2000-04-05  Jim Meyering  <meyering@lucent.com>
70577
70578         Portability tweaks required for ultrix4.3.
70579         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70580         (jm_CHECK_DECLS): Add getutent to the list of functions.
70581         (_jm_DECL_HEADERS): Add utmpx.h.
70582         From John David Anglin.
70583
70584         * m4/strftime.m4: Back out the 2000-04-02 change.
70585         Instead of that change, simply undefine putenv in the test program.
70586
70587 2000-04-05  Jim Meyering  <meyering@lucent.com>
70588
70589         Portability tweaks required for ultrix4.3.
70590         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70591         getutent.
70592         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70593         * lib/canon-host.c: Declare strdup.
70594         * lib/path-concat.c: Likewise.
70595         From John David Anglin.
70596
70597 2000-04-04  Jim Meyering  <meyering@lucent.com>
70598
70599         Be more DOS 8.3-friendly.
70600         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70601         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70602         * lib/Makefile.am: Reflect renaming.
70603         Reported by Eli Zaretskii.
70604
70605         Use a temporary file name that won't clash with `charset.alias'
70606         in the DOS 8.3 name space.
70607         * lib/Makefile.am (charset_tmp): Define.
70608         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70609         (uninstall-local): Likewise.
70610         Reported by Eli Zaretskii.
70611
70612 2000-04-03  Jim Meyering  <meyering@lucent.com>
70613
70614         * m4/gettext.m4: Fix typo in comment.
70615
70616         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70617         textutils/configure.in).  Suggestion from Paul Eggert.
70618         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70619
70620 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70621
70622         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70623         variable in the shell rather than using putenv, which isn't
70624         portable.  This avoids the configure-time inter-test dependency
70625         on the potentially-renamed putenv function.
70626
70627 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70628
70629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70630         before checking struct stat.st_blksize, so that
70631         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70632
70633 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70634
70635         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70636         since strftime.c uses HAVE_STRFTIME to decide whether to use
70637         the underlying strftime.
70638
70639 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70640
70641         * lib/time/strftime.c (my_strftime): Make sure we call the system
70642         strftime, not ourselves, when invoking the underlying strftime.
70643
70644 2000-03-24  Jim Meyering  <meyering@lucent.com>
70645
70646         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70647         (charset_alias): Define.
70648         (install-exec-local): Factor out common code.
70649         (uninstall-local): Split lines longer than 80.
70650         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70651         (SUFFIXES): Define.
70652         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70653         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70654
70655 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70656
70657         * lib/config.charset: Output a line containing "Packages using this
70658         file".
70659         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70660         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70661         ref-del.sed): New rules.
70662
70663 2000-03-17  Jim Meyering  <meyering@lucent.com>
70664
70665         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70666         Otherwise, include <strings.h>
70667
70668 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70669
70670         * lib/unicodeio.c (utf8_wctomb): New function.
70671         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70672         format instead of in UCS-4 with platform dependent endianness.
70673
70674 2000-03-10  Jim Meyering  <meyering@lucent.com>
70675
70676         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70677         From Marco Franzen.
70678
70679 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70680
70681         * lib/savedir.c (savedir): Work even if directory size is
70682         negative; this can happen with some screwy NFS configurations.
70683
70684 2000-03-06  Jim Meyering  <meyering@lucent.com>
70685
70686         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70687         if it's NULL (because we ran out of memory).  From Bruno Haible.
70688
70689 2000-03-05  Jim Meyering  <meyering@lucent.com>
70690
70691         * lib/localcharset.c ("path-concat.h"): Include.
70692         (get_charset_aliases): Use path_concat instead of ANSI string
70693         concatenation.
70694
70695         * lib/unicodeio.h (PARAMS): Define.
70696         Use it to guard prototype.
70697
70698 2000-03-04  Jim Meyering  <meyering@lucent.com>
70699
70700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70701         for lib/localcharset.c.
70702
70703 2000-03-04  Jim Meyering  <meyering@lucent.com>
70704
70705         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70706         installing into it.
70707         (uninstall-local): Uncomment this rule so `make distcheck' works
70708         once again.
70709
70710         * lib/unicodeio.c (<errno.h>): Include it.
70711         (errno): Declare if not defined.
70712
70713         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70714
70715         * lib/config.charset: New version, incorporating remarks from a linux
70716         i18n mailing list.  From Bruno Haible.
70717
70718 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70719
70720         * m4/codeset.m4: New file.
70721         * m4/iconv.m4: New file.
70722         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70723
70724 2000-03-03  Jim Meyering  <meyering@lucent.com>
70725
70726         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70727
70728 2000-03-02  Jim Meyering  <meyering@lucent.com>
70729
70730         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70731         the messages come out on separate lines.
70732
70733         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70734         rather than jm_CHECK_DECLARATIONS.
70735         * m4/decl.m4: Remove now-unused file.
70736
70737         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70738         geteuid.
70739
70740 2000-03-02  Jim Meyering  <meyering@lucent.com>
70741
70742         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70743
70744 2000-03-01  Jim Meyering  <meyering@lucent.com>
70745
70746         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70747         * lib/unicodeio.c: Likewise.
70748
70749 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70750
70751         * lib/config.charset: New file.
70752         * lib/localcharset.c: New file.
70753         * lib/unicodeio.h, lib/unicodeio.c: New files.
70754         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70755         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70756         (noinst_HEADERS): Add unicodeio.h.
70757         (all-local, install-exec-local, charset.alias): New targets.
70758
70759 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70760
70761         * lib/quotearg.c (ALERT_CHAR): New macro.
70762         (quotearg_buffer_restyled): Use it.
70763
70764 2000-02-27  Jim Meyering  <meyering@lucent.com>
70765
70766         * m4/check-decl.m4: Add getenv to the list.
70767
70768 2000-02-27  Jim Meyering  <meyering@lucent.com>
70769
70770         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70771         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70772
70773         * lib/backupfile.c: Guard inclusion of stdlib.h with
70774         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70775         Declare malloc if needed.
70776
70777         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70778         `#ifndef HAVE_DECL..'
70779         now that autoconf always defines the HAVE_DECL_ symbols.
70780         * lib/human.c: Likewise.
70781         * lib/same.c: Likewise.
70782         * lib/strtoumax.c: Likewise.
70783
70784         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70785         declaration check was not run.
70786         * lib/hash.c: Likewise.
70787         * lib/human.c: Likewise.
70788         * lib/same.c: Likewise.
70789         * lib/strtoumax.c: Likewise.
70790
70791         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70792         `.', then first look up the entire `.'-containing string as a login
70793         name.
70794
70795 2000-02-23  Jim Meyering  <meyering@lucent.com>
70796
70797         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70798         in place of my hack.
70799
70800 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70801
70802         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70803         (textint): New typedef.
70804         (parser_control): Member year changed from int to textint.
70805         All uses changed.
70806         (YYSTYPE): Removed; replaced by %union with int and textint members.
70807         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70808         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70809         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70810         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70811         (date, number, to_year): Use width of number in digits, not its value,
70812         to determine whether it's a 2-digit year, or a 2-digit time.
70813         (yylex): Store number of digits of numeric tokens.
70814         Reported by John Kendall.
70815
70816         (parser_control): Changed from struct parser_control to typedef (for
70817         consistency).  All uses changed.
70818
70819         (tID): Removed; not used.
70820         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70821
70822 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70823
70824         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70825         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70826
70827 2000-02-12  Jim Meyering  <meyering@lucent.com>
70828
70829         * lib/userspec.c (ISDIGIT): Define it.
70830         (isdigit): Remove definition.
70831         (is_number): Use ISDIGIT, not isdigit.
70832         <libintl.h>: Include.
70833         (_ and N_): Define.
70834         (parse_user_spec): Mark translatable strings.
70835
70836 2000-02-10  Jim Meyering  <meyering@lucent.com>
70837
70838         With these changes, nanosleep.[ch] are finally enough like the other
70839         lib/* replacement files to compile on a few more losing systems.
70840
70841         * lib/nanosleep.h: Don't include config.h.
70842         Remove prototype from declaration of nanosleep.
70843         (PARAMS): Remove now-unneeded definition.
70844         * lib/nanosleep.c: #undef nanosleep.
70845         (rpl_nanosleep): Rename from nanosleep.
70846
70847 2000-02-10  Jim Meyering  <meyering@lucent.com>
70848
70849         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70850         gnu_nanosleep to rpl_nanosleep.
70851
70852 2000-02-09  Jim Meyering  <meyering@lucent.com>
70853
70854         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70855         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70856
70857 2000-02-08  Akim Demaille  <akim@epita.fr>
70858
70859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70860         `[' and `]' and remove uses of `changequote'.
70861         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70862         (AC_SYS_LARGEFILE): Likewise.
70863         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70864         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70865         of changequote.
70866         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70867         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70868         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70869         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70870
70871 2000-02-05  Jim Meyering  <meyering@lucent.com>
70872
70873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70874         Remove explicit use of AC_HEADER_TIME.  It is required by
70875         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70876         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70877         in autoconf whereby the expansion of the latter ended up preceding
70878         the expansion of its prerequisite, AC_HEADER_TIME.
70879         Reported by Volker Borchert.
70880
70881 2000-02-03  Jim Meyering  <meyering@lucent.com>
70882
70883         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70884
70885 2000-02-03  Jim Meyering  <meyering@lucent.com>
70886
70887         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70888         rather than with `#if HAVE_UTMPNAME'.
70889
70890 2000-02-02  Jim Meyering  <meyering@lucent.com>
70891
70892         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70893         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70894         Reported by Eli Zaretskii.
70895
70896 2000-02-01  Jim Meyering  <meyering@lucent.com>
70897
70898         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70899
70900 2000-01-31  Jim Meyering  <meyering@lucent.com>
70901
70902         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70903         functions.  Add the time.h and sys/time.h headers along with the
70904         AC_REQUIRE'ment of AC_HEADER_TIME.
70905
70906 2000-01-31  Jim Meyering  <meyering@lucent.com>
70907
70908         * lib/nanosleep.h (nanosleep): Guard declaration with
70909         `#if ! HAVE_DECL_NANOSLEEP'.
70910         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70911         the declaration in that vendor's sys/timers.h.
70912         Reported by Christian Krackowizer.
70913
70914         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70915         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70916         (ISPRINT): Likewise.
70917         Reported by Tom Tromey.
70918
70919 2000-01-30  Jim Meyering  <meyering@lucent.com>
70920
70921         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70922
70923         * m4/prereq.m4 (utmp_includes): Define.
70924         Check for ut_user and ut_name members in both struct utmpx
70925         and struct utmp.
70926
70927 2000-01-30  Jim Meyering  <meyering@lucent.com>
70928
70929         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70930         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70931         header files where only utmpx.ut_user is declared.
70932
70933         * lib/readutmp.h (UT_USER): Define.
70934
70935 2000-01-29  Jim Meyering  <meyering@lucent.com>
70936
70937         * m4/lib-check.m4: New file containing library-related checks from
70938         fileutils and sh-utils (textutils had none).
70939
70940 2000-01-28  Jim Meyering  <meyering@lucent.com>
70941
70942         * m4/perl.m4: Change format of warning message to look more like that
70943         from the missing script.  Suggestion from François Pinard.
70944
70945 2000-01-25  Jim Meyering  <meyering@lucent.com>
70946
70947         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70948         well as time.h in the compile check.
70949         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70950         Fix typo in cross-compiling case: s/yes/no/.
70951
70952 2000-01-23  Jim Meyering  <meyering@lucent.com>
70953
70954         * m4/jm-macros.m4: Move df-related tests here from
70955         fileutils/configure.in
70956
70957         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70958         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70959
70960         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70961         s/space/ac_fsusage_space/.
70962         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70963
70964         * m4/ftruncate.m4: New file (derived from part of
70965         fileutils/configure.in).
70966         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70967         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70968
70969         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70970         AC_SUBST these here, rather than just in sh-util/configure.in, so
70971         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70972         all the same.
70973         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70974         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70975         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70976         (AC_SUBST(POW_LIBM)): Likewise.
70977         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70978
70979 2000-01-23  Jim Meyering  <meyering@lucent.com>
70980
70981         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70982         obstack.c.
70983
70984 2000-01-22  Jim Meyering  <meyering@lucent.com>
70985
70986         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70987
70988         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70989
70990         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70991         configure.in
70992         (AC_CHECK_HEADERS): Likewise for sh-utils.
70993         (AC_CHECK_HEADERS): Likewise for textutils.
70994         Merge the three lists of headers.
70995
70996         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70997         from fileutils' configure.in.
70998
70999         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71000         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71001         check-decl.m4.
71002
71003         * m4/check-decl.m4: Use #if rather than #ifdef.
71004         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71005         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71006         (_jm_DECL_HEADERS): Define new function.
71007         (jm_CHECK_DECLARATIONS): Require it.
71008
71009 2000-01-22  Jim Meyering  <meyering@lucent.com>
71010
71011         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71012         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71013         Required for some AIX systems.  Reported by Christian Krackowizer.
71014         [TESTING] (main): New function.
71015
71016         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71017         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71018         letters.
71019
71020         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71021         iswprint.
71022
71023         * lib/strverscmp.c (ISDIGIT): Define.
71024         (strverscmp): Use ISDIGIT, not isdigit.
71025
71026 2000-01-19  Jim Meyering  <meyering@lucent.com>
71027
71028         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71029         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71030         defines `struct timespec' in <sys/time.h>
71031
71032         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71033         Thanks to Akim for explaining.
71034
71035 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71036
71037         * lib/nanosleep.c (nanosleep):
71038         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71039         POSIX.1 doesn't require SA_INTERRUPT and some systems
71040         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71041         it's been part of POSIX.1 since day 1 (in 1988).
71042
71043 2000-01-17  Jim Meyering  <meyering@lucent.com>
71044
71045         * lib/interlock: Remove unused file.  Reported by François Pinard.
71046
71047 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71048
71049         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71050         alert, backslash, formfeed, and vertical tab unnecessarily in
71051         shell quoting style.
71052
71053 2000-01-16  Jim Meyering  <meyering@lucent.com>
71054
71055         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71056         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71057         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71058         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71059
71060 2000-01-16  Jim Meyering  <meyering@lucent.com>
71061
71062         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71063         because the latter didn't work.
71064
71065 2000-01-15  Jim Meyering  <meyering@lucent.com>
71066
71067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71068         (AC_REPLACE_FUNCS): Add memcpy and memset.
71069         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71070         Add strpbrk.
71071         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71072
71073 2000-01-12  Jim Meyering  <meyering@lucent.com>
71074
71075         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71076         (jm_PREREQ): Use it.
71077         (jm_PREREQ_READUTMP): New macro.
71078         (jm_PREREQ): Use it.
71079
71080 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71081
71082         Quote multibyte characters correctly.
71083         * m4/c-bs-a.m4: New file.
71084         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71085         (jm_PREREQ): Use it.
71086
71087 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71088
71089         * m4/uintmax_t.m4: Port to autoconf 2.13.
71090
71091 2000-01-08  Jim Meyering  <meyering@ascend.com>
71092
71093         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71094         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71095
71096 2000-01-04  Jim Meyering  <meyering@ascend.com>
71097
71098         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71099         jm_STRUCT_DIRENT_D_TYPE.
71100         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71101         jm_STRUCT_DIRENT_D_INO.
71102         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71103         jm_STRUCT_UTIMBUF.
71104         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71105         renamings.
71106         * m4/utime.m4: Likewise.
71107
71108         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71109         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71110
71111 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71112
71113         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71114         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71115
71116 2000-01-02  Jim Meyering  <meyering@ascend.com>
71117
71118         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71119         remember if this is necessary.
71120
71121 1999-12-26  Jim Meyering  <meyering@ascend.com>
71122
71123         * m4/jm-macros.m4: Use it here.
71124         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71125
71126 1999-12-23  Jim Meyering  <meyering@ascend.com>
71127
71128         * m4/jm-macros.m4: Check for clock_gettime (moved from
71129         fileutils/configure.in)
71130         Check for gettimeofday.
71131
71132 1999-12-20  Jim Meyering  <meyering@ascend.com>
71133
71134         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71135         autoconf-2.14a-1999-12-20.
71136
71137 1999-12-19  Jim Meyering  <meyering@ascend.com>
71138
71139         * m4/lstat-slash.m4: New file.
71140         * m4/jm-macros.m4: Use the new macro:
71141         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71142
71143 1999-12-07  Jim Meyering  <meyering@ascend.com>
71144
71145         * m4/perl.m4: Require that File::Compare be available, too.
71146         Too many systems seem to lack it.
71147
71148         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71149         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71150
71151 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71152
71153         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71154         problem with the QNX 4.25 shell, which doesn't propagate exit
71155         status of failed commands inside shell assignments.
71156
71157 1999-11-17  Jim Meyering  <meyering@ascend.com>
71158
71159         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71160
71161 1999-11-07  Jim Meyering  <meyering@ascend.com>
71162
71163         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71164
71165 1999-11-06  Jim Meyering  <meyering@ascend.com>
71166
71167         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71168         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71169
71170 1999-11-05  Jim Meyering  <meyering@ascend.com>
71171
71172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71173         configure.in of textutils, fileutils, and sh-utils into this one
71174         (shared between those packages) file.
71175         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71176         AC_STRUCT_ST_BLKSIZE.
71177
71178 1999-11-03  Jim Meyering  <meyering@ascend.com>
71179
71180         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71181         of AC_CHECK_TYPE checks includes unistd.h.
71182         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71183         Suggestion from Akim Demaille.
71184
71185 1999-10-30  Jim Meyering  <meyering@ascend.com>
71186
71187         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71188         m4-quoted string.
71189         * m4/ls-mntd-fs.m4: Likewise.
71190         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71191         * m4/jm-winsz1.m4: Likewise.
71192
71193         * m4/const.m4: Remove file, since the fix made it into the experimental
71194         version of autoconf.
71195         * m4/mktime.m4: Likewise.
71196
71197         * m4/check-type.m4: Remove file, now that the latest version of
71198         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71199
71200         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71201         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71202         AC_CHECK_TYPE.
71203
71204 1999-10-04  Jim Meyering  <meyering@ascend.com>
71205
71206         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71207
71208 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71209
71210         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71211         2.95.1 bug with HP-UX 10.20.
71212
71213 1999-09-17  Jim Meyering  <meyering@ascend.com>
71214
71215         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71216         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71217         due to missing strdup (against sh-utils-2.0).
71218
71219 1999-08-29  Jim Meyering  <meyering@ascend.com>
71220
71221         * m4/jm-macros.m4: Require jm_BISON.
71222         * m4/bison.m4: New file.
71223
71224 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71225
71226         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71227         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71228
71229 1999-08-05  Jim Meyering  <meyering@ascend.com>
71230
71231         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71232         to avoid conflicts with `conftest' on 8+3 filesystems.
71233         Suggestion from Eli Zaretskii.
71234
71235 1999-08-04  Jim Meyering  <meyering@ascend.com>
71236
71237         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71238         fileutils and sh-utils (textutils's getline test was inadequate).
71239         (AM_FUNC_GETLINE): Run this test.
71240         (AC_CHECK_FUNCS): Check for getdelim.
71241         Reported by Bob Proulx.
71242
71243 1999-08-02  Jim Meyering  <meyering@ascend.com>
71244
71245         * m4/jm-macros.m4: Add a comment.
71246
71247 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71248
71249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71250         <inttypes.h> defines strtoumax as a macro (and not as a
71251         function).
71252
71253 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71254
71255         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71256         that we can shift, multiply and divide unsigned long long
71257         values; Ultrix cc can't do it.
71258
71259 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71260
71261         * m4/mktime.m4: New file, which is a preview of what should appear
71262         in the next public autoconf release.
71263
71264 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71265
71266         * m4/lfs.m4: Remove this file.
71267         * m4/largefile.m4: New file.  It contains the old contents of
71268         lfs.m4, except that all names with prefix AC_LFS have been
71269         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71270         compatible with future autoconf versions.  Also, some minor m4
71271         quoting problems have been fixed.
71272
71273 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71274
71275         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71276         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71277         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71278         and simplify the shell code.
71279
71280 1999-08-01  Jim Meyering  <meyering@ascend.com>
71281
71282         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71283         m4.
71284
71285 1999-07-20  Jim Meyering  <meyering@ascend.com>
71286
71287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71288
71289 1999-07-15  Jim Meyering  <meyering@ascend.com>
71290
71291         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71292
71293 1999-05-22  Jim Meyering  <meyering@ascend.com>
71294
71295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71296
71297 1999-05-20  Jim Meyering  <meyering@ascend.com>
71298
71299         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71300         Add a colon after each `then' in case $4 is empty.
71301
71302 1999-05-16  Jim Meyering  <meyering@ascend.com>
71303
71304         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71305
71306 1999-05-10  Jim Meyering  <meyering@ascend.com>
71307
71308         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71309
71310         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71311         AC_FUNC_MKTIME.
71312
71313 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71314
71315         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71316
71317 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71318
71319         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71320         not CPPFLAGS, so that linking works correctly in IRIX.
71321
71322 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71323
71324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71325
71326 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71327
71328         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71329         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71331         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71332         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71333
71334         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71335
71336 1999-04-20  Jim Meyering  <meyering@ascend.com>
71337
71338         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71339         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71340         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71341
71342 1999-04-18  Jim Meyering  <meyering@ascend.com>
71343
71344         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71345         * m4/jm-macros.m4: Use it.
71346
71347 1999-04-06  Jim Meyering  <meyering@ascend.com>
71348
71349         * m4/strftime.m4: Remove test for %f.
71350
71351 1999-03-29  Jim Meyering  <meyering@ascend.com>
71352
71353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71354         superset of the AC_TYPE_* checks in the textutils, fileutils,
71355         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71356         AC_TYPE_PID_T.
71357
71358 1999-03-28  Jim Meyering  <meyering@ascend.com>
71359
71360         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71361         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71362         replaced e.g., in the *.sh files of the sh-utils.
71363
71364 1999-03-20  Jim Meyering  <meyering@ascend.com>
71365
71366         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71367         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71368         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71369
71370 1999-03-19  Jim Meyering  <meyering@ascend.com>
71371
71372         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71373
71374 1999-03-12  Jim Meyering  <meyering@ascend.com>
71375
71376         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71377
71378 1999-03-07  Jim Meyering  <meyering@ascend.com>
71379
71380         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71381         declared.
71382
71383 1999-02-17  Jim Meyering  <meyering@ascend.com>
71384
71385         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71386         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71387
71388 1999-02-07  Jim Meyering  <meyering@ascend.com>
71389
71390         * m4/group-member.m4: New file -- extracted from sh-utils'
71391         configure.in.
71392
71393         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71394         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71395
71396 1999-02-06  Jim Meyering  <meyering@ascend.com>
71397
71398         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71399         * m4/fnmatch.m4: Likewise.
71400         * m4/getgroups.m4: Likewise.
71401         * m4/lstat.m4: Likewise.
71402         * m4/malloc.m4: Likewise.
71403         * m4/putenv.m4: Likewise.
71404         * m4/realloc.m4: Likewise.
71405         * m4/regex.m4: Likewise.
71406         * m4/stat.m4: Likewise.
71407         * m4/strftime.m4: Likewise.
71408         Suggestion from Alain Magloire.
71409
71410         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71411         * m4/fnmatch.m4: Likewise.
71412         * m4/getgroups.m4: Likewise.
71413         * m4/getline.m4: Likewise.
71414         * m4/lstat.m4: Likewise.
71415         * m4/malloc.m4: Likewise.
71416         * m4/memcmp.m4: Likewise.
71417         * m4/putenv.m4: Likewise.
71418         * m4/realloc.m4: Likewise.
71419         * m4/regex.m4: Likewise.
71420         * m4/stat.m4: Likewise.
71421         * m4/strftime.m4: Likewise.
71422         Suggestion from Alain Magloire.
71423
71424         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71425         an argument.
71426
71427         * m4/regex.m4: Add a run-time Test for proper operation of
71428         re_compile_pattern.
71429
71430 1999-01-31  Jim Meyering  <meyering@ascend.com>
71431
71432         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71433
71434 1999-01-30  Jim Meyering  <meyering@ascend.com>
71435
71436         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71437
71438         * m4/jm-mktime.m4: Make this a wrapper around the official
71439         AM_FUNC_MKTIME rather than my private copy, now that the official one
71440         is up to date.
71441         * m4/mktime.m4: Remove file.
71442
71443         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71444         * m4/uptime.m4: Likewise.
71445         * m4/uintmax_t.m4: Likewise.
71446
71447 1999-01-28  Jim Meyering  <meyering@ascend.com>
71448
71449         * m4/jm-macros.m4: Use jm_AFS.
71450         * m4/afs.m4: New file (from fileutils' configure.in).
71451
71452         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71453         * m4/chown.m4: Likewise.
71454         * m4/d-ino.m4: Likewise.
71455         * m4/d-type.m4: Likewise.
71456         * m4/fnmatch.m4: Likewise.
71457         * m4/getgroups.m4: Likewise.
71458         * m4/gettext.m4: Likewise.
71459         * m4/jm-mktime.m4: Likewise.
71460         * m4/jm-winsz2.m4: Likewise.
71461         * m4/lcmessage.m4: Likewise.
71462         * m4/ls-mntd-fs.m4: Likewise.
71463         * m4/malloc.m4: Likewise.
71464         * m4/memcmp.m4: Likewise.
71465         * m4/putenv.m4: Likewise.
71466         * m4/realloc.m4: Likewise.
71467         * m4/st_mtim.m4: Likewise.
71468         * m4/strftime.m4: Likewise.
71469
71470 1999-01-16  Jim Meyering  <meyering@ascend.com>
71471
71472         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71473         (ARGMATCH_DIE_DECL): Define.
71474
71475 1999-01-12  Jim Meyering  <meyering@ascend.com>
71476
71477         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71478         Reported by Lars Hecking.
71479
71480 1999-01-10  Jim Meyering  <meyering@ascend.com>
71481
71482         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71483         gross kludge.
71484         * m4/inttypes_h.m4: Likewise.
71485         * m4/lstat.m4: Likewise.
71486         * m4/malloc.m4: Likewise.
71487         * m4/readdir.m4: Likewise.
71488         * m4/realloc.m4: Likewise.
71489         * m4/st_dm_mode.m4: Likewise.
71490         * m4/stat.m4: Likewise.
71491         * m4/utimbuf.m4: Likewise.
71492         * m4/utimes.m4: Likewise.
71493
71494         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71495         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71496         comments in config.h.in are meaningful.
71497
71498         * m4/jm-macros.m4: Require autoconf-2.13 here.
71499
71500         * m4/regex.m4: By default, don't use the included regex.c on systems
71501         with glibc 2.  Suggestion from Uli Drepper.
71502
71503 1999-01-02  Jim Meyering  <meyering@ascend.com>
71504
71505         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71506
71507 1998-12-18  Jim Meyering  <meyering@ascend.com>
71508
71509         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71510         Based on a suggestion from Lars Hecking.
71511
71512 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71513
71514         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71515
71516 1998-11-16  Jim Meyering  <meyering@ascend.com>
71517
71518         * m4/lfs.m4: Double-quote the `uname...` expression.
71519
71520 1998-11-14  Jim Meyering  <meyering@ascend.com>
71521
71522         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71523         * m4/stat.m4: Likewise.
71524
71525 1998-11-03  Jim Meyering  <meyering@ascend.com>
71526
71527         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71528         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71529
71530 1998-10-18  Jim Meyering  <meyering@ascend.com>
71531
71532         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71533
71534 1998-10-17  Jim Meyering  <meyering@ascend.com>
71535
71536         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71537         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71538         calls for those previously hard-coded headers.  Instead, take a new
71539         parameter.
71540         (jm_CHECK_DECLARATIONS): Reflect interface change.
71541         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71542         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71543
71544         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71545
71546 1998-10-14  Jim Meyering  <meyering@ascend.com>
71547
71548         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71549         instead of "TZ=America/Vancouver".  From Paul Eggert.
71550
71551 1998-10-11  Jim Meyering  <meyering@ascend.com>
71552
71553         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71554         This adds a test for a recently added compatibility fix for mktime.c.
71555         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71556
71557 1998-09-27  Jim Meyering  <meyering@ascend.com>
71558
71559         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71560
71561         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71562         ../configure.in, including a change from Gordon Matzigkeit to allow
71563         cross-compiling for the Hurd.
71564
71565         * m4/glibc.m4: New file/macro to test for the GNU C Library
71566         versions 1 and 2.  From Gordon Matzigkeit.
71567         Indent.
71568
71569 1998-09-21  Jim Meyering  <meyering@ascend.com>
71570
71571         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71572
71573 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71574
71575         Port nanosecond-resolution times to UnixWare 2.1.2 and
71576         pedantic Solaris 2.6.
71577
71578         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71579         AC_STRUCT_ST_MTIM.
71580         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71581         Generate name of ns member, instead of just 1 or undef.
71582         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71583
71584 1998-08-15  Jim Meyering  <meyering@ascend.com>
71585
71586         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71587         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71588         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71589         instead of jm_TYPE_SSIZE_T.
71590
71591 1998-08-12  Jim Meyering  <meyering@ascend.com>
71592
71593         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71594
71595 1998-08-02  Jim Meyering  <meyering@ascend.com>
71596
71597         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71598         in acconfig.h manually.
71599
71600 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71601
71602         * m4/st_mtim.m4: New file.
71603
71604 1998-07-28  Jim Meyering  <meyering@ascend.com>
71605
71606         * m4/utimes.m4: Undef stat.
71607
71608 1998-07-25  Jim Meyering  <meyering@ascend.com>
71609
71610         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71611         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71612
71613 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71614
71615         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71616         uid and gid actually remain unchanged.
71617
71618 1998-07-07  Jim Meyering  <meyering@ascend.com>
71619
71620         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71621
71622 1998-07-04  Jim Meyering  <meyering@ascend.com>
71623
71624         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71625         to prove that this macro can be used in packages without regex.c.
71626
71627 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71628
71629         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71630         is to be used.
71631
71632 1998-07-03  Jim Meyering  <meyering@ascend.com>
71633
71634         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71635
71636         * m4/gettext.m4: New file -- from gettext-0.10.35.
71637         * m4/lcmessage.m4: Likewise.
71638         * m4/progtest.m4: Likewise.
71639
71640         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71641         * m4/jm-macros.m4: Require the new macro.
71642
71643 1998-06-29  Jim Meyering  <meyering@ascend.com>
71644
71645         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71646         for the definition of NGROUPS (used in a system header included
71647         by sys/mount.h).
71648
71649 1998-06-28  Jim Meyering  <meyering@ascend.com>
71650
71651         * m4/ls-mntd-fs.m4: New file.
71652         * m4/fstypename.m4: New file.
71653
71654         * m4/jm-macros.m4: Require the new macro.
71655         * m4/jm-glibc-io.m4: New file.
71656
71657 1998-05-19  Jim Meyering  <meyering@ascend.com>
71658
71659         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71660         * m4/lchown.m4: New file.
71661
71662         * m4/Makefile.am.in: New file.
71663         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71664
71665 1998-05-14  Jim Meyering  <meyering@ascend.com>
71666
71667         * m4/Makefile.am (EXTRA_DIST): Add them.
71668         * m4/jm-macros.m4: New file.
71669         * m4/utimbuf.m4: New file.
71670
71671 1998-05-12  Jim Meyering  <meyering@ascend.com>
71672
71673         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71674
71675 1998-05-11  Jim Meyering  <meyering@ascend.com>
71676
71677         * m4/isc-posix.m4: New file.
71678
71679 1998-05-10  Jim Meyering  <meyering@ascend.com>
71680
71681         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71682
71683 1998-05-09  Jim Meyering  <meyering@ascend.com>
71684
71685         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71686         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71687         with automake.
71688
71689         * m4/ssize_t.m4: New file.
71690         * m4/mktime.m4: Remove file -- the new automake has this now.
71691
71692 1998-04-26  Jim Meyering  <meyering@ascend.com>
71693
71694         * m4/assert.m4: New file.
71695         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71696
71697 1998-04-05  Jim Meyering  <meyering@ascend.com>
71698
71699         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71700         (jm_PREREQ): Use it here.
71701
71702 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71703
71704         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71705         in acconfig.h.
71706
71707 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71708
71709         * m4/prereq.m4: New file.
71710         * m4/error.m4: New file.
71711         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71712
71713 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71714
71715         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71716         cache-check for the same variable -- that defeated the purpose of
71717         the test; the test program was never run.  This was a problem only
71718         on systems with losing getline functions -- HP-UX 10.20 is one.
71719         Reported by Bjorn Helgaas.
71720
71721 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71722
71723         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71724
71725 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71726
71727         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71728
71729         * m4/const.m4: New file.  Use an initializer in this declaration
71730         typedef int charset[2]; const charset x;
71731         Reported by Bob Glickstein.
71732
71733 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71734
71735         * m4/chown.m4: Fix reversed types on -1 args to chown.
71736         From Kaveh Ghazi.
71737
71738 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71739
71740         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71741         Add lseek and memchr.
71742
71743         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71744         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71745         have a 20-character limit on names.
71746
71747 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71748
71749         * m4/inttypes_h.m4: New file.
71750         * m4/uintmax_t.m4: New file.
71751         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71752
71753
71754         -----
71755
71756         Local Variables:
71757         coding: utf-8
71758         End:
71759
71760         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71761
71762         Copying and distribution of this file, with or without
71763         modification, are permitted provided the copyright notice
71764         and this notice are preserved.